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

Fallback colors #39

Closed
cipherlogs opened this issue May 28, 2021 · 7 comments
Closed

Fallback colors #39

cipherlogs opened this issue May 28, 2021 · 7 comments

Comments

@cipherlogs
Copy link

Hello,

I really hope if you can help me figure out how do you make your theme fallback to 2 colors

do you use

set t_Co=2

I tried it and it didn't work for me. Thank you

@lifepillar
Copy link
Owner

Try :set t_Co= (no value) or :set t_Co=0.

@cipherlogs
Copy link
Author

Hello, thank you so much for your reply.

I have tried it but nothing changes.

I made sure that set termguicolors isn't active in my vimrc
and I also tried to start vim with "vim -c "set t_Co=" but the colors are all messed up
they are not like the ones you have attached in your readme repo

I have also tried to set my $TERM to vt100

I'm using Alacritty btw...

I really hope we can solve this problem.

@lifepillar
Copy link
Owner

lifepillar commented May 29, 2021

Save this as min-vimrc.vim:

set nocompatible
set runtimepath+=<CHANGE TO PATH TO>/gruvbox8
set notermguicolors
set t_Co=
colorscheme gruvbox8

Run with vim --clean -u ./min-vimrc.vim. I get a black and white Vim in Alacritty.

Are you sure that you have set notermguicolors?

@lifepillar
Copy link
Owner

Are you sure that you have set notermguicolors?

before loading the color scheme.

@cipherlogs
Copy link
Author

Hello, thank you so much for your help,

I have tried everything you said, yes the colors do get stripped but the outcome is nowhere near what you have on your B&W repo

I don't know why!

@lifepillar
Copy link
Owner

the colors do get stripped but the outcome is nowhere near what you have

Do you mean, with the minimal vimrc above? Well, that's… minimal. You need to enable at least syntax highlighting. Try with this:

" Minimal vimrc
set nocompatible
set runtimepath+=<PATH TO>/gruvbox8
set notermguicolors
set t_Co=
syntax enable
filetype plugin indent on
set number relativenumber
set laststatus=2
set showtabline=2
set foldmethod=marker
set foldenable
colorscheme gruvbox8

This is a screenshot from Alacritty with the configuration above:

bw-vim

@lifepillar
Copy link
Owner

Closing as not reproducible.

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

2 participants