Posts

Showing posts from May, 2011

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