vimrc: default C, CPP to kernel style indent
[cmccabe-etc] / .vim / indent / c.vim
index c5fbd50..99386a2 100644 (file)
@@ -6,11 +6,11 @@ source $VIMRUNTIME/indent/c.vim
 let b:did_indent = 1
 
 " Linux kernel style indentation
-set sw=2
-set ts=2
-set et
+set sw=8
+set ts=8
+set noet
 
-" 100 column limit
-set tw=100
+" 80 column limit
+set tw=80
 
-set cinoptions+=g2h2:2=2t0(0
+set cinoptions=:0,l1,t0,g0,(0   " C-Indent options: Linux-kernel style