ubuntu下编译安装vim最新版


# 克隆vim源码
git clone https://github.com/vim/vim.git
cd vim

./configure --with-features=huge \
--enable-multibyte \
--enable-rubyinterp=yes \
--enable-python3interp=yes \
--with-python3-config-dir=/usr/lib/python3.10/config-3.10-x86_64-linux-gnu \
--enable-perlinterp=yes \
--enable-luainterp=yes \
--enable-gui=gtk2 \
--enable-cscope \
--prefix=/usr/local

make && sudo make install

ln -s  /usr/local/bin/vim  /bin/vim

vim -version
VIM - Vi IMproved 9.0 (2022 Jun 28, compiled Nov 18 2023 11:40:08)
Garbage after option argument: "-version"
More info with: "vim -h"
# 使用Vim-Fast快速配置vim自动补全功能
curl https://gitee.com/mirrorvim/vim-fast/raw/master/shell/webinstall.sh |bash