How to install vim editor on Rocky Linux

Vim is a text editor used for effective text editing and is also known as an editor for programmers. It is a free, open-source tool that supports many programming languages and is available with a graphical user interface and a command-line interface. Vim is used for editing the source code of large files and offers several functions with different plugins. It is used for editing configuration files and consumes very few system resources.

This tutorial will teach you how to install the Vim editor on RHEL-based Linux Distributions like AlmaLinux 8, CentOS 8, and Rocky Linux 8 and 9 using the terminal.

Installation of vim editor

To install the vim editor, you will perform the following steps:

Step 1. Open the terminal window on your system from ‘Activities’ on the top left corner of your desktop.

Step 2. To install the vim editor, you will log in as root user on your system.

Step 3. Vim editor is basically in the epel repositories. To start the installation of vim editor, you need to install epel repositories. Type following command in the terminal to install epel repositories:

$ sudo yum install epel-release

After the execution of this command, the user will enter the password. The installation will automatically start after the execution of this command. Epel repository has already been installed on this system. So it will show a “complete” status.

Install EPEL Repository

Step 4. Now, you will install vim editor. Write the following command in the terminal to install vim editor:

$ sudo yum install vim

Install Vim

The installation will start after running this command, now, it will ask to download packages to complete the installation process. Press the ‘Y’ key so that it will complete the process of downloading packages.

The installation of vim editor is completed now. You can verify it when “Complete” status appears on the terminal.

Vim Installation complete

Step 5. Now you verify the installation of vim editor. Type the following command on the terminal to confirm the installation of the vim editor:

$ vim

Start Vim Editor

After the successful execution of this command, the vim editor will open in the terminal. You can use it as per your requirements. A few guidelines are also mentioned in its interface. You can use them to proceed further.

Vim Editor on Rocky Linux 8


In this article, you have learned how to install vim editor on your system Rocky Linux system. I hope you enjoyed this article and that it is helpful for you in the future.