0b0468984e6d

vim: add gjslint support
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Fri, 03 Sep 2010 09:32:32 -0400
parents f26c5af58bd9
children 60e2635ffe32
branches/tags (none)
files .zshrc vim/.vimrc

Changes

--- a/.zshrc	Tue Aug 31 10:31:09 2010 -0400
+++ b/.zshrc	Fri Sep 03 09:32:32 2010 -0400
@@ -18,6 +18,7 @@
 export PATH="/opt/subversion/bin:${PATH}"
 export PATH="${PATH}:/usr/local/Cellar/PyPi/3.6/bin"
 export PATH="${PATH}:/usr/local/Cellar/python/2.6.4/bin"
+export PATH="${PATH}:/usr/local/Cellar/python/2.6.5/bin"
 export WORKON_HOME="${HOME}/lib/virtualenvs"
 export GREP_OPTIONS='--color=auto'
 export HISTSIZE=1000
--- a/vim/.vimrc	Tue Aug 31 10:31:09 2010 -0400
+++ b/vim/.vimrc	Fri Sep 03 09:32:32 2010 -0400
@@ -150,6 +150,12 @@
 " Formatting, TextMate-style
 map <leader>q gqip
 
+nmap <leader>m :make<cr>
+
+" Google's JSLint
+au BufNewFile,BufRead *.js set makeprg=gjslint\ %
+au BufNewFile,BufRead *.js set errorformat=%-P-----\ FILE\ \ :\ \ %f\ -----,Line\ %l\\,\ E:%n:\ %m,%-Q,%-GFound\ %s,%-GSome\ %s,%-Gfixjsstyle%s,%-Gscript\ can\ %s,%-G
+
 " TESTING GOAT APPROVES OF THESE LINES
 au BufNewFile,BufRead test_*.py set makeprg=nosetests\ --machine-out\ --nocapture
 au BufNewFile,BufRead test_*.py set shellpipe=2>&1\ >/dev/null\ \|\ tee