Skip to content

vim

vim

vim9 编译

下载最新源码,解压 有些vim插件需要用到 python3环境,所以需要编译时使用 python3, 如果已编译过可先 make uninstall卸载, 最好先 export LDFLAGS="-rdynamic" 然后再编译,否则可能找不到python3的头文件

  • 编译
make & make install
  • 配置
./configure --with-features=huge \
--enable-multibyte \
--enable-python3interp=yes \
--with-python3-config-dir=/usr/local/lib/python3.12/config-3.12-x86_64-linux-gnu/ \
--with-python3-command=python3 \
--enable-cscope \
--enable-gui=auto \
--enable-gtk3-check \
--enable-fontset \
--enable-largefile \
--disable-netbeans \
--enable-fail-if-missing \
--prefix=/usr/local
  • make & make install