I did some experimenting with plugins and settings in the .vim directory and the .vimrc file. It broke my whole vim installation so I uninstalled it and removed all the configuration files.
After that I installed vim again but every time I start up my new installation of vim the following error messages comes from my .vimrc in .vim, even though I have removed it altogether. I've checked for hidden files with Ctrl-H and there was a .vimrc.swp which I removed as well, with no result.
Error detected while processing /home/myusername/.vimrc:
line 6:
E117: Unknown function: vundle#begin
line 11:
E492: Not an editor command: Plugin 'VundleVim/Vundle.vim'
line 16:
E492: Not an editor command: Plugin 'tpope/vim-fugitive'
line 18:
E492: Not an editor command: Plugin 'L9'
line 20:
E492: Not an editor command: Plugin 'git://git.wincent.com/command-t.git'
line 22:
E492: Not an editor command: Plugin 'file:///home/gmarik/path/to/plugin'
line 25:
E492: Not an editor command: Plugin 'rstacruz/sparkup', {'rtp': 'vim/'}
line 28:
E492: Not an editor command: Plugin 'ascenator/L9', {'name': 'newL9'}
line 31:
E117: Unknown function: vundle#end
Press ENTER or type command to continue
So how do I remove whatever is causing these messages? Thanks in advance
Run :scriptnames once vim starts. This will show all files that vim has sourced since starting up. I suspect you have a ~/.vimrc that you haven't removed.
Edit: Actually there is a file you haven't removed, and it says the filename right there at the top of the errors you posted.
Related
So when I open a file (i.e., vi examples.R) on my Ubuntu 20.04 laptop, I get the following string of errors:
Error detected while processing /home/mikel/.vimrc:
line 1:
E319: Sorry, the command is not available in this version: call plug#begin('~/.vim/plugged')
line 2:
E492: Not an editor command: Plug 'sheerun/vim-polyglot'
line 3:
E492: Not an editor command: Plug 'trevordmiller/nova-vim'
line 4:
E492: Not an editor command: Plug 'jalvesaq/Nvim-R'
line 6:
E319: Sorry, the command is not available in this version: call plug#end()
Press ENTER or type command to continue
My ~/.vimrc file is:
call plug#begin('~/.vim/plugged')
Plug 'sheerun/vim-polyglot'
Plug 'trevordmiller/nova-vim'
Plug 'jalvesaq/Nvim-R'
call plug#end()
I don't even know where to begin when diagnosing this issue. Do any of you have any thoughts? Thank you!
It looks like you broke your .vimrc, and that your vi is just an alias to vim. Try either fixing up your configuration (it looks to me that Vundle got messed up somehow) or delete ~/.vimrc and start again.
Recentely I have installed VIM 8.0 at my Ubuntu 18.10. After the installation, I follow this steps https://github.com/VundleVim/Vundle.vim to prepare my plugin manager of VIM.
There is a directory ~/.vim and a subdirectory ~/.vim/bundle where I suppose to save the plugins for VIM. Beside that, there are the .vimrc file (~/.vim) and vundle.vim (~/.vim/bundle).
I did the follow setup to .vimrc
set nocompatible " be iMproved, required
filetype off " required
set number
" 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/'}
" Install L9 and avoid a Naming conflict if you've already installed a
" different version somewhere else.
" Plugin 'ascenator/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
When I tried to install the Plugin via :PlugInstall or :PluginInstall vim tells me that there are not those commands. I noticied that the basics setup as set number are not working as well.
After a lot of research I check that when I check the :scriptnames:
1: /usr/share/vim/vimrc
2: /usr/share/vim/vim80/debian.vim
3: /usr/share/vim/vim80/syntax/syntax.vim
4: /usr/share/vim/vim80/syntax/synload.vim
5: /usr/share/vim/vim80/syntax/syncolor.vim
6: /usr/share/vim/vim80/filetype.vim
7: ~/.vimrc
8: /usr/share/vim/vim80/syntax/nosyntax.vim
9: /usr/share/vim/vim80/plugin/getscriptPlugin.vim
10: /usr/share/vim/vim80/plugin/gzip.vim
11: /usr/share/vim/vim80/plugin/logiPat.vim
12: /usr/share/vim/vim80/plugin/manpager.vim
13: /usr/share/vim/vim80/plugin/matchparen.vim
14: /usr/share/vim/vim80/plugin/netrwPlugin.vim
15: /usr/share/vim/vim80/plugin/rrhelper.vim
16: /usr/share/vim/vim80/plugin/spellfile.vim
17: /usr/share/vim/vim80/plugin/tarPlugin.vim
18: /usr/share/vim/vim80/plugin/tohtml.vim
19: /usr/share/vim/vim80/plugin/vimballPlugin.vim
20: /usr/share/vim/vim80/plugin/zipPlugin.vim
21: /usr/share/vim/vim80/scripts.vim
22: /usr/share/vim/vim80/syntax/vim.vim
23: /usr/share/vim/vim80/syntax/lua.vim
24: /usr/share/vim/vim80/syntax/perl.vim
25: /usr/share/vim/vim80/syntax/pod.vim
26: /usr/share/vim/vim80/syntax/ruby.vim
27: /usr/share/vim/vim80/syntax/python.vim
What appear to me that vim is checking .vimrc.
I tried, also, :set runtimepath:
runtimepath=~/.vim,/var/lib/vim/addons,/usr/share/vim/vimfiles,/usr/share/vim/vim80,/usr/share/vim/vimfiles/after,/var/lib/vim/addons/after,~/.vim/after
Where again is showing me that there is the path to ~/.vim.
I suspect that may be some problem in the vundle.vim (~/.vim/bundle) or something else.
Anybody can help me?
It sounds like you are placing your .vimrc configuration into the wrong directory (~/.vim/).
Please try placing the .vimrc file directly into your home directory.
I was able to successfully run the :PluginInstall command after running the following commands:
vim ~/.vimrc # (Insert vim configuration)
mkdir -p ~/.vim/bundle/
cd ~/.vim/bundle/
git clone https://github.com/VundleVim/Vundle.vim
I installed VIM from repository in ubuntu 16.04. and installed plugin from
Link
for web Design and Web Development in PHP.
but i get this error : (head of Error)
Error detected while processing /home/abolfazl/.vimrc:
line 7:
E117: Unknown function: vundle#rc
line 9:
E492: Not an editor command: Bundle 'gmarik/vundle'
Error detected while processing /home/abolfazl/vimrc/vimrc.vundle:
line 11:
E492:
Press ENTER or type command to continue
and head of my ~/.vimrc config is :
"--------------------
" Use Vundle to manage bundles
"--------------------
set nocompatible " be iMproved
filetype off " required!
set rtp+=~/.vim/bundle/vundle
call vundle#rc()
Bundle 'gmarik/vundle'
source ~/.vim/vimrc.vundle
"--------------------
" General Settings
"--------------------
set bs=indent,eol,start
I believe that the problem here is with your installation of vundle.
The instructions on the repo page instruct you to clone the repository with the following command:
$ git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
This will clone the repo into a path within your ~/.vim folder. Your error message however, seems to be complaining about the file:
/home/abolfazl/vimrc/vimrc.vundle
This file is in a folder called vimrc - I'm fairly certain that this is the issue and that this folder should not exist.
So it appears as though it was installed to the wrong path.
I have a .vimrc file on my desktop, which I put on github. Checked it out to my laptop and I get these errors. Vim 7.4.52, lubuntu
Error detected while processing /home/jcg/.vimrc:
line 5:
E117: Unknown function: vundle#begin
line 8:
E492: Not an editor command: Plugin 'gmarik/Vundle.vim'
line 13:
E492: Not an editor command: Plugin 'bling/vim-airline'
line 16:
E492: Not an editor command: Plugin 'tpope/vim-fugitive'
line 19:
E492: Not an editor command: Plugin 'klen/python-mode'
line 21:
E117: Unknown function: vundle#end
The .vimrc file:
set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" let Vundle manage Vundle -- required!
Plugin 'gmarik/Vundle.vim'
" The bundles you install will be listed here
" vim-airline status line from github
Plugin 'bling/vim-airline'
" git from within vim
Plugin 'tpope/vim-fugitive'
" python mode
Plugin 'klen/python-mode'
call vundle#end()
filetype plugin indent on
You need to install Vundle on your laptop. Here are their installation instructions; the part you're missing appears to be
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
The set rtp command is adding ~/.vim/bundle/Vundle.vim to Vim's path, which lets vundle#begin() be found on the next line.
I wanted to come back to my question to perhaps help someone who lands here.
I thought the answer from #Kristjan solved my problem, but it didn't. Then I found this git repository: https://github.com/VundleVim/Vundle.vim
and in step 4 of the README:
Install Plugins:
Launch vim and run :PluginInstall
To install from command line: vim +PluginInstall +qall
This actually was the missing step. When you copy .vim directory and .vimrc you need to install, and I failed to do this
I install Vundle by the step of its github homepage. I have installed the git, curl and clone the vundle to my directory.
While I encountered problems as follows:
Error detected while processing C:\Program Files\Vim\_vimrc:
line 21:
E518: Unknown option: $VIM/vimfiles/bundle/vundle/
line 22:
E117: Unknown function: vundle#rc
line 23:
E492: Not an editor command: Bundle 'gmarik/vundle'
line 24:
E492: Not an editor command: Bundle 'Lokaltog/vim-easymotion'
line 25:
E492: Not an editor command: Bundle 'bling/vim-airline'
Here is a snippet of my _vimrc(in windows):
filetype off
set rtp += $VIM/vimfiles/bundle/vundle/
call vundle#rc('$VIM/vimfiles/bundle/')
Bundle 'gmarik/vundle'
Bundle 'Lokaltog/vim-easymotion'
Bundle 'bling/vim-airline'
filetype plugin indent on " required!
"vundle
There must be no spaces in the :set command:
set rtp+=$VIM/vimfiles/bundle/vundle/
That caused the E518: Unknown option.
Furthermore, I would not recommended to put your personal customizations under C:\Program Files\vim; in newer Windows versions, this may only be writable with admin rights. Rather, take the _vimrc from there as a template, and copy all of your customizations to $HOME.