Vim Error E492 - Not Editor Command: PluginInstall

I am trying to install Vundle on my Macvim. I got the following link to get Vundle. I also configured the .vimrc file. But when I try to connect to PluginInstall, I get the following error.

E492: Not an editor command: PluginInstall 

My.vimrc contains the following:

  1 set nocompatible "https://stackoverflow.com/questions/5845557/in-a-vimrc-is-set-nocc ompatible-completely-useless 2 3 " https://github.com/gmarik/Vundle.vim 4 filetype off " required 5 6 " set the runtime path to include Vundle and initialize 7 set rtp+=~/.vim/bundle/Vundle.vim 8 call vundle#begin() 9 " alternatively, pass a path where Vundle should install plugins 10 "call vundle#begin('~/some/path/here') 11 12 " let Vundle manage Vundle, required 13 Plugin 'gmarik/Vundle.vim' 14 15 " All of your Plugins must be added before the following line 16 call vundle#end() " required 17 filetype plugin indent on " required 

My vim directory:

 Username-MacBook-Pro:bundle u1$ pwd /Users/u1/.vim/bundle Username-MacBook-Pro:bundle u1$ ls Vundle.vim 

I also checked this postoverflow post. But that did not solve my problem. Why does this cause such an error and how can I find what exactly is my problem.

+6
source share
3 answers

I had to install Vundle in the Plugin directory instead of the Bundle. He solved the problem.

 git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/plugin/Vundle.vim 
+19
source

You can check the output: version

  system vimrc file: "/etc/vimrc" user vimrc file: "$HOME/.vimrc" 2nd user vimrc file: "~/.vim/vimrc" 

Notice which vimrc file you use, let's say you configure $HOME/vimrc , but vim reads $HOME/.vimrc (without a dot in the file name)

It happened to me.

Hope this helps you.

0
source

As mentioned here , I needed to configure Vundle as follows:

 $ git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim 

Subsequently, the error was resolved. By the way, I am on a FreeBSD 10.3-STABLE machine and not on macOS

0
source

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


All Articles