plug.vim url不匹配错误

This commit is contained in:
chxuan 2019-12-13 17:31:34 +08:00
parent ede63072c8
commit dc685cf101
2 changed files with 4 additions and 11 deletions

View File

@ -201,14 +201,6 @@ An automatic configuration program for vim
网络良好情况下vimplus只需30分钟左右即可将vim cpp环境配置好vimplus真正的做到了一键配置不让用户操心。vimplus会安装一些必备软件比如说python、cmake、gcc、fontconfig等vimplus也考虑到了有些系统的vim不支持python它会自动去下载vim源码将python支持编译进去vimplus也会安装nerd-font不让vim显示出现乱码最最重要的是vimplus实现了ycm自动编译安装给折腾了几天ycm都没有安装好的用户带来了新的希望而且vimplus也支持macos和linux众多发行版让linux发烧友频繁切换发行版而不用操心vim环境配置。最后说了这么多不如看[vimplus安装脚本][78]来的直接:smile:。
- **`插件安装界面显示YouCompleteMe安装失败Invalid URL: https://gitee.com/chxuan/YouCompleteMe.git,Expected: https://github.com/Valloric/YouCompleteMe.git,PlugClean: required`**
在执行install.sh安装脚本时ycm比其他插件早安装当用户看到插件安装界面显示ycm安装失败时其实ycm已经提前安装好了忽略掉该错误即可。
- **`插件安装界面不更新进度一直显示进度Installing plugins (24/40)`**
vimplus使用vim-plug作为插件管理器vim-plug可能由于界面没有刷新其实在安装所以进度一直停留在`Installing plugins (24/40)`,用户只需要耐心等待所有插件安装完成即可,或者直接`Ctrl+C`终止安装通过vim打开`~/.vimrc`并执行`:PlugInstall`命令安装剩余插件。
- **`启动vim报错RequestsDependencyWarning: Old version of cryptography ([1, 2, 3]) may cause slowdown.`**
可以尝试将cryptography删掉具体见[issues #208][81]。

View File

@ -2077,9 +2077,10 @@ function! s:git_validate(spec, check_branch)
if v:shell_error
let err = join([remote, 'PlugClean required.'], "\n")
elseif !s:compare_git_uri(remote, a:spec.uri)
let err = join(['Invalid URI: '.remote,
\ 'Expected: '.a:spec.uri,
\ 'PlugClean required.'], "\n")
" 不提示url不匹配错误
" let err = join(['Invalid URI: '.remote,
" \ 'Expected: '.a:spec.uri,
" \ 'PlugClean required.'], "\n")
elseif a:check_branch && has_key(a:spec, 'commit')
let result = s:lines(s:system('git rev-parse HEAD 2>&1', a:spec.dir))
let sha = result[-1]