source $VIMRUNTIME/indent/cpp.vim
let b:did_indent = 1
-" Traditional cpp four-space indentation
-set sw=4
-set ts=4
+" Hadoop style indentation
+set sw=2
+set ts=2
set et
-" 100 column limit
-set tw=100
+" 80 column limit
+set tw=80
-set cinoptions+=g2h2:2=2t0(0
+set cinoptions=:0,L1,l1,t0,g0,(0
+
+" We want to continue C++-style doxygen comments (i.e., the ///)
+set comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/,bO:///,O://