OSDN Git Service

Switch the vimrc file from smartindent to cindent, which is
authorDan Gohman <gohman@apple.com>
Sun, 4 Jan 2009 00:03:54 +0000 (00:03 +0000)
committerDan Gohman <gohman@apple.com>
Sun, 4 Jan 2009 00:03:54 +0000 (00:03 +0000)
smarter about C-ish syntax, and supports the cinoptions
variable. Set cinoptions to suppress the extra indentation
for switch case labels.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61617 91177308-0d34-0410-b5e6-96231b3b80d8

utils/vim/vimrc

index 586100d..c400a13 100644 (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