I have this in my config file:
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
Plugin 'helino/vim-nasm'
Plugin 'elixir-lang/vim-elixir'
Plugin 'powerline/powerline'
call vundle#end()
And then I did this:
:source %
:PluginInstall
But the plugin powerline is still not installed, it's not visible.
https://github.com/powerline/powerline
Powerline only display when plugin like NERDtree is active. If you want to display it every time add this line to your .vimrc file.
set laststatus=2
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 was trying to install vim plugins but it always doesn't work. Here is my .vimrc:
set nocompatible
filetype off
" set up Vundle
" let Vundle manage Vundle
" required!
set rtp+=~/.vim/bundle/Vundle.vim
"plugins list
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
Plugin 'Lokaltog/powerline', {'rtp': 'powerline/bindings/vim/'}
Plugin 'klen/python-mode'
Plugin 'scrooloose/nerdtree'
Plugin 'vim-scripts/indentpython.vim'
Plugin 'Valloric/YouCompleteMe'
Plugin 'jnurmine/Zenburn'
Plugin 'altercation/vim-colors-solarized'
Plugin 'jalvesaq/R-Vim-runtime'
call vundle#end()
filetype plugin indent on
syntax enable
syntax on
And when I ran :PluginInstall, only VundleVim/Vundle.vim was installed (see below). I have tried many ways that I can find online but still can't fix it. Any suggestions?
I had the same issue, vim into ~/.vimrc and run :source % and then :PluginInstall worked for me.
I'm on mac os Big Sur, vundle will only instal itself if I type :PluginInstall after edit and saved .vimrc.
:source % or :so % worked for me!
I am using Vim with cscope, ctags and TagList.
When I open a file with just using vim. I am able to use TagList but when I open a file using cscope, there comes error as:
Error detected while processing /gauravg/.vimrc:
line 9:
E492: Not an editor command: Bundle 'VundleVim/Vundle.vim'
line 13:
E492: Not an editor command: Plugin 'plugin/taglist.vim'
Press ENTER or type command to continue
Below is my .vimrc file:
set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" let Vundle manage Vundle
" required!
Bundle 'VundleVim/Vundle.vim'
call vundle#end()
"Plugin 'tpope/vim-fugitive'
"Plugin 'steffanc/cscopemaps.vim'
Plugin 'plugin/taglist.vim'
Please help me to resolve this issue.
You should use Plugin instead of Bundle for:
Bundle 'VundleVim/Vundle.vim'
Also, all of your plugins must be added before:
call vundle#end()
See the Quick Start of Vundle for more information.
This .vimrc should work:
set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" let Vundle manage Vundle
" required!
Plugin 'VundleVim/Vundle.vim'
"Plugin 'tpope/vim-fugitive'
"Plugin 'steffanc/cscopemaps.vim'
Plugin 'plugin/taglist.vim'
" All of your Plugins must be added before the following line
call vundle#end()
filetype plugin indent on
I want to break down my vimrc in diffrent components. I manage my vim Plugins with Vundle and I want to have one file per plugin that tells vundle to manage it and to set configuration like this:
vundle.vim:
set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
"Plugin in here:
Plugin 'gmarik/Vundle.vim'
call vundle#end()
filetype plugin indent on
"Plugin Options:
and
syntastic.vim:
set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
"Plugin in here:
Plugin 'scrooloose/syntastic'
call vundle#end()
filetype plugin indent on
"Plugin Options:
" - Python:
let g:syntastic_python_checkers = ['pylint', 'flake8']
let g:syntastic_aggregate_errors = 1
and so on.
If I now call this vimrc:
source vundle.vim
source syntastic.vim
only the last Plugin shows up in vundles Plugin list, other configurations are read though.
I guess, vundle calls the 'vundle#begin()'/'vundle#end()' part only upon call (:PluginXXX) and therefore only returns the content of the file last sourced.
How can I solve this problem?
Can I use something like
PLUGINS = "Plugin gmarik/vundle"
PLUGINS = $PLUGINS + "Plugin scrooloose/syntastic"
...
and call
vundle#begin()
$PLUGINS
vundle#end()
in my vimrc?
If so, what is the syntax for vim variables?
~/.vimrc:
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
runtime! config/*.vim
call vundle#end()
filetype plugin indent on
...
~/.vim/config/syntastic.vim
Plugin 'scrooloose/syntastic'
let g:syntastic_python_checkers = ['pylint', 'flake8']
let g:syntastic_aggregate_errors = 1
...
And so on. But that's IMO a lot of work for zero benefit.
I ended up with this:
set nocompatible
filetype off
set rtp+=~/.nvim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
Plugin 'rking/ag.vim'
...
call vundle#end()
filetype plugin indent on
runtime! vundle/*.vim
Which means I get the performance of vundle#begin() and vundle#end() combined with the modularity of having settings for each plugin in their own file. This setup gave the unexpected advantage of having less plugin files to manage, i.e., the Plugin one-liners. Now the only plugin, .vim, files I have are the ones with additional configuration.
The disadvantage of this setup is I have to remove the plugin from two places.
The advantages are: increased performance; you still have fairly modular plugin settings, making them easier to add and remove.
I installed Vundle to my /Users/name directory (ie /Users/name/.vim/bundle/Vundle.vim) a while ago, and set up a .vimrc file in my root directory which has the following:
set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'gmarik/Vundle.vim'
Bundle 'daylerees/colour-schemes', { "rtp": "vim/" }
colorscheme frontier
call vundle#end()
filetype plugin indent on
I ran :PluginInstall as suggested and it says everything has been installed, but I get a "color scheme frontier not found" error everytime I open vim.
This is as far as I've done, am I missing any steps?
Add the following line after the filetype line:
syntax on
And move your colorscheme frontier line anywhere after the call vundle#end() line.
I think you might be mixing the old and new Vundle syntaxes. Instead of
Bundle 'daylerees/colour-schemes', { "rtp": "vim/" }
try
Plugin 'daylerees/colour-schemes', { 'rtp': 'vim/' }
Note the use of single quotes instead of double quotes.