-
Notifications
You must be signed in to change notification settings - Fork 75
Upgrade VIM to 8.x
axiaoxin edited this page Feb 28, 2021
·
3 revisions
MacOS 升级 VIM
brew install vim
CentOS 升级 VIM
- 使用 yum 升级 (不支持 python3 )
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
yum -y --enablerepo=gf-plus install vim-enhanced sudo
- 源码编译新版本安装:
# 可选:安装依赖
yum -y groupinstall "Development Tools"
yum -y install ncurses-devel git-core ruby ruby-devel lua lua-devel luajit \
luajit-devel ctags git python python-devel \
python3 python3-devel tcl-devel \
perl perl-devel perl-ExtUtils-ParseXS \
perl-ExtUtils-XSpp perl-ExtUtils-CBuilder \
perl-ExtUtils-Embed
ln -s /usr/bin/xsubpp /usr/share/perl5/ExtUtils/xsubpp
# 下载源码
git clone https://github.com/vim/vim && cd vim/src
# 本机 python 已升级为 Python3 vim 也使用 python3
./configure --with-features=huge \
--enable-multibyte \
--enable-rubyinterp=yes \
--enable-python3interp=yes \
--with-python3-config-dir=$(python3-config --configdir) \
--enable-perlinterp=yes \
--enable-luainterp=yes \
--enable-gui=gtk2 \
--enable-cscope \
--prefix=/usr/local
make fisrt && make install
/usr/local/bin/vim --version
Building Vim from source: https://github.com/ycm-core/YouCompleteMe/wiki/Building-Vim-from-source