Vundle - E492: not editor team: PluginInstall

I'm having trouble getting Vundle to work for Vim (I'm on Ubuntu 14.04). Here is 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 this cause error E492: Not an editor command: PluginInstall ?

+5
source share
4 answers

It turns out that call vundle#rc() seems deprecated. Using a call to vundle#begin() fixed the problem for me.

+5
source

You are lacking

 call vundle#end() 

between lines 26 and 28.

Note that the Vundle API has changed : it is no longer :Bundle* , it :Plugin* .

+5
source

This error message appeared, perhaps because your vi is not vim.

try installing vim first. If this allows you, it means that this is a problem.

 sudo yum install vim 

set an alias

 alias vi=vim 

Then try running vi and

 :PluginInstall 
+1
source

This happened to my working machine (Windows) because I used Cygwin ViM. The problem was that when I cloned Vundle.vim, it used Windows-style line endings and the Vundle plugin did not load. I had to run find ~/.vim -type f -iname '*.vim' -exec dos2unix {} \+ to convert my files to final unix lines before they worked.

It is assumed that you have installed dos2unix .

+1
source

Source: https://habr.com/ru/post/986460/


All Articles