Skip to content

Instantly share code, notes, and snippets.

@ryanflorence
Created November 2, 2011 18:29
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save ryanflorence/1334440 to your computer and use it in GitHub Desktop.
Save ryanflorence/1334440 to your computer and use it in GitHub Desktop.
Get jshint running on write (save) with VIM
  1. Download jshint.vim

  2. Put it in ~/.vim/plugin/jshint.vim

  3. Edit your local vimrc file (I'm on macvim with janus, so it's at ~/.gvimrc.local) and add:

    au BufWritePost *.js :JSHint
  4. 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.

@dsernst
Copy link

dsernst commented Jul 18, 2014

thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment