I'm currently fighting with Vim, I can't seem to make the indentation options do what I want.
Here are my settings, I put them at the bottom of .vimrc to make sure they take precedence. As you can see I'm going a little crazy, so I tried turning off almost everything:
set cindent
set cinkeys=o,O
set cinoptions=
set cinwords=
set indentexpr=
In most cases it seems to work fine, it does one indent after opening a block and everything is fine. But there is one case that is driving me crazy, when there is a {
after a case
statement, the next line is way too far indented:
switch () {
case CASE: {
// <-- next line gets indented to here, why??
// <-- should be indented to here
How can I make it stop doing this? TIA