Problem Description
Centos with a host of time, -bash occur when using vim: vim: command not found then only use vi vim how to install it.?
Solving steps
1. Check whether the installation
Enter the rpm -qa | grep vim command, if vim has been properly installed, will return the following three lines of code:
[root@itxiaobai]# rpm -qa |grep vim
vim-minimal-7.0.109-6.el5
vim-common-7.0.109-7.2.el5
vim-enhanced-7.0.109-7.2.el5
2. If a missing one of them, such as vim-enhanced, they command yum -y install vim-enhanced to install:
yum -y install vim-enhanced
3. If the above three do not return, you can directly use the command yum -y install vim *
yum -y install vim*