关于解决centos7安装YCM插件出现的错误:Failed connect to go.googlesource.com:443; refused to connect.

fatal: 无法访问 ‘https://go.googlesource.com/tools/’:Failed connect to go.googlesource.com:443; 拒绝连接
fatal: 无法克隆 ‘https://go.googlesource.com/tools’ 到子模组路径 ‘~/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/go/src/golang.org/x/tools’

进入~/.vim/plugged/YouCompleteMe/third_party/ycmd/ 目录中:
git clone https://github.com/golang/tools
等待完成就行。
出现的原因是官方修改了库。并不是网上很多人说的被强了,需要代理。

谷歌是由gfw在中国推出的。我们无法连接到中国的https://go.googlesource.com/tools,但github.com可用。请在git子模块中使用https://github.com/golang/tools而不是https://go.googlesource.com/tools。

你可能感兴趣的:(vim插件)