Set the vim auto-indent setting for open braces after case statements to
authorDan Gohman <gohman@apple.com>
Sat, 9 Jan 2010 17:15:21 +0000 (17:15 +0000)
committerDan Gohman <gohman@apple.com>
Sat, 9 Jan 2010 17:15:21 +0000 (17:15 +0000)
follow LLVM source convention.

Before:
  case X: {
            stuff;
          }

After:
  case X: {
    stuff;
  }

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

utils/vim/vimrc

index 7b1fd872b274c9cae5916ece46e5b18997dc873f..4909f602cff8ef8c4fe9eaef43e4b0555a6b3c3b 100644 (file)
@@ -35,7 +35,7 @@ augroup END
 " 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
+set cinoptions=:0,g0,(0,Ws,l1
 " Add and delete spaces in increments of `shiftwidth' for tabs
 set smarttab