Vundle - E492: Not an editor command: PluginInstall

Severin picture Severin · Jun 12, 2014 · Viewed 16.3k times · Source

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 ?

Answer

romainl picture romainl · Jun 12, 2014

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*.