Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Vim cannot find colorscheme installed by Vundle

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>
like image 874
RootOnChair Avatar asked Oct 28 '25 09:10

RootOnChair


1 Answers

You need to change line 11 of your .vimrc to

Bundle 'rstacruz/sparkup', {'rtp': 'vim'} 

As 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

like image 84
Nick Edwards Avatar answered Oct 31 '25 01:10

Nick Edwards



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!