title: Ctags path in vim is different from the shell
body: <p>I was trying to generate the ctags from vim. I use Exuberant ctags.</p>
  
  <p>So the problem is that when I do <code>:!ctags</code> or <code>:call system('ctags')</code> from vim it does not work because it uses my default ctags and not the exuberant ctags.
  I had similar problem in my shell which I overcame by specifying the path of exuberant first 
  like <code>export PATH=/usr/bin/local/:$PATH</code>
  So here is the really weird part
  When I do <code>echo $PATH</code> in vim it shows the correct path. But When I do <code>:call system('which ctags')</code>
  it shows me <code>/usr/bin/ctags</code> and not <code>/usr/bin/local/ctags</code>.
  I can't understand what is going on??</p>
  
  <p>Though I can overcome this problem by <code>call system('/usr/bin/local/ctags')</code> but I was just wondering if there is something better out there.</p>
  
  <p>EDIT:
  I use OSX 10.9.3</p>
  
  <p><code>:set shell?</code> -> <code>shell=/bin/zsh</code></p>
  
  <p><code>set shellcmdflag</code> -> <code>shellcmdflag=-c</code></p>
  
  <p>and I set my path in zshrc file as <code>export PATH="/usr/local/bin:usr/local:$PATH</code></p>