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 the
When I manually key in your set
commands, I get no indentation whatsoever. Have you looked at the output of :set all
to confirm your settings are not being overridden?
Note: This should probably be in a comment, but that option is presently disallowed to me.
:set cinoptions=l1
(that's the letter ell followed by a number one)
Look at :help cinoptions-values for the default string and descriptions of the different options.
If indent is N spaces (replace N with actual value), try the following
set cinoptions=p0,t0,:N,=0
set cinwords=if,else,switch,case,for,while,do
set cindent
:N -> place 'case' label 0 characters from switch's indent
=0 -> indents the statements within case label