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 both 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 little system resources.

In this tutorial, you will learn how to install the Vim editor on RHEL-based Linux Distributions like AlmaLinux 8, CentOS 8, and Rocky Linux 8 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’ that is present on the top left corner of your desktop.

Step 2. To install 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.

<img alt="Install EPEL Repository" data-ezsrc="https://kirelos.com/wp-content/uploads/2022/05/echo/https-lh5-googleusercontent-com-zkvycgx5zedkeaib.png" data-ez ezimgfmt="rs rscb10 src ng ngcb10 srcset" height="260" src="data:image/svg xml,” width=”793″>

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

$ sudo yum install vim

<img alt="Install Vim" data-ezsrc="https://kirelos.com/wp-content/uploads/2022/05/echo/https-lh4-googleusercontent-com-hjvygvcbndqsujrc.png" data-ez ezimgfmt="rs rscb10 src ng ngcb10 srcset" height="596" loading="lazy" src="data:image/svg xml,” width=”798″>

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 will appear on the terminal.

<img alt="Vim Installation complete" data-ezsrc="https://kirelos.com/wp-content/uploads/2022/05/echo/https-lh3-googleusercontent-com-x9b_v6wyvdjzoqun.png" data-ez ezimgfmt="rs rscb10 src ng ngcb10 srcset" height="599" loading="lazy" src="data:image/svg xml,” width=”799″>

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

$ vim

<img alt="Start Vim Editor" data-ezsrc="https://kirelos.com/wp-content/uploads/2022/05/echo/https-lh4-googleusercontent-com-px6fo20dp6v2n6fo.png" data-ez ezimgfmt="rs rscb10 src ng ngcb10 srcset" height="391" loading="lazy" src="data:image/svg xml,” width=”802″>

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

<img alt="Vim Editor on Rocky Linux 8" data-ezsrc="https://kirelos.com/wp-content/uploads/2022/05/echo/https-lh4-googleusercontent-com-kjfswtbi3vhysdhw.png" data-ez ezimgfmt="rs rscb10 src ng ngcb10 srcset" height="600" loading="lazy" src="data:image/svg xml,” width=”801″>

Conclusion

In this article, you have learned how to install vim editor on your system CentOS 8. I hope you enjoyed this article and helpful for you in the future.