summaryrefslogtreecommitdiffstats
path: root/llvm/utils
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
commite4159704d9884c1ce30c6edd5d1dc4a361c1266f (patch)
tree845c37b081fad6076427dbf73f65b274da2ea7fd /llvm/utils
parentb2f724edb437a13cc84cecc0feb46828e1cdd21e (diff)
downloadbcm5719-llvm-e4159704d9884c1ce30c6edd5d1dc4a361c1266f.tar.gz
bcm5719-llvm-e4159704d9884c1ce30c6edd5d1dc4a361c1266f.zip
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. llvm-svn: 61617
Diffstat (limited to 'llvm/utils')
-rw-r--r--llvm/utils/vim/vimrc5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/utils/vim/vimrc b/llvm/utils/vim/vimrc
index 586100de156..c400a13c187 100644
--- a/llvm/utils/vim/vimrc
+++ b/llvm/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
OpenPOWER on IntegriCloud