.vim: Add indent/javascript.vim
authorColin Patrick Mccabe <cmccabe@alumni.cmu.edu>
Mon, 12 Oct 2015 00:10:05 +0000 (17:10 -0700)
committerColin Patrick Mccabe <cmccabe@alumni.cmu.edu>
Mon, 12 Oct 2015 00:10:05 +0000 (17:10 -0700)
.vim/indent/javascript.vim [new file with mode: 0644]

diff --git a/.vim/indent/javascript.vim b/.vim/indent/javascript.vim
new file mode 100644 (file)
index 0000000..087cfb7
--- /dev/null
@@ -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