vim 编译使用ycm启动问题 fixed

YouCompleteMe unavailable: requires Vim compiled with Python (2.7 or 3.4+) support.

在ubuntu环境上

vim编译 也加了启用python但还有问题

            ./configure --with-features=huge \

                --enable-multibyte \

                --enable-rubyinterp=yes \

                --enable-pythoninterp=yes \

                --with-python3-command=python3 \

                --enable-python3interp=yes \

                --with-python3-config-dir=/usr/bin/python3-config  \

                --enable-perlinterp=yes \

                --enable-luainterp=yes \

                --enable-cscope \

                --prefix=$vim_home 

 

--with-python3-config-dir 和 --with-python-config-dir=/usr/bin/python2.7-config      只能使用一个不能两个都使用。

 

参考:https://www.jianshu.com/p/020a2d5d9637

posted @ 2021-09-17 16:30  元几科技  阅读(90)  评论(0编辑  收藏  举报