首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >放气阀安装不当

放气阀安装不当
EN

Stack Overflow用户
提问于 2015-09-30 05:07:20
回答 1查看 1.5K关注 0票数 2

似乎并不是所有的插件都在正确安装。我有以下日志文件:

代码语言:javascript
复制
[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文件是:

代码语言:javascript
复制
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用户名和密码。

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

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2015-09-30 07:48:48

不,你不需要担心错误。您似乎已经从自述复制了VIMRC,自述是为了说明这一点。你应该删除你不需要的插件。下面是空的Vundle配置。这就是你所需要的。

代码语言:javascript
复制
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看起来像这样

代码语言:javascript
复制
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命令:

代码语言:javascript
复制
:PluginInstall

有关使用的更多信息,请参阅here

票数 5
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/32858194

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档