To build vim from source on Ubuntu:
Get a copy of the source code by downloading from the official Vim repository on GitHub.
Get the dependencies by running $ sudo apt-get build-dep vim-gnome or similar.
Go to the directory of the Vim source code: cd vim/src
Run $ ./configure. You can customiz...