From: Colin Patrick McCabe Date: Sun, 14 Aug 2011 05:38:36 +0000 (-0700) Subject: Add CMake indentation file X-Git-Url: http://club.cc.cmu.edu/~cmccabe/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0e9c07aad8cbacf0502ff619594c7b453a83dc6d;p=cmccabe-etc Add CMake indentation file Signed-off-by: Colin McCabe --- diff --git a/.vim/indent/cmake.vim b/.vim/indent/cmake.vim new file mode 100644 index 0000000..4773fe4 --- /dev/null +++ b/.vim/indent/cmake.vim @@ -0,0 +1,14 @@ +if exists("b:did_indent") + finish +endif + +source $VIMRUNTIME/indent/cmake.vim +let b:did_indent = 1 + +" Linux kernel style indentation +set sw=4 +set ts=4 +set et + +" no column limit for cmake files. +set tw=99999 diff --git a/.vim/indent/cpp.vim b/.vim/indent/cpp.vim index 2a6a7f1..04e779b 100644 --- a/.vim/indent/cpp.vim +++ b/.vim/indent/cpp.vim @@ -20,3 +20,4 @@ set noexpandtab set tw=100 set cinoptions+=g2h2:2=2t0(0 +