vim - 安装 Vim Bundle 时出错

标签 vim plugins

我很累为 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 存储库 ( https://github.com/gmarik/vundle#about ) 上看到的是一个示例配置。

您不需要出现错误的两行,因为您无权访问它们(一个可能是私有(private) GIT,而另一个是本地文件),因此只需删除 中的这两行即可.vimrc.

关于vim - 安装 Vim Bundle 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20394142/

相关文章:

vim - 带括号和分号的 Grep/Ack 表达式

linux - SVN - 通过 VIM 提交 - 恢复失败的提交消息

vim - 如何在 Vimscript 的右侧移动或创建窗口?

vim - 在 Vim 插入模式下,有没有办法添加文件路径自动补全?

ruby-on-rails - 如何将大型 gem 转换为独立的 Rails 应用程序

grails - 在 liferay 6 上部署 grails portlet 时出错

vim - 使用替代命令执行()错误neovim

jQuery OEmbed 插件 - 错误 : Object doesn't support this property or method

javascript - wp_enqueue_script 或 wp_head

objective-c - 获取cocoa脚本中选择框的值