table of Contents
Preface
All Unix Like systems will have a built-in vi document editor, and other document editors may not exist.
But currently we use the vim editor more often . Vim has the ability of program editing, can actively distinguish the correctness of grammar by font color, which is convenient for program design. ——Source : Introduction to runoob Linux vi/vim
One, install vim
First, see if vim is installed on this machine: enter the rpm -qa|grep vim command,
root@server1 [~] # rpm -qa|grep vim
If vim has been installed correctly, the following three lines of code will be returned:
vim-enhanced-7.0.109-7.el5
vim-minimal-7.0.109-7.el5
vim-common-7.0.109-7.el5
If one of them is missing, such as vim-enhanced, use the command yum -y install vim-enhanced to install:
yum -y install vim-enhanced
If none of the above three items are returned, you can directly use the yum -y install vim* command
yum -y install vim*
From https://blog.csdn.net/yangguangdesenlin/article/details/78612509