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:
Dan Gohman 2009-01-04 00:03:54 +00:00
parent e54262ccd2
commit 7aee4c1d99

View File

@ -24,8 +24,9 @@ match WhitespaceEOL /\s\+$/
" Optional
" C/C++ programming helpers
set autoindent
set smartindent
set cindent
" Don't indent switch case labels beyond the switch.
set cinoptions=:0
" Add and delete spaces in increments of `shiftwidth' for tabs
set smarttab