From 8ac125f175d8dec9c5d5864e6b1d868c1529f406 Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Sat, 11 Feb 2012 12:12:30 -0500 Subject: Customize C/C++ indentation --- .vimrc | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- cgit 1.4.1