Here are the steps to install the latest version of VIM with Ruby and Python support.
Mac OSX
$ ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
$ brew install mercurial
Red Hat / CentOS
$ yum -y install mercurial
$ yum -y groupinstall 'Development Tools'
$ yum -y install ruby perl-devel python-devel ruby-devel perl-ExtUtils-Embed ncurses-devel
Clone and install VIM
$ hg clone https://vim.googlecode.com/hg/ ~/vim
$ cd ~/vim
$ ./configure --prefix=/usr/local --enable-multibyte --with-tlib=ncurses --enable-pythoninterp --enable-rubyinterp --with-ruby-command=/usr/bin/ruby --with-features=huge
$ make
$ sudo make install
- This will install the latest vim to /usr/local/bin.
- Add the new vim version to your ~/.bashrc or ~/.zshrc.
export PATH=/usr/local/bin:$PATH
alias vi='/usr/local/bin/vim'
Email me when sivakalyanc publishes or recommends stories