vim-8编译命令
2018-06-21 本文已影响0人
mingzhi618
一.手动安装
下载安装必要的组件
yum install -y gcc gcc-c++ ruby ruby-devel lua lua-devel \
ctags git python python-devel \
tcl-devel ncurses-devel \
perl perl-devel perl-ExtUtils-ParseXS \
perl-ExtUtils-CBuilder \
perl-ExtUtils-Embed
vim-8编译命令
./configure --with-features=huge --enable-pythoninterp=yes --enable-cscope --enable-perlinterp=yes --enable-rubyinterp=yes --enable-multibyte --with-x --enable-fail-if-missing --with-python-config-dir=/usr/lib64/python2.7/config/ --prefix=/opt/vim81
二.源自动安装
1.先卸载老的vim
yum remove vim-* -y
2.下载第三方yum源
wget -P /etc/yum.repos.d/ https://copr.fedorainfracloud.org/coprs/mcepl/vim8/repo/epel-7/mcepl-vim8-epel-7.repo
3.安装vim
yum -y install vim-enhanced sudo
4.验证vim版本
rpm -qa |grep vim