似乎并不是所有的插件都在正确安装。我有以下日志文件:
[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用户名和密码。
更重要的是,我需要担心这个错误吗?
发布于 2015-09-30 07:48:48
不,你不需要担心错误。您似乎已经从自述复制了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。
https://stackoverflow.com/questions/32858194
复制相似问题