YouCompleteMe unavailable: requires Vim compiled with Python (3.6.0+) support.

执行vim的error信息:

root@yang:~# vim
YouCompleteMe unavailable: requires Vim compiled with Python (3.6.0+) support.
Press ENTER or type command to continue
root@yang:~# 

只需要重新编译vim时,加入如下参数编译:

./configure --enable-pythoninterp=yes --enable-cscope --enable-fontset --with-python3-config-dir=/usr/lib/python3.6/config-3.6m-x86_64-linux-gnu --enable-python3interp=yes --with-python3-command=python3.6
make
make install

cp /usr/local/bin/vim /usr/bin/vim

 

你可能感兴趣的:(UNIX,Linux,YouCompleteMe,unavailable)