Falha na instalação do Vundle?

0

Estou tentando instalar o Vundle seguindo as instruções de aqui , mas quando eu uso o comando vim +PluginInstall +qall terminal mostra isso:

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

Eu sou novo nisso. Qual é o problema possível aqui? Como eu poderia resolvê-los?
Como posso garantir que meu Vundle esteja instalado corretamente?

conteúdo de .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
    
por Anklon 17.03.2017 / 21:36

1 resposta

1

Da minha interação, o ~/.vim/bundle/Vundle.vim ainda não estava configurado. Então, esses são os passos para configurar o VundleVim .

  1. Crie /home/$USERNAME/.vim/bundle

    mkdir -p /home/$USERNAME/.vim/bundle
    
  2. Clone o repositório git no diretório do pacote:

    git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
    
  3. Agora crie um arquivo .vimrc , se não estiver lá:

    touch /home/$USERNAME/.vimrc
    
  4. Adicione estas linhas a ele:

    " 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. Agora execute vim +PluginInstall +qall do terminal ou de vim , :PluginInstall

Nota: Estas são as configurações básicas para obter VundleVim funcionando e eu adicionei meus próprios plugins, você precisará adicionar o seu. Obtenha mais plgins de aqui .

Fonte:

link

    
por George Udosen 17.03.2017 / 23:59