summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-01-04 18:59:55 +0000
committerDan Gohman <gohman@apple.com>2009-01-04 18:59:55 +0000
commita0741ba2ccff5b1a9f1da196d27a3f1a08fafabf (patch)
treee36f02d6647c9ab5afb515fee71e355d98128f68 /utils
parent30b64129f5bf03521665115023c9a360a4e67218 (diff)
downloadllvm-a0741ba2ccff5b1a9f1da196d27a3f1a08fafabf.tar.gz
llvm-a0741ba2ccff5b1a9f1da196d27a3f1a08fafabf.tar.bz2
llvm-a0741ba2ccff5b1a9f1da196d27a3f1a08fafabf.tar.xz
Set a few more vimrc indentation options.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61628 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rw-r--r--utils/vim/vimrc6
1 files changed, 4 insertions, 2 deletions
diff --git a/utils/vim/vimrc b/utils/vim/vimrc
index e57c2217c1..4be2b7f793 100644
--- a/utils/vim/vimrc
+++ b/utils/vim/vimrc
@@ -25,8 +25,10 @@ match WhitespaceEOL /\s\+$/
" Optional
" C/C++ programming helpers
set cindent
-" Don't indent switch case labels beyond the switch.
-set cinoptions=:0
+" 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
" Add and delete spaces in increments of `shiftwidth' for tabs
set smarttab