vim - Why don't my cinoptions work? -
i running vim 7.3 on debian wheezy i686 x86.
there no ~/.vimrc, /etc/vim/vimrc.
i have set cinoptions=l0:s=sl1b1
i can verify ':verbose set cinoptions?'
that cinoptions set string above /etc/vim/vimrc.
my switch/case indent still 8 shiftwidths.
what trying achieve:
switch (foo) { case 0: bar(); break; what instead:
switch (foo) { case 0: // blargh! why doesn't vim respect cinoptions?
this because 'shiftwidth' set 8 (or maybe higher). try following see if addresses behavior:
set shiftwidth=2 tabstop=2
Comments
Post a Comment