summaryrefslogtreecommitdiff
path: root/utils/vim
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-01-04 00:03:54 +0000
committerDan Gohman <gohman@apple.com>2009-01-04 00:03:54 +0000
commit96eafe2d4f81bde8a1a810a2c3f3a098f0b55f61 (patch)
treeee9fd830eceb19b891d122d89417d850210dd2a0 /utils/vim
parentdfaf4f98653327f0af7121203b69a835c2829670 (diff)
downloadllvm-96eafe2d4f81bde8a1a810a2c3f3a098f0b55f61.tar.gz
llvm-96eafe2d4f81bde8a1a810a2c3f3a098f0b55f61.tar.bz2
llvm-96eafe2d4f81bde8a1a810a2c3f3a098f0b55f61.tar.xz
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61617 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/vim')
-rw-r--r--utils/vim/vimrc5
1 files changed, 3 insertions, 2 deletions
diff --git a/utils/vim/vimrc b/utils/vim/vimrc
index 586100de15..c400a13c18 100644
--- a/utils/vim/vimrc
+++ b/utils/vim/vimrc
@@ -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