Updating Vim on OS X Leopard

7 09 2008

I recently tried to get vim up to version 7.2 on leopard (so that i could get vimball working and install plugins). In the end I settled for using the copy of vim that comes with MacVim and setting up an alias:

alias vim='/Users/logaan/Downloads/MacVim-7_2-stable-1_2\ 2/MacVim.app/Contents/MacOS/Vim'

But before I went to this extreme I tried:

  • Port: The files downloaded didn’t match the checksum.
  • Fink: The version was old but installed properly. Then didn’t work.
  • Manual Compile: Didn’t setup the right paths for plugins, etc.

If you want to do it my way grab the latest version of MacVim from http://code.google.com/p/macvim/ install, then right click on MacVim.app and show contents. Navigate into the MacOS folder and you should see ‘Vim’. Open up ~/.bash_profile in your favorite text editor and type alias vim='' then drag the ‘Vim’ application between the quotes. It should insert the full path to the app.

It’s not pretty, but it works.

Advertisements