Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.9k views
in Technique[技术] by (71.8m points)

ubuntu - Vundle - E492: Not an editor command: PluginInstall

I am having trouble getting Vundle for Vim to work (I am on Ubuntu 14.04). Here the relevant part from my .vimrc

  4 " For Vundle$                                                                                                                                                                                                                              
  5 filetype off$                                                                                                                                                                                                                              
  6 set rtp+=~/.vim/bundle/vundle$                                                                                                                                                                                                             
  7 call vundle#rc()$                                                                                                                                                                                                                          
  8 $                                                                                                                                                                                                                                          
  9 " Let Vundle manage Vandle$                                                                                                                                                                                                                
 10 Plugin 'gmarik/vundle'$                                                                                                                                                                                                                    
 11 $                                                                                                                                                                                                                                          
 12 Plugin 'honza/vim-snippets'$                                                                                                                                                                                                               
 13 Plugin 'bling/vim-airline'$                                                                                                                                                                                                                
 14 Plugin 'tpope/vim-fugitive'$                                                                                                                                                                                                               
 15 Plugin 'tpope/vim-rails.git'$                                                                                                                                                                                                              
 16 Plugin 'tomtom/tcomment_vim'$                                                                                                                                                                                                              
 17 Plugin 'altercation/vim-colors-solarized'$                                                                                                                                                                                                 
 18 Plugin 'tomasr/molokai'$                                                                                                                                                                                                                   
 19 Plugin 'vim-ruby/vim-ruby'$                                                                                                                                                                                                                
 20 Plugin 'tpope/vim-surround'$                                                                                                                                                                                                               
 21 Plugin 'jiangmiao/auto-pairs'$                                                                                                                                                                                                             
 22 Plugin 'ervandew/supertab'$                                                                                                                                                                                                                
 23 Plugin 'kchmck/vim-coffee-script'$                                                                                                                                                                                                         
 24 Plugin 'kien/ctrlp.vim'$                                                                                                                                                                                                                   
 25 Plugin 'skalnik/vim-vroom'$                                                                                                                                                                                                                
 26 Plugin 'tpope/vim-dispatch'$                                                                                                                                                                                                               
 27 $                                                                                                                                                                                                                                          
 28 call vundle#end()$                                                                                                                                                                                                                         
 29 $                                                                                                                                                                                                                                          
 30 filetype plugin indent on$ 

Why does it throw an error E492: Not an editor command: PluginInstall ?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

You are missing

call vundle#end()

between lines 26 and 28.

Note that Vundle's API has changed: it's not :Bundle* anymore, it's :Plugin*.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...