I wanted to use Vim’s Command-T plugin (via this awesome Vim config) for fast file navigation. But this plugin needs Vim to be compiled with Ruby support since it’s is written in Ruby. You can check with
vim --version
Unfortunately, I saw “-ruby” which means it lacks Ruby support. I was previously using Vim 7.2 on Ubuntu 10.04 Lucid. First I uninstalled my old Vim and installed dependencies required to compile a new one:
sudo apt-get remove vim-common vim-runtime vim-gtk vim-gui-common
sudo apt-get build-dep vim
Then I compiled the latest version of Vim (7.3 as of this writing) from source:
hg clone https://vim.googlecode.com/hg/ vim
cd vim
./configure --enable-pythoninterp --enable-rubyinterp
make
sudo make install
If you don’t have Mercurial hg
run:
sudo apt-get install mercurial