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
...
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:
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.
Most helpful comment
Figured it out. I had 2 .vimrc files( found this out through
:version)here is the problem I had:
Anyway, thanks for response!