1、查看是否安装vim命令
vim /etc/hosts

2、检查系统中是否存在安装包
rpm -qa|grep vim

2、 安装vim
yum -y install vim*
4、测试是否安装成功
vim /etc/hosts

1、查看是否安装vim命令
vim /etc/hosts
2、检查系统中是否存在安装包
rpm -qa|grep vim
2、 安装vim
yum -y install vim*
4、测试是否安装成功
vim /etc/hosts