Created
September 5, 2018 18:50
-
-
Save idbrii/ef44340d4f955f0a7af4656618e7ed92 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// test case for https://vi.stackexchange.com/questions/8718/vim-switch-statement-cindent-options/8722#8722 | |
{ | |
switch (status) | |
{ | |
case Status.OK: | |
return ErrorCode.OK; | |
case Status.Bad: | |
{ | |
Log(status); | |
return ErrorCode.FAIL; | |
} | |
case Status.Fatal: | |
{ | |
Abort(status); | |
return ErrorCode.FAIL; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Using
:let v:lnum = getcurpos()[1] | ec GetCaseBlockCorrectedIndent() .' '. cindent(v:lnum)
on each line, I can see that cindent seems to be giving the same indent as the first brace.