VIM, known as the programmer’s editor, is highly configurable and customizable. Also, it allows syntax highlighting which is a great tool when it comes to editing.

In this tutorial, we learn how to install VIM editor on the Ubuntu operating system.

Ensure you have the updated to the latest version of Ubuntu and have a functioning terminal.

installing the vim editor on ubuntu linux


  • Ubuntu 18.04 Bionic Beaver
  • A user with sudo privileges
  • Access to a terminal/command line

Installing VIM 8.1 on Ubuntu

Most likely, Vi/Vim will be preinstalled on your system, but in case you need to install the text editor manually, follow these two simple steps:

1. Open the terminal. The fastest way to do so is by using the keyboard shortcut CTRL+ALT+T.

Update the package repository to ensure you install the latest available software by typing the command:

sudo apt update

2. Now, install Vim by running the command:

sudo apt install vim

Press y to confirm the installation and hit Enter.


Great job, you have installed the VIM editor on our system. Now, you can use it to start coding in the programming language of your choice.