-bash: vim: command not found
输入 rpm -qa|grep vim 命令,
如果 vim 已经正确安裝,会返回下面的三行代码:
vim-enhanced
vim-minimal
vim-common
缺少 vim-enhanced ,就用命令 yum -y install vim-enhanced 来安裝:
yum -y
install
vim-enhanced
缺少vim-common,就用命令 yum -y install vim-common来安裝:
yum -y
install
vim-common
作为程序员,最简单粗暴的方式就是管他有没有,都重新安装一遍
直接用 yum -y install vim* 命令
yum -y
install
vim*
Action speaks louder than words!