安装Bundle for Vim时出错(Error in installing Bundle for Vim)

编程入门 行业动态 更新时间:2024-10-20 13:42:28
安装Bundle for Vim时出错(Error in installing Bundle for Vim)

我很费力地为vim安装bundle。 我输入:BundleInstall,似乎无法安装

Bundle 'git://git.wincent.com/command-t.git' |~ Bundle 'file:///Users/gmarik/path/to/plugin'

日志显示

[131205 15:35:35] Bundle git://git.wincent.com/command-t.git |~ [131205 15:35:35] $ git clone --recursive 'git://git.wincent.com/command-t.|~ git' '/home/p/.vim/bundle/command-t' |~ [131205 15:35:35] > fatal: read error: Connection reset by peer^@Cloning in|~ to '/home/p/.vim/bundle/command-t'...^@ |~ [131205 15:35:36] |~ [131205 15:35:36] Bundle file:///Users/gmarik/path/to/plugin |~ [131205 15:35:36] $ git clone --recursive 'file:///Users/gmarik/path/to/plu|~ gin' '/home/p/.vim/bundle/plugin' |~ [131205 15:35:36] > Cloning into '/home/p/.vim/bundle/plugin'...^@fatal: '/|~ Users/gmarik/path/to/plugin' does not appear to be a git repository^@fatal:|~ Could not read from remote repository.^@^@Please make sure you have the co|~ rrect access rights^@and the repository exists.^@

如何解决它?

I was tiring to install bundle for vim. I input :BundleInstall, and it seems fail to install

Bundle 'git://git.wincent.com/command-t.git' |~ Bundle 'file:///Users/gmarik/path/to/plugin'

The log shows that

[131205 15:35:35] Bundle git://git.wincent.com/command-t.git |~ [131205 15:35:35] $ git clone --recursive 'git://git.wincent.com/command-t.|~ git' '/home/p/.vim/bundle/command-t' |~ [131205 15:35:35] > fatal: read error: Connection reset by peer^@Cloning in|~ to '/home/p/.vim/bundle/command-t'...^@ |~ [131205 15:35:36] |~ [131205 15:35:36] Bundle file:///Users/gmarik/path/to/plugin |~ [131205 15:35:36] $ git clone --recursive 'file:///Users/gmarik/path/to/plu|~ gin' '/home/p/.vim/bundle/plugin' |~ [131205 15:35:36] > Cloning into '/home/p/.vim/bundle/plugin'...^@fatal: '/|~ Users/gmarik/path/to/plugin' does not appear to be a git repository^@fatal:|~ Could not read from remote repository.^@^@Please make sure you have the co|~ rrect access rights^@and the repository exists.^@

How to fix it?

最满意答案

出现这两个错误是因为您误解了Vundle安装。 你在GitHub repo( https://github.com/gmarik/vundle#about )上看到的是一个示例配置。

您不需要两行代码,因为您无法访问它们(一个可能是私有GIT,另一个是本地文件),因此只需删除.vimrc中的这些行即可。

Those two errors occurs because you've misunderstood the Vundle installation. What you see on the GitHub repo (https://github.com/gmarik/vundle#about) is a sample config.

You don't need the two lines that gives you the errors as you don't have access to them (one's probably a private GIT while the other is a local file), so just remove those lines in your .vimrc.

更多推荐

本文发布于:2023-07-04 17:02:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1026917.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:Vim   Bundle   installing   Error

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!