Check if Vim is compiled with Python or Ruby:
λ vim --version | ack '(python|ruby)'Remove Vim version installed with apt-get if present:
λ sudo apt-get remove vim-common vim-runtimeInstall dependencies needed to compile Vim:
λ sudo apt-get build-dep vimInstall Mercurial:
λ sudo apt-get install mercurialClone Vim repository, compile it and install the new version:
λ hg clone https://vim.googlecode.com/hg/ vim
λ cd vim
λ ./configure --enable-pythoninterp --enable-rubyinterp
λ make
λ sudo make install