美文网首页
Vim解决UltiSnips requires py >=

Vim解决UltiSnips requires py >=

作者: 疯狂的冰块 | 来源:发表于2018-11-05 00:33 被阅读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

相关文章

网友评论

      本文标题:Vim解决UltiSnips requires py >=

      本文链接:https://www.haomeiwen.com/subject/fpkjxqtx.html