I spend my days in vim, currently writing a lot of JavaScript. I\'ve been trying to find a way to integrate JSLint or something similar into vim to improve my coding. Has an
I've been very happy using node-lint
sudo npm -g install jslint
Then whack this somewhere in your .vim
.vim
set makeprg=jslint\ % set errorformat=%-P%f, \%E%>\ #%n\ %m,%Z%.%#Line\ %l\\,\ Pos\ %c, \%-G%f\ is\ OK.,%-Q
Now a :make will run jslint. Errors appear in the quickfix window.
:make