jeffkreeftmeijer / vim-dim

Dim (/dɪm/; a contraction of Default IMproved) is a clone of Vim’s default colorscheme, with some improvements.
https://jeffkreeftmeijer.com/vim-16-color
248 stars 30 forks source link

Is 8 colors terminal supported by dim? #1

Open shunlir opened 4 years ago

shunlir commented 4 years ago

The color scheme is using 16 color number, taking a highlight group from the source:

" Highlight search matches in black, with a yellow background
highlight Search         ctermfg=0    ctermbg=11

the background color is not showing correctly for 8 colors terminal: image After changing 11 to 3*, it looks good: image

shunlir commented 4 years ago

I did a few investigation, dim only works when t_Co>=16. Do you know is there any working color fallback method supported by VIM can be used? I tried colors in :h cterm-color, but no one is perfect:

jeffkreeftmeijer commented 3 years ago

Hey @shunlir, sorry for taking so long to get back to you on this. I’m not sure what the issue is here, but are you still having this problem? I’d merge a 8-color setting if it looks okay, but I’m afraid I don’t have time to look into that myself.