-
Download jshint.vim
-
Put it in
~/.vim/plugin/jshint.vim
-
Edit your local vimrc file (I'm on macvim with janus, so it's at
~/.gvimrc.local
) and add:au BufWritePost *.js :JSHint
-
Read the [vim docs][vim] and particularly auto commands I'm a newb and the neckbeards are probably laughing at me for even posting this.
Thanks @slikjay for pointing me in the right direction.