centos7 中编译安装vim 9.0
001、卸载旧版本vim
[root@PC1 home]# yum remove vim* -y
002、 下载安装包
wget https://github.com/vim/vim/archive/refs/tags/v9.0.1313.zip
003、解压。。。。安装
yum install gcc make ncurses ncurses-devel -y
unzip v9.0.1313.zip
cd vim-9.0.1313/
./configure --with-features=huge --enable-multibyte --prefix=/usr/local/vim
make
make install
004、建立软链接
ln -s /usr/local/vim/bin/vim /usr/bin/vim
005、查看版本
[root@PC1 vim-9.0.1313]# vim --version | head VIM - Vi IMproved 9.0 (2022 Jun 28, compiled Feb 17 2023 21:05:20) Included patches: 1-1313
参考:https://www.cnblogs.com/muxisuibi/p/14925702.html