I was trying to install gruvbox colorscheme through Vundle but when I run vim. There was an error like this:
Error detected while processing C:\Users\user\.vimrc:
line 53:
E185: Cannot find color scheme 'gruvbox'
I've searched everywhere in Stack Overflow and tried everything but none of them worked. Can you please help me figure this out?
Here are commands which I ran:
vim
:PluginInstall
:q
vim <-- This is where I got the error
my .vimrc:
set nocompatible
filetype off
set rtp+=$HOME/.vim/bundle/Vundle.vim/
call vundle#begin('$HOME/.vim/bundle/')
Plugin 'VundleVim/Vundle.vim'
Plugin 'tpope/vim-fugitive'
Plugin 'file:///home/gmarik/path/to/plugin'
Plugin 'rstacruz/sparkup', {'rtp': 'vim/'}
Plugin 'morhetz/gruvbox'
call vundle#end()
filetype plugin indent on
syntax enable
set background=dark
colorscheme gruvbox
set tabstop=4
set softtabstop=4
set expandtab
set number
set showcmd
set cursorline
filetype indent on
set wildmenu
set lazyredraw
set showmatch
set incsearch
set hlsearch
nnoremap <leader><space> :nohlsearch<CR>
You need to change line 11 of your
.vimrc
toAs explained on https://github.com/VundleVim/Vundle.vim/wiki/Vundle-for-Windows#trailing-slash-issue the trailing slash in your vimrc leads to an invalid
runtimepath
which causes all plugin loading to fail