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 few system resources.
In this tutorial you will learn how to install the Vim editor in Rocky Linux, AlmaLinux, and CentOS via 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 in CentOS 8.
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 the 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.
Step 4. Now, you will install vim editor, write the following command in the terminal to install vim editor:
$ sudo yum 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 the vim editor is completed now. You can verify it when “Complete” status will appear on the terminal.
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
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.
Conclusion
In this article, you have learned how to install vim editor on your system Rocky Linux. I hope you enjoyed this article and that it is helpful for you in the future.