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
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