vim, ruby support and rvm

I build vim from source, just because. Each time I do I struggle to remember how to get Ruby support to work. Here's a quick post so I can remember. This should work on most Debian based distributions.

1. Download the latest vim source

hg clone vim

2. Configure vim. The part I always forget is finding the Ruby header files. RVM stores them in "rubies" based on the version installed.

./configure --prefix=/home/nate/.viminstall --enable-pythoninterp=yes --includedir=/home/nate/.rvm/rubies/default/include/ruby-1.9.1/ruby.h --enable-rubyinterp=yes

3. Now build vim

make && make install

4. Enjoy vim!