views:

77

answers:

1

Mac OS X 10.6 (Snow Leopard) has VIM pre-installed (version 7.2), which is great.

It also has Ruby pre-installed (version 1.8.7) which is great too.

However, I want Ruby autocompletion in VIM. Looking up the VIM version (vim --version) shows -ruby (i.e. ruby support isn't enabled).

How to enable ruby for my VIM installation?

+2  A: 

While it's possible to build and install your own Vim to replace the pre-installed version, I don't recommend it. It's far easier to just use MacVim instead:

http://code.google.com/p/macvim/

MacVim is a very Mac-friendly version of Vim, and it's got Ruby support already built in. It can be used as both a GUI and Terminal application. (Check out :help macvim-start from within MacVim for details.)

Bill Odom
This is the way to go on a mac. If you use the Homebrew package manager (http://mxcl.github.com/homebrew/), compiling and installing is a breeze: `brew install macvim`.
michaelmichael