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

Is PostgreSQL good enough?

Hey! It's work on pygame stuff week.

pygame on pypy usable