Hello I am trying to install some plugins and use vundle as my plugin manager.
When I open gvim this is the error that I get
Error detected while processing /home/user/.vimrc:
line 9:
E117: Unknown function: vundle#rc
line 12:
E492: Not an editor command: Bundle 'gmarik/vundle'
And here is the snippet of the top of my .vimrc file
set nocompatible
filetype off
set rtp+=~/.vim/bundle/vundel/
call vundle#rc()
"Required Bundel Statement
Bundle 'gmarik/vundle'
"User Installed Bundles
Bundle 'neocomplcache/neocomplcache.vim'
Bunlde 'perlomni/perlomni.vim'
filetype plugin indent on
filetype on
syntax on
I installed it according to git hub and according to the read me that was downloaded with it.
I do not have access to a super user account so trying to unistall and reinstall vim will not work.
Also I tried installing pathogen and that worked for some bundles but would not work for perlomni.vim because it was an ftplugin and pathogen was not appending the bundles correctly and after research I saw most people saying vundle was better than pathogen.
Can anyone help me get my bundles working correctly?
I am trying to use either bundles downloaded from a git repository or a bundles that are stored on a shared root directory.
Thanks
You spelled vundle wrong in your set rtp line
set rtp+=~/.vim/bundle/vundel/
should probably be
set rtp+=~/.vim/bundle/vundle/
Related
I installed nvim-tree.lua using the Vundle plugin manager in my init.vim:
call vundle#begin()
Plugin 'kyazdani42/nvim-tree.lua'
call vundle#end()
source $HOME/.config/nvim/nvim_tree.vim
The nvim_tree.vim file includes:
nnoremap <C-n> :NvimTreeToggle<CR>
Sure enough, calling :PluginList lists the plugin correctly.
Checking bundle's runtime path ~/.vim/bundle/, the plugin files are all there.
However calling :NvimTreeToggle produces the error:
E492: Not an editor command: NvimTreeToggle
Turns out I completely ignored a change in the latest commit:
Options are currently being migrated into the setup function, you need to run require'nvim-tree'.setup() in your personal configurations.
So after :lua require'nvim-tree'.setup() everything works fine.
This question already has an answer here:
Why can't I source my vimrc after installing vundle?
(1 answer)
Closed 5 years ago.
I'm using Vundle as my vim plugin manager and I've noticed when I run
source ~/.vimrc it gives me a vundle loading error. However my plugins are working fine.
The error I get is
192-168-1-9:dotfiles sameeragayan$ source ~/.vimrc
-bash: filetype: command not found
-bash: set the runtime path to include Vundle and initialize
set rtp+=~/dotfiles/vim/bundle/Vundle.vim
call vundle#begin()
: No such file or directory
-bash: Plugin: command not found
-bash: /Users/sameeragayan/.vimrc: line 13: syntax error near unexpected token `('
-bash: /Users/sameeragayan/.vimrc: line 13: `call vundle#begin()'
When I check the path (~/dotfiles/vim/bundle/Vundle.vim) I can see the Vundle file is in the path
Below is my vimrc file (which is symlinked to ~/.vimrc
set nocompatible " be iMproved, required
filetype off " required
filetype plugin indent on
" set the runtime path to include Vundle and initialize
set rtp+=~/dotfiles/vim/bundle/Vundle.vim
call vundle#begin()
" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'
call vundle#begin()
" other plugins plugins
" E.g Plugin 'vim-airline/vim-airline'
call vundle#end()
My vim version is - version 8.0.1100. MacOS version is - 10.12.5 (MacOSSierra).
PS: I did check this SO question with no luck
As both FDinoff and melpomene mentioned, I can't source a vimrc file from bash.
Please refer to the following SO question for more details.
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.
At my work I want to use vim plugins but I cannot install plugins via git hub command which are mentioned in forums. I need to install plugins manually by copying required files but it does not work. Can someone let me know how to install vim plugins manually in Linux environment .
Here are the steps i have done:
Downloaded github.com/VundleVim/Vundle.vim
Created ~/.vim/bundle, ~/.vim/plugin directories
Copied vundle.vim into ~/.vim/bundle/vundle.vim
I have copied below message in .vimrc file
set rtp+=~/.vim/bundle/vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
Plugin 'file:/nfs/iind/home/bvedula/.vim/plugin'
call vundle#end() " required
filetype plugin indent on " required
When i run vim in my xterm i get following error:
Error detected while processing ~/.vimrc,
E117: Unknown function: vundle#begin,
E492: Not an editor command: Plugin 'VundleVim/Vundle.vim',
E492: Not an editor command: Plugin 'file:~/.vim/plugin
The error says, that vundle#begin is unknown, means that Vundle.vim was not even loaded. Looks like you have vundle.vim instead of Vundle.vim (with uppercase first letter) in the set rtp+=~/.vim/bundle/vundle.vim.
But anyway Vundle is not a good choice if you don't have access to the Internet.
Instead you can use pathogen which doesn't try to download plugins and only loads them:
any plugins you wish to install can be extracted to a subdirectory
under ~/.vim/bundle, and they will be added to the 'runtimepath'
I'm trying to install the vim-scala and vim-sensible plugins using Vundle. I followed the directions here: https://github.com/gmarik/Vundle.vim
In my ~/.vim directory I have: a folder named 'bundle' with a Vundle.vim directory I downloaded from the tutorial.
In my ~/.vimrc I have:
set nocompatible
filetype off
" 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 'gmarik/Vundle.vim'
Plugin 'tpope/vim-sensible'
Plugin 'derekwyatt/vim-scala'
" All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on " required
Then I open Vim, type
:PluginInstall
and my plugins are shown to be successfully installed. However, when I open Vim again, nothing changes.
Edit: I should note that I had the same problems using Pathogen, so I don't think this is a bug in Vundle.
Edit: My .vim and .vimrc are in /root/.vim; I am running on Linux.
According to the asker jeffrey, he resolved his problem. His plugins were loading, but he just did not realize it, because the plugins were not changing any obvious, visible Vim settings.