Add CMake indentation file
authorColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Sun, 14 Aug 2011 05:38:36 +0000 (22:38 -0700)
committerColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Sun, 14 Aug 2011 05:39:48 +0000 (22:39 -0700)
Signed-off-by: Colin McCabe <cmccabe@alumni.cmu.edu>

.vim/indent/cmake.vim [new file with mode: 0644]
.vim/indent/cpp.vim

diff --git a/.vim/indent/cmake.vim b/.vim/indent/cmake.vim
new file mode 100644 (file)
index 0000000..4773fe4
--- /dev/null
@@ -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
index 2a6a7f1..04e779b 100644 (file)
@@ -20,3 +20,4 @@ set noexpandtab
 set tw=100
 
 set cinoptions+=g2h2:2=2t0(0
+