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

Dan Gohman gohman at apple.com
Sat Jan 3 16:03:55 PST 2009


Author: djg
Date: Sat Jan  3 18:03:54 2009
New Revision: 61617

URL: http://llvm.org/viewvc/llvm-project?rev=61617&view=rev
Log:
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.

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=61617&r1=61616&r2=61617&view=diff

==============================================================================
--- llvm/trunk/utils/vim/vimrc (original)
+++ llvm/trunk/utils/vim/vimrc Sat Jan  3 18:03:54 2009
@@ -24,8 +24,9 @@
 
 " 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
 





More information about the llvm-commits mailing list