Add cpp indentation file
authorColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Wed, 21 Apr 2010 19:14:03 +0000 (12:14 -0700)
committerColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Wed, 21 Apr 2010 19:14:03 +0000 (12:14 -0700)
.vim/indent/cpp.vim [new file with mode: 0644]

diff --git a/.vim/indent/cpp.vim b/.vim/indent/cpp.vim
new file mode 100644 (file)
index 0000000..ea6330a
--- /dev/null
@@ -0,0 +1,16 @@
+if exists("b:did_indent")
+   finish
+endif
+
+source $VIMRUNTIME/indent/cpp.vim
+let b:did_indent = 1
+
+" Traditional cpp four-space indentation
+set sw=4
+set ts=4
+set et
+
+" 100 column limit
+set tw=100
+
+set cinoptions+=g2h2:2=2t0(0