Avoiding label indenting in C++

后端 未结 1 1724
傲寒
傲寒 2021-01-04 02:16

I guess this was asked before, but I could not find any similar question.

When writing part of the scope operator in C++, Vim guesses that it\'s

1条回答
  •  星月不相逢
    2021-01-04 02:57

    Just tell vim not to de-indent labels with:

    :set cinoptions+=L0
    

    For reference, if by "visibility" modifiers you mean access specifiers, these can be set to not indent with:

    :set cinoptions+=g0
    

    0 讨论(0)
提交回复
热议问题