# HG changeset patch # User Steve Losh # Date 1283520752 14400 # Node ID 0b0468984e6d5563f4631e444e4af9283cffed7a # Parent f26c5af58bd9cff89934707ab5418334e14e58d9 vim: add gjslint support diff -r f26c5af58bd9 -r 0b0468984e6d .zshrc --- 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 diff -r f26c5af58bd9 -r 0b0468984e6d vim/.vimrc --- 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 q gqip +nmap m :make + +" 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