如何禁用vim的switch case缩进?

and*_*ndy 19 c vim indentation

我目前正在与Vim战斗,我似乎无法让缩进选项做我想要的.

这是我的设置,我把它们放在.vimrc的底部,以确保它们优先.你可以看到我有点疯狂,所以我试着关掉几乎所有东西:

set cindent
set cinkeys=o,O
set cinoptions=
set cinwords=
set indentexpr=
Run Code Online (Sandbox Code Playgroud)

在大多数情况下它似乎工作正常,它打开块后做一个缩进,一切都很好.但是有一个案例让我发疯,当有{一个case声明之后,下一行太过分了:

switch () {
    case CASE: {
                   // <-- next line gets indented to here, why??
        // <-- should be indented to here
Run Code Online (Sandbox Code Playgroud)

我怎么能让它停止这样做?TIA

erg*_*sys 23

:set cinoptions=l1
Run Code Online (Sandbox Code Playgroud)

(那是字母后跟第一个)

请看:帮助cinoptions - 默认字符串的值和不同选项的描述.