The version of Vim in the apt repository is usually lagging a bit behind the latest version, so to get on the bleeding edge of Vim, follow these steps.
- Clone the source:
git clone git://github.com/vim/vim.git
- Configure the build:
cd vim && ./configure --with-features=huge --enable-rubyinterp --enable-pythoninterp
- Compile Vim:
make
- Copy Vim to the system folders:
sudo make install
- Confirm you are running the new version via
vim --version
That’s it. :wq