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

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

  1. 检查vim安装时是否选用了支持python的USE标志

    vim --version
    

    如果未设置python的USE标志,那么这里为-python -python3
    gentoo YouCompleteMe unavailable: requires Vim compiled with Python (3.5.1+) support._第1张图片

  2. 设置vim的python USE标志

    # 为vim单独设置USE
    vim /etc/portage/package.use/vim
    # python代表启用python支持,PYTHON_TARGETS和PYTHON_SINGLE_TARGET用来设置具体的python版本(将本行内容写入上一行打开的文件)
    app-editors/vim python PYTHON_TARGETS: -* python3_7 PYTHON_SINGLE_TARGET: -* python3_7
    

    参考文献:https://wiki.gentoo.org/wiki/Project:Python/PYTHON_TARGETS

  3. 重新安装vim

    sudo emerge --ask vim
    

你可能感兴趣的:(错误解决方法,vim,gentoo)