[VIM] 编译VIM并使能Python3支持
可能需要的额外包
sudo apt install python3-dev
sudo apt install python3-distutils
sudo apt install libncurses5-dev libncursesw5-dev
克隆地址
git clone https://github.com/vim/vim.git
配置
./configure --with-features=huge \
--enable-multibyte \
--enable-python3interp=dynamic \
--with-python3-config-dir=/usr/lib/python3.8/config-3.8-x86_64-linux-gnu/ \
--enable-cscope \
--enable-gui=auto \
--enable-gtk2-check \
--enable-fontset \
--enable-largefile \
--disable-netbeans \
--enable-fail-if-missing \
--prefix=/usr/local
其中,“–-enable-fail-if-missing”,用于显示错误信息;“--prefix=/usr/local”,用于指定生成可执行文件的位置
编译
make
安装
sudo make install