gpt4 book ai didi

vim - Vundle 未正确安装

转载 作者:行者123 更新时间:2023-12-02 09:31:16 24 4
gpt4 key购买 nike

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

[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

您只需添加行

插件“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

关于vim - Vundle 未正确安装,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32858194/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com