Open In App

How to Install Vim Editor in Ubuntu?

Last Updated : 15 Mar, 2024
Improve
Improve
Like Article
Like
Save
Share
Report

Vim is a text editor for Unix which is available for Linux, macOS, and BSD. This software can have its user interface but it can be run on the terminal window. This is mainly managed by a keyboard there is no mouse required to operate this software. It is quite powerful and fast due to its small size and because it can run on a terminal.

In this article, we learn How to install the Vim editor in the Ubuntu Operating System.

CompressJPEGOnline_1_70kb_1738

How to Install Vim Editor in Ubuntu?

Step 1: Update the Package List

Before the installation of any software in Linux Ubuntu it is recommended to upgrade Ubuntu the package list which will ensure that we are going to work with the latest information.

Open terminal and enter following command and enter password when it asks to make sure we are going to use latest information:

sudo apt update

Screenshot-from-2024-03-01-14-14-46

Step 2: Install Vim

Once above step get completed, enter the following commands to install Vim and enter Y (when asked) to continue installation.

sudo apt install vim

Screenshot-from-2024-03-01-14-16-06

unnamed

Step 3: Verify Installation

For verification, whether Vim installs or not enter the following command, if it is installed correctly you can see its version.

vim --version

Screenshot-from-2024-03-01-14-18-33

Step 4: Start Using Vim Editor in Ubuntu

If you want, you can look for the Vim application in your system. Vim editor is successfully installed on Ubuntu. Now you can open Vim editor and start using it.

Screenshot-from-2024-03-01-14-19-42

Also Read

Frequently Asked Questions to Install Vim Editor in Ubuntu

Do I need to be connected to the internet to install Vim?

Yes, your system requires an internet connection to download Vim using the apt package manager.

Can I uninstall Vim if I don’t like it?

If you want to uninstall Vim you can easily done by entering following command in your terminal

sudo apt remove vim

This command removes all the packages of Vim editor from your system.

How to check if Vim is installed on Ubuntu?

To check if Vim is installed or not on your Ubuntu desktop Open terminal using Ctrl + Shift + T command and type: vim –version. If Vim is successfully installed, Vim version will be displayed on the output screen otherwise it will throw an error indicating that the command ‘vim’ could not be found or recognized by the system.


Like Article
Suggest improvement
Share your thoughts in the comments

Similar Reads