From: Colin Patrick Mccabe Date: Mon, 12 Oct 2015 00:10:05 +0000 (-0700) Subject: .vim: Add indent/javascript.vim X-Git-Url: http://club.cc.cmu.edu/~cmccabe/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8271e6a6c6a16eb55d98580b027e948ea8f22fbe;p=cmccabe-etc .vim: Add indent/javascript.vim --- diff --git a/.vim/indent/javascript.vim b/.vim/indent/javascript.vim new file mode 100644 index 0000000..087cfb7 --- /dev/null +++ b/.vim/indent/javascript.vim @@ -0,0 +1,14 @@ +if exists("b:did_indent") + finish +endif + +source $VIMRUNTIME/indent/javascript.vim +let b:did_indent = 1 + +" 2-column indentation with soft tabs +set sw=2 +set ts=2 +set et + +" 80 column limit +set tw=80