Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot find color scheme 'gruvbox' #85

Closed
chechoRP opened this issue Nov 4, 2015 · 20 comments
Closed

Cannot find color scheme 'gruvbox' #85

chechoRP opened this issue Nov 4, 2015 · 20 comments

Comments

@chechoRP
Copy link

chechoRP commented Nov 4, 2015

I don't know if this is an issue of gruvbox or Vundle, but I am getting an error E185: Cannot find color scheme 'gruvbox' . I have the line Plugin 'morhetz/gruvbox' in my .vimrc and if a dig into the .vim/bundle/ folder I can see gruvbox on it.

Does anyone have the same issue?

@chechoRP
Copy link
Author

chechoRP commented Nov 4, 2015

Nevermind, it was a Vundle issue. I needed to change the line call vundle#begin() with call vundle#rc() in my .vimrc. (Not sure why though)

@chechoRP chechoRP closed this as completed Nov 4, 2015
@0x1
Copy link

0x1 commented Apr 24, 2016

same thing happened to me and the above suggestion made no difference. I was able to fix my situation by creating a colors directory in my .vim directory
mkdir ~/.vim/colors
and then copying the gruvbox colors file to that directory
cp ~/.vim/bundle/gruvbox/colors/gruvbox.vim ~/.vim/colors/

@nicolassilvar
Copy link

the last one makes the error disappear, but the plugin still not working! I try the change to vundle#rc, it didnt make a difference

@nicolassilvar
Copy link

Look into this
https://bbs.archlinux.org/viewtopic.php?id=120325

In ~/.vimrc you should have
set t_Co=256
syntax on

This made it work

@ghost
Copy link

ghost commented Aug 1, 2016

Thanks, Nicolass, it works for me!

@yhliyr
Copy link

yhliyr commented Jan 7, 2018

if you use Pathogen, execute pathogen#infect() should be ahead of colorscheme gruvbox

.vimrc:
execute pathogen#infect()
colorscheme gruvbox

Guzzii pushed a commit to Guzzii/gruvbox that referenced this issue Nov 15, 2019
Add mail specific highlighting
@Totoch
Copy link

Totoch commented Jan 3, 2020

I just had the same problem with Vundle but none of the above solution worked.

What did work is put 'Plugin 'morhetz/gruvbox' as the last plugin to load.

Hope it helps.

@rheemix
Copy link

rheemix commented May 28, 2020

I just had the same problem with Vundle but none of the above solution worked.

What did work is put 'Plugin 'morhetz/gruvbox' as the last plugin to load.

Hope it helps.

Thank you. This worked for me as well.

@n4hm3
Copy link

n4hm3 commented Jul 15, 2020

vundle of plug: You must first have Plugin 'morhetz/gruvbox' in your vimrc and then do PlugInstall or PluginInstall after that add colorscheme gruvbox to vimrc and :source .

@ghost
Copy link

ghost commented Aug 6, 2020

I did the following to solve this problem(tried all of the above solutions):

added - Plugin 'morhetz/gruvbox' as the last plugin in ~/.vimrc.bundle
added - set t_Co=256 in my .vimrc file
created autoload and colors directory in ~/.vim
cp -r ~/.vim/bundle/gruvbox/autoload ~/.vim/autoload
cp -r ~/.vim/bundle/gruvbox/colors ~/.vim/colors

and finally source .vimrc

@CyberC4p0
Copy link

Actually.. the solution is that you have to make sure the colorscheme command is after the "Plug 'morhetz/gruvbox'"... I found out that if it goes before, it wont work

@gabrielbeauchemin
Copy link

I had this problem because I put "colorscheme gruvbox" in my plugins.vim that I souce in init.vim. If I put "colorscheme gruvbox" after the source line of plugins.vim, it works well :)

@WDayu
Copy link

WDayu commented Mar 12, 2021

I had this problem because I put "colorscheme gruvbox" in my plugins.vim that I souce in init.vim. If I put "colorscheme gruvbox" after the source line of plugins.vim, it works well :)

fine ! I use neovim and vim-plug to manage my plug. i hava the same problem and it works when i use your solution.

@DaniloToroL
Copy link

Actually.. the solution is that you have to make sure the colorscheme command is after the "Plug 'morhetz/gruvbox'"... I found out that if it goes before, it wont work

Thank you. This worked for me as well.

@bugkiller-damo
Copy link

实际上..解决方案是你必须确保colorscheme命令在“Plug 'morhetz/gruvbox'”之后......我发现如果它在之前,它将无法工作

thank you ,it's useful.

@rohanrkamath
Copy link

I was having the same issue. I am using vim-plug for the installations.

  1. Make sure the colorscheme gruvbox comes after plug Calls.
  2. Make sure you call plug#end() after plugging in your desired plugs, for this case Plug 'morhetz/gruvbox'.

These were some changes and errors I made and were fixed. Hope this helps you too!

@Miraclezhb
Copy link

Actually.. the solution is that you have to make sure the colorscheme command is after the "Plug 'morhetz/gruvbox'"... I found out that if it goes before, it wont work

I have tried this way and it's helpful

@itsknk
Copy link

itsknk commented Feb 20, 2023

same thing happened to me and the above suggestion made no difference. I was able to fix my situation by creating a colors directory in my .vim directory mkdir ~/.vim/colors and then copying the gruvbox colors file to that directory cp ~/.vim/bundle/gruvbox/colors/gruvbox.vim ~/.vim/colors/

This worked for me! Thank you :)

@ZXTube
Copy link

ZXTube commented Dec 24, 2023

For me the solution was putting call plug#end() above colorscheme gruvbox

@CricySaray
Copy link

CricySaray commented Jan 10, 2024

It works me from StackOverflow like above from @ZXTube

call plug#begin()
Plug 'rakr/vim-one' " tell Vim to load the theme/plugin
call plug#end()
colorscheme one " set the color scheme after the theme provider has been loaded

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests