title: How to configure Syntastic with JSHint?
body: <p>How to use the Syntastic Vim plugin with JSHint to validate JavaScript code?</p>
  
  <p>Environment:</p>
  
  <ul>
  <li>Ubuntu 11.04</li>
  <li>VIM - Vi IMproved 7.3</li>
  </ul>
  
  <p>What I have installed, following the solution at <a href="https://stackoverflow.com/questions/473478/vim-jslint/5893447#5893447">VIM + JSLint?</a>:</p>
  
  <ul>
  <li><a href="https://github.com/gmarik/vundle" rel="nofollow noreferrer">Vundle</a></li>
  <li>node.js</li>
  <li>Node Package Manager</li>
  <li>jshint, globally</li>
  <li>Syntastic installed through Vundle (Used the :BundleInstall command inside Vim to make sure Syntastic was installed.)</li>
  </ul>
  
  <p>.vimrc:</p>
  
  <pre><code>set nocompatible               " be iMproved
  filetype off                   " required!
  
  set rtp+=~/.vim/bundle/vundle/
  call vundle#rc()
  
  " let Vundle manage Vundle
  " required! 
  Bundle 'gmarik/vundle'
  
  " My Bundles here:
  Bundle 'scrooloose/syntastic'
  
  filetype plugin indent on     " required! 
  
  let g:syntastic_enable_signs=1
  let g:syntastic_auto_jump=1
  let g:syntastic_stl_format = '[%E{Err: %fe #%e}%B{, }%W{Warn: %fw #%w}]'
  
  set statusline+=%#warningmsg#
  set statusline+=%{SyntasticStatuslineFlag()}
  set statusline+=%*
  </code></pre>
  
  <p>looking for installed executables:</p>
  
  <pre><code>$ which gjslint
  $ which jslint
  $ which jsl
  $ which jshint
  /home/fernando/local/node/bin/jshint
  $ 
  
  
  $ echo $PATH
  
  &gt;/home/fernando/local/bin:/home/fernando/local/node/bin:/home/fernando/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
  
  $ jshint test.js
  </code></pre>
  
  <blockquote>
    <p>test.js: line 3, col 1, 'blbla' is not defined.<br>
    test.js: line 4, col 1, 'x' is not defined.<br>
    test.js: line 4, col 5, 'nonono' is not defined.<br>
    test.js: line 6, col 1, 'a' is not defined.<br>
    test.js: line 7, col 1, 'b' is not defined.<br>
    test.js: line 8, col 5, 'a' is not defined.<br>
    test.js: line 8, col 10, 'b' is not defined.<br>
    test.js: line 8, col 7, Expected '===' and instead saw '=='.  </p>
    
    <p>8 errors</p>
  </blockquote>
  
  <pre><code>$ vi test.js -- no error message shown
  
  :SyntasticEnable -- Vim exits and restarts, opening the same file, but still no message
  
  :w -- still no error message
  
  :Errors -- the location list opens but it is empty
  </code></pre>
  
  <p>Both jshint and Syntastic seem to be installed, but something is probably missing. What would it be?</p>