From: Colin Patrick McCabe Date: Wed, 21 Apr 2010 19:14:03 +0000 (-0700) Subject: Add cpp indentation file X-Git-Url: http://club.cc.cmu.edu/~cmccabe/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=018d5b5432338b6ffe576146f70a856c27466eab;p=cmccabe-etc Add cpp indentation file --- diff --git a/.vim/indent/cpp.vim b/.vim/indent/cpp.vim new file mode 100644 index 0000000..ea6330a --- /dev/null +++ b/.vim/indent/cpp.vim @@ -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