[llvm-commits] [llvm] r93055 - /llvm/trunk/utils/vim/vimrc

Dan Gohman gohman at apple.com
Sat Jan 9 09:15:21 PST 2010


Author: djg
Date: Sat Jan  9 11:15:21 2010
New Revision: 93055

URL: http://llvm.org/viewvc/llvm-project?rev=93055&view=rev
Log:
Set the vim auto-indent setting for open braces after case statements to
follow LLVM source convention.

Before:
  case X: {
            stuff;
          }

After:
  case X: {
    stuff;
  }

Modified:
    llvm/trunk/utils/vim/vimrc

Modified: llvm/trunk/utils/vim/vimrc
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/vim/vimrc?rev=93055&r1=93054&r2=93055&view=diff

==============================================================================
--- llvm/trunk/utils/vim/vimrc (original)
+++ llvm/trunk/utils/vim/vimrc Sat Jan  9 11:15:21 2010
@@ -35,7 +35,7 @@
 " 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
 





More information about the llvm-commits mailing list