1, enter rpm -qa | grep vim command, if vim has been properly installed, will return the following three lines of code:
root@server1 [~]# rpm -qa|grep vim
vim-enhanced-7.0.109-7.el5
vim-minimal-7.0.109-7.el5
vim-common-7.0.109-7.el5
If a less one of them, such as vim-enhanced, they command yum -y install vim-enhanced to install:
yum -y install vim-enhanced
If the above three do not have a return, you can directly use the command yum -y install vim *
yum -y install vim*