summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <programble@gmail.com>2012-02-11 12:12:30 -0500
committerJune McEnroe <programble@gmail.com>2012-02-11 12:12:30 -0500
commitfbc95a96feb80c96fc2c7f5e22afb755275f2461 (patch)
tree0317802334d07a816ca7a4e79c5867bb87e7146c
parentUpdate Powerline to 'develop' branch (diff)
downloadsrc-fbc95a96feb80c96fc2c7f5e22afb755275f2461.tar.gz
src-fbc95a96feb80c96fc2c7f5e22afb755275f2461.zip
Customize C/C++ indentation
Diffstat (limited to '')
-rw-r--r--.vimrc6
1 files changed, 6 insertions, 0 deletions
diff --git a/.vimrc b/.vimrc
index 1327ef2b..d174d9f9 100644
--- a/.vimrc
+++ b/.vimrc
@@ -66,6 +66,12 @@ autocmd FileType c setlocal sw=4
 autocmd FileType cpp setlocal sw=4
 autocmd FileType lua setlocal sw=4
 
+" C/C++ indent options
+" :0  Align case with switch
+" l1  Indent case bodies with braces to case
+" g0  Align "public:" and friends to class
+set cinoptions=:0,l1,g0
+
 " Better tab-complete when opening
 set wildmenu
 set wildmode=list:longest