How to use the Syntastic Vim plugin with JSHint to validate JavaScript code?
Environment:
What I
I struggled with this issue for days and SyntasticInfo would not recognize jshint as an available checker even after i added let g:syntastic_javascript_checkers['jshint'] to my .vimrc. I am using Ubuntu 15.04 and I followed this tutorial to install nvm, nodejs, and jshint on Ubuntu. After I did that I discovered that if I removed the line filetype plugin indent on from my .vimrc then opened a .js file everything worked perfectly! To summarize...
~/.nvm//bin to path in .bashrcfiletype plugin indent on from .vimrclet g:syntastic_javascript_checkers['jshint'] to .vimrc:so % inside vim.js filefiletype plugin indent on back to your .vimrc