How to install vim from tarball?

Recently my apt-get install didn’t work in Ubuntu 10.04 and I couldn’t spend time to fix the source list when it didn’t work straight forward.


So looked around how to install vim from a tarball. This may be handy sometimes, here are the steps:

Download the Tarball

  1. Goto https://www.vim.org/.
  2. Go to Download. link: https://www.vim.org/download.php.
  3. Click on Mirrors.
  4. Choose an FTP mirror site, e.g. ftp://ftp.home.vim.org/pub/vim/ (Holland, Amsterdam).
  5. Go inside the folder “unix”.
  6. Here you will see all the vim tarballs. Choose the one you like, e.g. vim-8.0.tar.bz2.

Untar the tarball

Untar the tarball:

$ tar -xvjf vim-8.0.tar.bz2

Compile and install

$ cd vim80/src
$ make distclean
$ make
$ sudo make install

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s