ubuntuvimubuntu-14.04vundle

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 ?


Solution

  • Turns out that call vundle#rc() seems to be deprecated. Using call vundle#begin() fixed the issue for me.