Skip to content

Instantly share code, notes, and snippets.

@khanghoang
Forked from ryanflorence/jshint-and-vim.md
Last active August 29, 2015 14:10
Show Gist options
  • Save khanghoang/ec1c1d8d1867aa061b44 to your computer and use it in GitHub Desktop.
Save khanghoang/ec1c1d8d1867aa061b44 to your computer and use it in GitHub Desktop.
  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.

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