Vim解决UltiSnips requires py >= 2.7 or py3

Completor requires vim compiled with python or python3 and has features job, timers and lambda
UltiSnips requires py >= 2.7 or py3

这个问题需要重新编译vim,并添加python支持
wget https://github.com/vim/vim/archive/v8.1.0510.tar.gz

wget https://github.com/vim/vim/archive/v8.1.0510.tar.gz
tar -xvf vim-8.1.0510.tar.gz
cd vim-8.1.0510
./configure --with-features=huge --enable-python3interp --enable-pythoninterp --with-python-config-dir=/usr/lib64/python2.7/config/ --enable-rubyinterp --with-python3-config-dir=/usr/lib64/python3.6/config-3.6m-x86_64-linux-gnu/ --enable-multibyte --enable-cscope      --prefix=/usr/local/vim/
make 
make install

添加如下到/etc/profile

sudo vim /etc/profile

export PATH=/usr/local/vim/bin:$PATH
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容