liuux下vim插件YouCompleteMe安装问题解决方法

  1. 问题1:下载google工具包失败
    使用vim包管理器
    在安装YCM会失败是因为git submodule update --init --recursive失败
    fatal: unable to access ‘https://go.googlesource.com/tools/’: Failed to connect to go.googlesource.com port 443: 连接超时,被墙了

解决办法:
使用github下载对应资源,进入YCM对应的目录

cd YouCompleteMe/third_party/ycmd/third_party/go/src/golang.org/x
git clone https://github.com/golang/tools.git
  1. 下载第三方插件不完整
git submodule update --init --recursive
python3 install.py --clang-completer

报错CMake Error: The source directory “/home/pi/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/cregex” does not appear to contain CMakeLists.txt

解决办法:
删除下载内容重新下载

rm -rf third_party/ycmd/third_party/cregex/
git submodule update --init --recursive
python3  install.py --clang-completer

你可能感兴趣的:(linux)