aboutsummaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
Diffstat (limited to 'utils')
-rw-r--r--utils/vim/vimrc5
1 files changed, 3 insertions, 2 deletions
diff --git a/utils/vim/vimrc b/utils/vim/vimrc
index 586100d..c400a13 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