title: Compiled vim from source on Mac OSX and getting 'shell returned 127' error?
body: <p>On my Mac OSX 10.6 machine, I started to use MacVIM for vim. Then I noticed my terminal version was different to the MacVIM version (MacVIM was 7.3 and my terminal version 7.2)... I thought they used the same vim?</p>
  
  <p>I need 7.3 for some of the features. So I set about wanting to update the terminal version. I basically cloned it using Mercurial (the perferred way according to the official site) and then did the usual to compile it. This did work and I now have 7.3 in my terminal. But, on some commands when exiting, I can this error:</p>
  
  <pre><code>/bin/bash: q: command not found
  
  shell returned 127
  
  Press ENTER or type command to continue
  </code></pre>
  
  <p>...I've tried my hardest to try and fix this problem, but trying to reinstall MacVIM, deleting the vim in my /usr/local/bin and compiling again and I just can't get rid of this annoying error.</p>
  
  <p>Can anyone possibly help me? Am I doing this all wrong? ...most of the time I will be using MacVIM, but it'd be nice for me to have it in the Terminal - exactly how I'd have it on my Ubuntu servers.</p>
  
  <p>Any help would be fantastic!</p>