Vundle安装不正确

萨钦鲁克

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

[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用户名和密码。

更重要的是,我需要担心该错误吗?

富兰克林

不,您无需担心该错误。您似乎已经从自述文件中复制了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

有关使用的更多信息,请参见此处

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章