使用第三方仓库的方式,需要切换到root账号,因为sudo依赖了vim-minimal,所以sudo需要卸载 。
rpm -Uvh http://mirror.ghettoforge.org/distributions/gf/gf-release-latest.gf.el7.noarch.rpm
rpm --import http://mirror.ghettoforge.org/distributions/gf/RPM-GPG-KEY-gf.el7
yum -y remove vim-minimal vim-common vim-enhanced sudo
yum -y --enablerepo=gf-plus install vim-enhanced sudo
或者从源码安装,就不需要root账号了。参见 centos7 安装 vim8。
网友评论