Archive for November 27, 2012

解決 centos -bash: vim: command not found

When using centos host, When found with vim -bash: vim: command not found. Only use vi. So how to install it vim?
輸入 rpm -qa|grep vim 命令, If vim has been installed correctly,Will return the following three lines of code:

1
2
3
4
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 certain of them,For example, the vim-enhanced,On command yum -y install vim-enhanced to install:

1
yum -y install vim-enhanced

If the above three do not return a, Can directly use the command yum -y install vim *

1
yum -y install vim*

Comments