Vim解决UltiSnips requires py >=

2018-11-05  本文已影响184人  疯狂的冰块

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
上一篇下一篇

猜你喜欢

热点阅读