vim未找到命令,且yum安装vim失败 1、wget更新yum云资源,本次更新为华为云镜像资源 wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.huaweicloud.com/repository/conf/CentOS-7-anon.repo wget报未找到命令,请查看文章Linux wget报未找到命令 2、清理yum缓存 yum clean all 3、更新yum缓存 yum makecache 4、yum安装vim yum install vim 5、测试vim语句 vim /etc/profile