微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

安装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.^@

怎么解决

解决方法

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

由于您无法访问它们,因此您不需要提供错误的两行(一个可能是私有GIT而另一个是本地文件),因此只需删除.vimrc中的那些行.

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐