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.
Related
I am trying to use Vundle to manage gVim plugins, but I can't get past an error when starting up Vundle in my gvimrc file. "unknown function: vundle#begin()"
This is usually some runtimepath problem, but I can clearly see that the directory of Vundle.vim is in my runtimepath.
My gvimrc file is in C:\Users\Username, and my vim installation is in C:\Program Files (x86)\Vim. My Vundle installation is in C:\Users\Username\.vim\bundle\Vundle.vim... and my run time path variable clearly includes this file path.
Here is the relevant text of my gvimrc:
set nocompatible
syntax on
filetype off
" set the runtime path to include Vundle and initialize
set rtp+=C:\Users\username\\.vim\bundle\Vundle.vim
call vundle#begin()
Plugin 'gmarik/Vundle.vim'
Plugin 'path etc.'
call vundle#end()
filetype plugin indent on
I can successfully run PluginInstall and install some plugins, but I can't get vim to use Vundle. What more can I do?
Maybe it's caused by Windows path, try this:
let $vundle='C:/Users/username/.vim/bundle/Vundle.vim'
set rtp+=$vundle
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'm trying to install the VIM Floobits plugin, but I'm having a lot of difficulty.
First off, I installed VIM from the VIM website and then I tried using Vundle to install the VIM Floobits Plugin.
The issue was that when I tried running the:PluginInstallcommand, I got the message "Sorry, the Floobits Vim plugin requires a Vim compiled with +python"
I'm not really sure what that means. So I looked that up and tried to use MinGW to compile vim with +python. That did not work. Next I tried building VIM from the sources, but the configure command does not work on Windows.
Does anyone know how to properly install Floobits for console VIM?
Oh, and here's the lines from my ~/.vimrc that pertain to Vundle:
" VUNDLE
set nocompatible " required
filetype off " required
set rtp+=~/.vim/bundle/Vundle.vim " set the runtime path to include Vundle and initialize
call vundle#begin() " begin vundle
Plugin 'gmarik/Vundle.vim' " let Vundle manage Vundle, required
Plugin 'Floobits/floobits-vim' " add the floobits plugin
call vundle#end() " required; all plugins must be added before this line
You can find proper Vim builds for Windows here:
https://tuxproject.de/projects/vim/
http://solar-blogg.blogspot.ca/p/vim-build.html
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.
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/