Vundle.vim: e492: Not an editor command

Created on 30 Jun 2014  ยท  28Comments  ยท  Source: VundleVim/Vundle.vim

I get this error(e492: Not an editor command) when I call :PluginInstall.
Here is .vimrc file:

set nocompatible              " be iMproved, required
filetype off                  " required
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin() 

" let Vundle manage Vundle, required 
Plugin 'gmarik/Vundle.vim' 

" Plugins 
Plugin 'tpope/vim-fugitive' 

" Color schemes 

" All of your Plugins must be added before the following line 
call vundle#end()            " required 
filetype plugin indent on    " required 

" Tabulation settings 
set tabstop=4 
set softtabstop=4 
set shiftwidth=4 
set noexpandtab

and here is my tree

/home/user/.vim/
...
โ”œโ”€โ”€ bundle
โ”‚ย ย  โ””โ”€โ”€ Vundle.vim
โ”‚ย ย      โ”œโ”€โ”€ autoload
โ”‚ย ย      โ”‚ย ย  โ”œโ”€โ”€ vundle
โ”‚ย ย      โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ config.vim
โ”‚ย ย      โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ installer.vim
โ”‚ย ย      โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ scripts.vim
โ”‚ย ย      โ”‚ย ย  โ””โ”€โ”€ vundle.vim
โ”‚ย ย      โ”œโ”€โ”€ changelog.md
โ”‚ย ย      โ”œโ”€โ”€ CONTRIBUTING.md
โ”‚ย ย      โ”œโ”€โ”€ doc
โ”‚ย ย      โ”‚ย ย  โ””โ”€โ”€ vundle.txt
โ”‚ย ย      โ”œโ”€โ”€ LICENSE-MIT.txt
โ”‚ย ย      โ”œโ”€โ”€ README.md
โ”‚ย ย      โ””โ”€โ”€ test
โ”‚ย ย          โ”œโ”€โ”€ files
โ”‚ย ย          โ”‚ย ย  โ””โ”€โ”€ test.erl
โ”‚ย ย          โ”œโ”€โ”€ minirc.vim
โ”‚ย ย          โ””โ”€โ”€ vimrc
...

Most helpful comment

Figured it out. I had 2 .vimrc files( found this out through :version)
here is the problem I had:

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

Anyway, thanks for response!

All 28 comments

your vimrc works for me. maybe there is a problem with your clone of vundle (there is no .git folder in your listing but maybe you just did not paste it to the browser)

try to update vundle from the commandline or make a new clone:

cd ~/.vim/bundle/Vundle.vim
git pull

or

cd ~/.vim/bundle
rm -rf Vundle.vim
git clone https://github.com/gmarik/Vundle.vim

I have a git folder there but it is hidden.

Anyway

cd ~/.vim/bundle/Vundle.vim
git pull

replies --> Already up-to-date.

Here is the full tree:(.git folder is hidden !!!!)

/home/rasdel/.vim/
โ”œโ”€โ”€ autoload
โ”‚ย ย  โ”œโ”€โ”€ mmtemplates
โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ core.vim
โ”‚ย ย  โ””โ”€โ”€ mmtoolbox
โ”‚ย ย      โ”œโ”€โ”€ cmake.vim
โ”‚ย ย      โ”œโ”€โ”€ doxygen.vim
โ”‚ย ย      โ”œโ”€โ”€ helloworld.vim
โ”‚ย ย      โ”œโ”€โ”€ make.vim
โ”‚ย ย      โ””โ”€โ”€ tools.vim
โ”œโ”€โ”€ bundle
โ”‚ย ย  โ””โ”€โ”€ Vundle.vim
โ”‚ย ย      โ”œโ”€โ”€ autoload
โ”‚ย ย      โ”‚ย ย  โ”œโ”€โ”€ vundle
โ”‚ย ย      โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ config.vim
โ”‚ย ย      โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ installer.vim
โ”‚ย ย      โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ scripts.vim
โ”‚ย ย      โ”‚ย ย  โ””โ”€โ”€ vundle.vim
โ”‚ย ย      โ”œโ”€โ”€ changelog.md
โ”‚ย ย      โ”œโ”€โ”€ CONTRIBUTING.md
โ”‚ย ย      โ”œโ”€โ”€ doc
โ”‚ย ย      โ”‚ย ย  โ””โ”€โ”€ vundle.txt
โ”‚ย ย      โ”œโ”€โ”€ LICENSE-MIT.txt
โ”‚ย ย      โ”œโ”€โ”€ README.md
โ”‚ย ย      โ””โ”€โ”€ test
โ”‚ย ย          โ”œโ”€โ”€ files
โ”‚ย ย          โ”‚ย ย  โ””โ”€โ”€ test.erl
โ”‚ย ย          โ”œโ”€โ”€ minirc.vim
โ”‚ย ย          โ””โ”€โ”€ vimrc
โ”œโ”€โ”€ c-support
โ”‚ย ย  โ”œโ”€โ”€ codesnippets
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ calloc_double_matrix.c
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ calloc_int_matrix.c
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ main.c
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ main.cc
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ Makefile
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ Makefile.multi-target.template
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ Makefile.pro
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ print_array.cc.noindent
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ print_double_array.c.noindent
โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ print_int_array.c.noindent
โ”‚ย ย  โ”œโ”€โ”€ doc
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ ChangeLog
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ c-hotkeys.pdf
โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ c-hotkeys.tex
โ”‚ย ย  โ”œโ”€โ”€ rc
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ customization.cpp.vim
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ customization.ctags
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ customization.gvimrc
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ customization.indent.pro
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ customization.vimrc
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ project
โ”‚ย ย  โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ in.vim
โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ sample_template_file
โ”‚ย ย  โ”œโ”€โ”€ README.csupport
โ”‚ย ย  โ”œโ”€โ”€ scripts
โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ wrapper.sh
โ”‚ย ย  โ”œโ”€โ”€ templates
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ c.comments.template
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ c.cpp.template
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ c.idioms.template
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ cpp.comments.template
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ cpp.cpp.template
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ cpp.idioms.template
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ cpp.preprocessor.template
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ cpp.statements.template
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ c.preprocessor.template
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ c.statements.template
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ doxygen.template
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ help.template
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ snippets.template
โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ Templates
โ”‚ย ย  โ””โ”€โ”€ wordlists
โ”‚ย ย      โ”œโ”€โ”€ c-c++-keywords.list
โ”‚ย ย      โ”œโ”€โ”€ k+r.list
โ”‚ย ย      โ””โ”€โ”€ stl_index.list
โ”œโ”€โ”€ doc
โ”‚ย ย  โ”œโ”€โ”€ csupport.txt
โ”‚ย ย  โ”œโ”€โ”€ templatesupport.txt
โ”‚ย ย  โ”œโ”€โ”€ toolboxcmake.txt
โ”‚ย ย  โ”œโ”€โ”€ toolboxdoxygen.txt
โ”‚ย ย  โ”œโ”€โ”€ toolboxmake.txt
โ”‚ย ย  โ””โ”€โ”€ toolbox.txt
โ”œโ”€โ”€ ftplugin
โ”‚ย ย  โ”œโ”€โ”€ c.vim
โ”‚ย ย  โ””โ”€โ”€ make.vim
โ”œโ”€โ”€ plugin
โ”‚ย ย  โ””โ”€โ”€ c.vim
โ””โ”€โ”€ syntax
    โ””โ”€โ”€ template.vim

Very strange. Some wild guesses:

  • is the file you posted your _whole_ .vimrc file? Do you also get the error with this (minimal?) version?
  • What is your vim version?
  1. Posted a full .vimrc file. Actually, I am new to vim and I do not understand what means minimal version.
  2. I am using vim version 7.4.52 on 14.04 xubuntu.

Figured it out. I had 2 .vimrc files( found this out through :version)
here is the problem I had:

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

Anyway, thanks for response!

@Yneth I have the same problem and running

:version 

returns

   system vimrc file: "$VIM/vimrc"
   user vimrc file: "$HOME/.vimrc"
   2nd user vimrc file: "~/.vim/vimrc"
   user exrc file: "$HOME/.exrc"
   fall-back for $VIM: "/usr/share/vim"

I'm not sure if I'm supposed to delete one of the vimrc files

@Yneth I have the same issue here. However I cannot find the files in windows explorer and they show in vim under :version

How did you resolve it?

@Yneth same here as well. Would you mind letting us know what you did to resolve the issue?

@gordonmslai @Premitium I think you should expand ~ character.
In windows, it is not expanded automatically.

set rtp+=$HOME/.vim/bundleVundle.vim

I have deleted 2nd user vimrc file.

@Yneth Thks for your guide, but how to delete the 2nd vimrc file?:P

Hi, I'm having the same issue, however I dont have the 2nd vimrc file.
When doing :version mine looks like this:

system vimrc file: "$VIM/vimrc"
user vimrc file: "$HOME/.vimrc"
user exrc file: "$HOME/.exrc"
fall-back for $VIM: "/usr/share/vim"

How do I fix this issue? thanks in advance.

Thanks a lot @nfischer I found the issue, it was the global config of the eol on my machine. Just changed it to input (I'm on OSX) using: git config --global core.autocrlf input, deleted the vundle folder, re cloned repo and created a new .vimrc file and working like a charm now.

Added here: https://github.com/VundleVim/Vundle.vim/wiki/Common-Issues

Feel free to tweak and/or add more details

Hi, put your .vimrc file in your home(~) folder instead of .vim folder

Same problem, but I am not sure if it will work with my version of vim:

:version
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Jan 30 2014 10:56:55)
Included patches: 1-160
Modified by <[email protected]>
Compiled by <[email protected]>
Small version without GUI.  Features included (+) or not (-):
+acl             -cscope          -folding         -menu            -path_extra      -statusline      -visualextra
-arabic          -cursorbind      -footer          -mksession       -perl            -sun_workshop    -viminfo
-autocmd         -cursorshape     +fork()          -modify_fname    -persistent_undo -syntax          -vreplace
-balloon_eval    -dialog          -gettext         -mouse           -printer         -tag_binary      +wildignore
-browse          -diff            -hangul_input    -mouse_dec       -profile         -tag_old_static  -wildmenu
+builtin_terms   -digraphs        +iconv           -mouse_gpm       -python          -tag_any_white   +windows
-byte_offset     -dnd             -insert_expand   -mouse_jsbterm   -python3         -tcl             +writebackup
-cindent         -ebcdic          +jumplist        -mouse_netterm   -quickfix        +terminfo        -X11
-clientserver    -emacs_tags      -keymap          -mouse_sgr       -reltime         -termresponse    -xfontset
-clipboard       -eval            -langmap         -mouse_sysmouse  -rightleft       -textobjects     -xim
-cmdline_compl   -ex_extra        -libcall         -mouse_urxvt     -ruby            -title           -xsmp
+cmdline_hist    -extra_search    -linebreak       -mouse_xterm     -scrollbind      -toolbar         -xterm_clipboard
-cmdline_info    -farsi           -lispindent      +multi_byte      -signs           -user_commands   -xterm_save
-comments        -file_in_path    -listcmds        -multi_lang      -smartindent     -vertsplit       -xpm
-conceal         -find_in_path    -localmap        -mzscheme        -sniff           -virtualedit
-cryptv          -float           -lua             -netbeans_intg   -startuptime     +visual
   system vimrc file: "/etc/virc"
     user vimrc file: "$HOME/.vimrc"
 2nd user vimrc file: "~/.vim/vimrc"
      user exrc file: "$HOME/.exrc"
  fall-back for $VIM: "/etc"
 f-b for $VIMRUNTIME: "/usr/share/vim/vim74"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H     -O2 -g -pipe -Wall -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4
 -grecord-gcc-switches   -m64 -mtune=generic -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
Linking: gcc   -Wl,-z,relro  -L/usr/local/lib -Wl,--as-needed -o vim        -lm  -lselinux -lncurses -lacl -lattr -ldl

Can it work with this version of vim?

@clayms It should work yeah. What issue are you seeing? The same error?

Have you looked at: https://github.com/VundleVim/Vundle.vim/wiki/Common-Issues ?

I've tried to :set fileformat=unix :w inside of Vim but it says Unknown option: :w.

How can I fix "Not an editor command" issue? Please help.

I had this issue in cygwin. Resolved the issue by opening all the .vim files under ~/.vim/bundle/Vundle.vim/autoload and ~/.vim/bundle/Vundle.vim/autoload/vundle folders and removed carriage returns.

I had this issue in centos, just because I have vi and vim, set alias vi='vim' and fix it.

@migsan thanks this works for me.

thanks to @wsdjeg

rm .vimrc

rm -rf .vim
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim

copy this to your .vimrc

set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
call vundle#end()
filetype plugin indent on

Faced this today and found out that it's caused by default non-correct vim version used by applications.

sudo update-alternatives --config editor
Then choose the vim version that has the vundle installed!
I had /usr/bin/vim.tiny is used which was the wrong vim.

It'd be nice to capture some of these solutions in the wiki

Hello,
I am trying to make it work globally for a centos 7 server.

I created a /etc/vim/bundle directory and cloned inside Vundle.vim

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

then created the /etc/virc

set nocompatible
filetype off
set rtp+=/etc/vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
call vundle#end()
filetype plugin indent on

i get this error

Error detected while processing /etc/virc:
line    5:
E492: Not an editor command: Plugin 'VundleVim/Vundle.vim'
Press ENTER or type command to continue

seems that

set rtp+=/etc/vim/bundle/Vundle.vim

is not loading vundle, double checked the permissions of the runtime

Any suggestion?
Thank you!

When I run git commit command, I faced the similar issue E492: Not an editor command: Plugin 'VundleVim/Vundle.vim'.

Fixed it by specifying vim as the editor for git explicitly: git config --global core.editor vim

Figured it out. I had 2 .vimrc files( found this out through :version)
here is the problem I had:

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

Anyway, thanks for response!

also solves my problem. Here is centos 7.8. When I locate the '.vimrc'file, I found it in the '.pyenv' dictionary.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sus007 picture sus007  ยท  5Comments

sheerun picture sheerun  ยท  4Comments

kshenoy picture kshenoy  ยท  4Comments

arnsa picture arnsa  ยท  6Comments

lesterpjy picture lesterpjy  ยท  4Comments