1
我cinoptions括號是如下因素:縮進語句只沒有在vim cindent
:set cinoptions={1s,t0,f0s,g0,i0,(0,=0
它與括號包含case語句效果很好,但不是無支撐之一:
switch(foo)
{
case(0):
{
...
break;
}
case(1):
... <-- should be indented
break;
}
我需要的{1s爲所有我的代碼需要這樣形成,如果我放棄= 0我得到這個。
switch(foo)
{
case(0):
{
... <-- should not be idented so much
break;
}
case(1):
...
break;
}
是否有任何方法可以指定vim不以任何特殊方式縮進大小寫?