拾遗:编译安装 vim

  在非 Gentoo/Funtoo 系的 Linux 发行版上,软件仓库里的 vim 包可能没有加入 python 特性支持,会造成部分插件无法正常使用

一、下载 vim 源码包

  ftp://ftp.vim.org/pub/vim/unix/ 或 git clone https://github.com/vim/vim.git

二、编译安装

./configure --prefix=/opt/vim --with-features=huge --enable-multibyte --enable-python3interp=yes --with-python3-config-dir=/usr/lib64/python3.6/config-3.6m-x86_64-linux-gnu

make -j4 && make install

三、环境变量

#vim /etc/profile

for i in /opt/*
do
    PATH=$PATH:$i/bin
done
export PATH

...

原文地址:https://www.cnblogs.com/hadex/p/6560600.html