Switch the vimrc file from smartindent to cindent, which is
smarter about C-ish syntax, and supports the cinoptions variable. Set cinoptions to suppress the extra indentation for switch case labels. llvm-svn: 61617
This commit is contained in:
parent
b2f724edb4
commit
e4159704d9
|
@ -24,8 +24,9 @@ match WhitespaceEOL /\s\+$/
|
||||||
|
|
||||||
" Optional
|
" Optional
|
||||||
" C/C++ programming helpers
|
" C/C++ programming helpers
|
||||||
set autoindent
|
set cindent
|
||||||
set smartindent
|
" Don't indent switch case labels beyond the switch.
|
||||||
|
set cinoptions=:0
|
||||||
" Add and delete spaces in increments of `shiftwidth' for tabs
|
" Add and delete spaces in increments of `shiftwidth' for tabs
|
||||||
set smarttab
|
set smarttab
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue