From: Colin Patrick McCabe Date: Mon, 24 May 2010 23:10:14 +0000 (-0700) Subject: Use 2-space soft tabs X-Git-Url: http://club.cc.cmu.edu/~cmccabe/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bb75b38cd641550268ca4df4c9a7678d4234faee;p=cmccabe-etc Use 2-space soft tabs For convenience --- diff --git a/.vim/indent/c.vim b/.vim/indent/c.vim index b0477b0..c5fbd50 100644 --- a/.vim/indent/c.vim +++ b/.vim/indent/c.vim @@ -6,11 +6,11 @@ source $VIMRUNTIME/indent/c.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 +" 100 column limit +set tw=100 set cinoptions+=g2h2:2=2t0(0 diff --git a/.vim/indent/cpp.vim b/.vim/indent/cpp.vim index ea6330a..10b5e8f 100644 --- a/.vim/indent/cpp.vim +++ b/.vim/indent/cpp.vim @@ -6,8 +6,8 @@ source $VIMRUNTIME/indent/cpp.vim let b:did_indent = 1 " Traditional cpp four-space indentation -set sw=4 -set ts=4 +set sw=2 +set ts=2 set et " 100 column limit diff --git a/.vimrc b/.vimrc index 34daeb4..86ad50c 100644 --- a/.vimrc +++ b/.vimrc @@ -29,6 +29,7 @@ syntax on highlight Comment ctermfg=darkcyan highlight Constant ctermfg=red set t_Co=256 +set et "*************** bell *************** set vb t_vb="."