Running jslint on saving JavaScript with vim

autocmd BufWritePost,FileWritePost *.js !jslint <afile>
This will run jslint on your JavaScript files after you save them.

http://vimdoc.sourceforge.net/htmldoc/autocmd.html
http://vimdoc.sourceforge.net/htmldoc/autocmd.html#FileWritePost

You can add the command to your ~/.vimrc

Comments

Popular posts from this blog

Draft 3 of, ^Let's write a unit test!^

Is PostgreSQL good enough?

post modern C tooling - draft 6