From: Colin Patrick Mccabe Date: Thu, 23 Aug 2012 17:54:28 +0000 (-0700) Subject: c and cpp indent: always 2-space, et X-Git-Url: http://club.cc.cmu.edu/~cmccabe/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ad7fceab5f5404f8e4071f8ce23c839433fee4ac;p=cmccabe-etc c and cpp indent: always 2-space, et Signed-off-by: Colin McCabe --- diff --git a/.vim/indent/c.vim b/.vim/indent/c.vim index df35563..22d3fe8 100644 --- a/.vim/indent/c.vim +++ b/.vim/indent/c.vim @@ -5,9 +5,9 @@ endif source $VIMRUNTIME/indent/c.vim let b:did_indent = 1 -" 4-column indentation with soft tabs -set sw=4 -set ts=4 +" 2-column indentation with soft tabs +set sw=2 +set ts=2 set et " 80 column limit diff --git a/.vim/indent/cpp.vim b/.vim/indent/cpp.vim index cb80567..6ae6e24 100644 --- a/.vim/indent/cpp.vim +++ b/.vim/indent/cpp.vim @@ -6,9 +6,9 @@ source $VIMRUNTIME/indent/cpp.vim let b:did_indent = 1 " Linux kernel style indentation -set sw=8 -set ts=8 -set noet +set sw=2 +set ts=2 +set et " 80 column limit set tw=80