line 10:
E492: Not an editor command: Plugin 'VundleVim/Vundle.vim'
line 15:
E492: Not an editor command: Plugin 'tpope/vim-fugitive'
line 17:
E492: Not an editor command: Plugin 'L9'
line 19:
E492: Not an editor command: Plugin 'git://git.wincent.com/command-t.git'
line 21:
E492: Not an editor command: Plugin 'file:///home/gmarik/path/to/plugin'
line 24:
E492: Not an editor command: Plugin 'rstacruz/sparkup', {'rtp': 'vim/'}
line 26:
E492: Not an editor command: Plugin 'user/L9', {'name': 'newL9'}
line 29:
E117: Unknown function: vundle#end
Press ENTER or type command to continue
You should upload minimal .vimrc.
I think your rtp path is wrong.
this is my .vimrc file
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'
" The following are examples of different formats supported.
" Keep Plugin commands between vundle#begin/end.
" plugin on GitHub repo
Plugin 'tpope/vim-fugitive'
" plugin from http://vim-scripts.org/vim/scripts.html
Plugin 'L9'
" Git plugin not hosted on GitHub
Plugin 'git://git.wincent.com/command-t.git'
" git repos on your local machine (i.e. when working on your own plugin)
Plugin 'file:///home/gmarik/path/to/plugin'
" The sparkup vim script is in a subdirectory of this repo called vim.
" Pass the path to set the runtimepath properly.
Plugin 'rstacruz/sparkup', {'rtp': 'vim/'}
" Avoid a name conflict with L9
Plugin 'user/L9', {'name': 'newL9'}
" All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on " required
" To ignore plugin indent changes, instead use:
"filetype plugin on
"
" Brief help
" :PluginList - lists configured plugins
" :PluginInstall - installs plugins; append ! to update or just :PluginUpdate
" :PluginSearch foo - searches for foo; append ! to refresh local cache
" :PluginClean - confirms removal of unused plugins; append ! to auto-approve removal
"
" see :h vundle for more details or wiki for FAQ
" Put your non-Plugin stuff after this line
set rtp+=~/.vim/bundle/Vundle.vim
~ for rtp. It is not expanded automatically in Windows.my system is ubuntu 14.04
not installed net i just used the command
$ git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
and set my .vimrc file like above
when i Launch vim and run :PluginInstall
it shows E492: Not an editor command: PluginInstall
@v-leonhou You should read other issues.
I have read other same issues in the issue tracker.
@Shougo OK ,anyway thank you very much for your reply
@v-leonhou
please use these command
mv .vimrc .vimrc.backup
or
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
if you want to install any plugin, you can add Plugin 'pluginName' after Plugin 'VundleVim/Vundle.vim'
@Shougo, @wsdjeg One thing I have gotten stuck on with this process - on Windows - is that I get this message:
E492: Not an editor command: PluginInstall! ^M
It looks like there is something at the end that is being added to my vimrc file that is casing this issue, I am guessing. Any thoughts on how to take care of this?
check your file type unix or dos
dos use ^M change to new line
Yep I would check your line endings
@ryanoasis @wsdjeg Sorry for my ignorance on this part, how would I go about changing the line endings for this? Thank you for your help.
may be you can try with these command
mv .vimrc .vimrc.backup
or
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
open your vimrc by vim or gvim,them insert this command
:set fileformat=unix
:w
reopen your vim try with :NeobundleInstall
@wsdjeg for some unknown reason, the vimrc is coming from /etc on this machine. Don't know if this happened when I installed cygwin, but it certainly is not coming from my home directory. This maybe getting off topic, but how do I change this to look at the _vimrc file in my home directory for this Windows machine?
Thank you,
Rob
make sure your /etc/vim/vimrc cotains this
runtime! debian.vim
/usr/share/vim/vim74/debian.vim contains this
set runtimepath=~/.vim,/var/lib/vim/addons,/usr/share/vim/vimfiles,/usr/share/vim/vim74,/usr/share/vim/vimfiles/after,/var/lib/vim/addons/after,~/.vim/after
@v-leonhou were you able to solve this?
@v-leonhou same problem with you . have you solved it?
yes maybe the format is wrong,check your config file from the first line, mine is the first line something wrong @moqiguzhu
I follow wsdjeg's suggestion and solve the problem. Though I have solved it, I still have no idea what wrong with my original .vimrc file. Thanks anyway. @v-leonhou
Closing this. Reopen if anyone involved still has issues.
I am having the same problem but I am not being able to solve it by the way is indicated here. I am installing it on Windows.
The issue I had was I did not source the vimrc file. Once I did :so % it worked.
In my case it depended on git autocrlf setting, I had autocrlf set to true instead of input (ubuntu) https://help.github.com/articles/dealing-with-line-endings
@PriorA does anything mentioned by @developernaren or @livia-b help you?
@wsdjeg THIS WORKED THANK YOU!
I am new to Debian and needing to source the file manually was the issue for me. I assumed a fresh terminal session would do this, but it doesn't seem to be the case. thanks @developernaren !
Thanks wsdjeg! Worked for me, but also in my case, it appeared even i was still using /bin/vi. I had to :
mv `which vi` /bin/vi.old
ln -s `which vim` /bin/vi
Works perfect now. Thanks!
My env: centos7.4
@psychameleon
Works perfect now, too.
Thanks!
@wsdjeg
work perfect Thank you
@tvankith welcome
In my case... I need to install vim.. i was using system vi...
Most helpful comment
@v-leonhou
please use these command
copy this to your .vimrc