title: Apple's vim always used instead of homebrew
body: <p>I'm seeing something very odd, and honestly I'm stumped.</p>
  
  <p>The version of vim that comes with mac is outdated (7.3 instead of 7.4). I'm trying to install vim from homebrew, and I want to use that one instead of the default apple version.</p>
  
  <p>I ran "<code>brew install vim</code>". It installed correctly in <code>/usr/local/bin/vim</code>. All good.</p>
  
  <p>When I run "<code>which vim</code>", it prints "<code>/usr/local/bin/vim</code>". The Apple version of vim is installed at <code>/usr/bin/vim</code>. So the which command is telling me that I'm using the homebrew version of vim.</p>
  
  <p>However, when I actually run vim, it still runs the Apple version</p>
  
  <pre><code>$ vim --version
  VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Jul  9 2015 23:58:42)
  Compiled by root@apple.com
  ...
  </code></pre>
  
  <p>If I run the homebrew version explicitly, I see this:</p>
  
  <pre><code>$ /usr/local/bin/vim --version
  VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Oct 23 2015 18:16:35)
  MacOS X (unix) version
  Included patches: 1-898
  Compiled by Homebrew
  ...
  </code></pre>
  
  <p>I even tried moving <code>/usr/bin/vim</code> to <code>/usr/bin/vim73</code> to try to force using the homebrew version. However, when I did this, here is what I see when I try to run vim:</p>
  
  <pre><code>$ vim --version
  -bash: /usr/bin/vim: No such file or directory
  $
  </code></pre>
  
  <p>What is going on? How can I get it to run the homebrew version of vim?</p>