Skip to content

Instantly share code, notes, and snippets.

@wayneseymour
Forked from ryanflorence/jshint-and-vim.md
Created May 3, 2014 04:38
Show Gist options
  • Select an option

  • Save wayneseymour/083c876517001021b106 to your computer and use it in GitHub Desktop.

Select an option

Save wayneseymour/083c876517001021b106 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.

@wayneseymour
Copy link
Author

I'm not laughing!
Thanks man.

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