Install Vim 8.2 on Ubuntu 20.04

A quick how-to to build and install it from source
Published on November 30, 2020 in How-tos
Read time: 1 min
Tags:

Update (2020 12 28)

I’ve removed +python (python2 support) from the ./configure script because it looks like you can’t use both versions 2 and 3 in the same instance. Also, as Ubuntu 20.04 comes with Python 3.8.5, I’m now linking against it and tell the script to use python3 (because in Ubuntu 20.04 system python is 2.7).


Hi everyone, while customizing my .vimrc (here), I found out Ubuntu 20.04 version of vim is a bit old and doesn’t come with +python3 support. So I wrote a quick snippet to build vim 8.2 from source with it, and a couple of features more.

Just check the images below for a quick comparison.

Stock vim from Ubuntu PPA (open in a new tab to zoom)
Stock vim from Ubuntu PPA (open in a new tab to zoom)

Then you should get something like this:

Installed vim from sources (open in a new tab to zoom)
Installed vim from sources (open in a new tab to zoom)

Please note that the scripts installs vim to /usr/local/bin and sets alternatives so that you can make it live along other vims, should you want to install other versions.

I hope it helps. Thanks for reading.



Comments

Got some words you want to share? Tell me!