Vundle安装不正确

时间:2015-09-30 05:07:20

标签: vim

似乎并非所有插件都安装正确。我有以下日志文​​件:

[2015-09-30 14:58:32] Plugin user/L9                                                                      |~                                                                                                         
[2015-09-30 14:58:32] $ git clone --recursive 'https://github.com/user/L9.git' '/home/sachin/.vim/bundle/n|~                                                                                                         
ewL9'                                                                                                     |~                                                                                                         
[2015-09-30 14:58:32] > Cloning into '/home/sachin/.vim/bundle/newL9'...                                  |~                                                                                                         
[2015-09-30 14:58:32] > remote: Repository not found.                                                     |~                                                                                                         
[2015-09-30 14:58:32] > fatal: repository 'https://github.com/user/L9.git/' not found                     Username for 'https://github.com': sachinruk                                                               
[2015-09-30 14:58:32] >                                                                                   |~                                                                                                         
[2015-09-30 14:58:33]                                                                                     |~                                                                                                         
[2015-09-30 14:58:33] Helptags:                                                                           |~                                                                                                         
[2015-09-30 14:58:33] :helptags /home/sachin/.vim/bundle/Vundle.vim/doc                                   |~                                                                                                         
[2015-09-30 14:58:33] :helptags /home/sachin/.vim/bundle/vim-fugitive/doc                                 |~                                                                                                         
[2015-09-30 14:58:33] :helptags /home/sachin/.vim/bundle/L9/doc                                           |~                                                                                                         
[2015-09-30 14:58:33] :helptags /home/sachin/.vim/bundle/command-t/doc                                    |~                                                                                                         
[2015-09-30 14:58:33] Helptags: 4 plugins processed            

我的.vimrc文件是这样的:

set nocompatible              " be iMproved, required
filetype off                  " required

set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'
" plugin on GitHub repo
Plugin 'tpope/vim-fugitive'
" plugin from http://vim-scripts.org/vim/scripts.html
Plugin 'L9'
" Git plugin not hosted on GitHub
Plugin 'git://git.wincent.com/command-t.git'    
Plugin 'rstacruz/sparkup', {'rtp': 'vim/'}
" Avoid a name conflict with L9
Plugin 'user/L9', {'name': 'newL9'}

call vundle#end()            " required
filetype plugin indent on    " required

显然没有https://github.com/user/L9页面,但我不太确定我做错了什么。它在失败之前询问我的github用户名和密码。

更重要的是,我是否需要担心此错误?

1 个答案:

答案 0 :(得分:5)

不,您不必担心错误。您似乎已从自述文件中复制了VIMRC,该自述文件仅用于说明目的。你应该删除你不需要的插件。下面是空的Vundle配置。 这就是你所需要的一切。

set nocompatible 
filetype off

" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()

" let Vundle manage Vundle, required
Plugin 'gmarik/Vundle.vim'

" All of your Plugins must be added before the following line
call vundle#end()            " required
filetype plugin indent on    " required

现在,如果你想添加一个新的插件示例 nerdtree

你只需添加一行

<强> Plugin 'scrooloose/nerdtree'

现在vimrc看起来像这样

set nocompatible 
filetype off

" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()

" let Vundle manage Vundle, required
Plugin 'gmarik/Vundle.vim'
" added nerdtree
Plugin 'scrooloose/nerdtree'
" All of your Plugins must be added before the following line
call vundle#end()            " required
filetype plugin indent on    " required

现在,只需保存vimrc并重新启动vim,以便它可以获取新的vimrc,然后发出:PluginInstall命令:

:PluginInstall

可以找到有关使用的更多信息here