The following instructions will install Vim with the Ruby interpreter and Command-T. I keep my vim settings under revision control, thus I have chosen to use Git's submodules and Pathogen to manage Command-T. Depending on your preferences, you may want to setup Command-T differently. I recommend reading through the Command-T Readme
sudo apt-get install ruby ruby-dev libncurses5-dev mercurial clone build-essential rake
I chose to compile vim with my system Ruby, 1.8.7. It is important that you use the same version to compile both Vim and Command-T. If your using RVM and you want to do the same, before proceeding you will want to:
rvm use system
There are several configure options for Vim. Below, you can see what I have chosen. You can see all of the options with:
./configure --help
Once you have chosen your options:
hg clone https://vim.googlecode.com/hg/ vim
cd vim
./configure --with-features=huge --enable-rubyinterp --enable-pythoninterp --prefix=$HOME
make
sudo make install
vim --version | grep ruby
-python3 +quickfix +reltime -rightleft +ruby +scrollbind +signs +smartindent
cd ~/.vim " If vim directory under git, you will want to be at the git root
git submodule add git://git.wincent.com/command-t.git bundle/command-t
git submodule init
cd ~/.vim/bundle/command-t
rake make
:call pathogen#helptags()
$ vim -- version | grep ruby
Vim: Warning: Output is not to a terminal
Taglist: Exuberant ctags (http://ctags.sf.net) not found in PATH. Plugin is not loaded.
Error detected while processing /home/chris/.vim/plugin/vimdir.vim:
line 2:
E121: Undefined variable: luser
E15: Invalid expression: $VIMHOME . "/vimrc.". luser