问题现象:-bash: vim: command not found 问题原因:主要是因为默认安装的是vi,vim命令并没有安装完全,输入rpm -qa|grep vim命令,发现CentOS上只装了vim的最小化安装。 解决方法: 输入yum -y install vim*命令安装vim