Сбой установки Vundle?

Я пытаюсь установить Vundle, следующий инструкциям отсюда, но когда я использую команду, vim +PluginInstall +qall терминал показывает это:

Error detected while processing /home/scorpion/.vimrc:
line    6:
E117: Unknown function: vundle#begin
line   11:
E492: Not an editor command: Plugin 'VundleVim/Vundle.vim'
line   16:
E492: Not an editor command: Plugin 'tpope/vim-fugitive'
line   18:
E492: Not an editor command: Plugin 'L9'
line   20:
E492: Not an editor command: Plugin 'git://git.wincent.com/command-t.git'
line   22:
E492: Not an editor command: Plugin 'file:///home/gmarik/path/to/plugin'
line   25:
E492: Not an editor command: Plugin 'rstacruz/sparkup', {'rtp': 'vim/'}
line   28:
E492: Not an editor command: Plugin 'ascenator/L9', {'name': 'newL9'}
line   31:
E117: Unknown function: vundle#end
Press ENTER or type command to continue

Я являюсь новым в этом. Какова возможная проблема здесь? Как я мог решить их?
Как мог я быть гарантировать, что мой Vundle установлен правильно?

содержание .vimrc

set nocompatible              " be iMproved, required
filetype off                  " required

" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')

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

" The following are examples of different formats supported.
" Keep Plugin commands between vundle#begin/end.
" 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'
" git repos on your local machine (i.e. when working on your own plugin)
" Plugin 'file:///home/gmarik/path/to/plugin'
" The sparkup vim script is in a subdirectory of this repo called vim.
" Pass the path to set the runtimepath properly.
Plugin 'rstacruz/sparkup', {'rtp': 'vim/'}
" Install L9 and avoid a Naming conflict if you've already installed a
" different version somewhere else.
Plugin 'ascenator/L9', {'name': 'newL9'}

" All of your Plugins must be added before the following line
call vundle#end()            " required
filetype plugin indent on    " required
" To ignore plugin indent changes, instead use:
"filetype plugin on
"
" Brief help
" :PluginList       - lists configured plugins
" :PluginInstall    - installs plugins; append `!` to update or just :PluginUpdate
" :PluginSearch foo - searches for foo; append `!` to refresh local cache
" :PluginClean      - confirms removal of unused plugins; append `!` to auto-approve removal "
" see :h vundle for more details or wiki for FAQ
" Put your non-Plugin stuff after this line
1
задан 18 March 2017 в 00:36

1 ответ

От моего взаимодействия ~/.vim/bundle/Vundle.vim еще не был настроен. Таким образом, это шаги для установки VundleVim.

  1. Создать /home/$USER/.vim/bundle

    mkdir -p /home/$USER/.vim/bundle
    
  2. Клонируйте репозиторий мерзавца в каталог пакета:

    git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
    
  3. Теперь создайте a .vimrc файл, если не там:

    touch /home/$USER/.vimrc
    
  4. Добавьте эти строки к нему:

    " no vi compat
    set nocompatible
    
    " filetype func off
    filetype off
    
    " initialize vundle
    set rtp+=~/.vim/bundle/Vundle.vim
    
    call vundle#begin()
    " start- all plugins below
    
    Plugin 'VundleVim/Vundle.vim'
    Plugin 'mattn/emmet-vim'        
    Plugin 'morhetz/gruvbox'
    Plugin 'itchyny/lightline.vim'
    Plugin 'scrooloose/nerdtree.git'
    Plugin 'davidhalter/jedi-vim'
    Plugin 'pangloss/vim-javascript'
    Plugin 'groenewege/vim-less'
    Plugin 'taglist.vim'
    Plugin 'elzr/vim-json'
    Plugin 'airblade/vim-gitgutter' " http://vimawesome.com/plugin/vim-gutter
    Plugin 'wincent/command-t'      " fast buffer browser
    
    " stop - all plugins above
    call vundle#end()
    
    
    " filetype func on
    filetype plugin indent on
    
  5. Теперь выполненный vim +PluginInstall +qall от терминала или из vim, :PluginInstall

Примечание: Это базовая конфигурация для получения VundleVim при работе и я добавил свои собственные плагины, необходимо будет добавить Ваши. Получите больше plgins отсюда.

Источник:

https://github.com/VundleVim/Vundle.vim

3
ответ дан 7 December 2019 в 12:34

Другие вопросы по тегам:

Похожие вопросы: