Set a few more vimrc indentation options.
authorDan Gohman <gohman@apple.com>
Sun, 4 Jan 2009 18:59:55 +0000 (18:59 +0000)
committerDan Gohman <gohman@apple.com>
Sun, 4 Jan 2009 18:59:55 +0000 (18:59 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61628 91177308-0d34-0410-b5e6-96231b3b80d8

utils/vim/vimrc

index e57c2217c12f7f9d65cd9b4063a538eccab424a2..4be2b7f7934bd7c58daad5ee0beb801384d53130 100644 (file)
@@ -25,8 +25,10 @@ match WhitespaceEOL /\s\+$/
 " Optional
 " C/C++ programming helpers
 set cindent
-" Don't indent switch case labels beyond the switch.
-set cinoptions=:0
+" Set a few indentation parameters. See the VIM help for cinoptions-values for
+" details.  These aren't absolute rules; they're just an approximation of
+" common style in LLVM source.
+set cinoptions=:0,g0,(0,Ws
 " Add and delete spaces in increments of `shiftwidth' for tabs
 set smarttab