vim / colorschemes

colorschemes for Vim
289 stars 23 forks source link

gVim incorrectly colors text when using the habamax colorscheme and comparing files #268

Open lkintact opened 1 month ago

lkintact commented 1 month ago
  1. Download these two files: 1.txt, 2.txt
  2. Run gvim.exe --clean -d 1.txt 2.txt
  3. Execute :colorscheme habamax
  4. Execute :set listchars=space:•
  5. Execute :windo set list.

Notice that all the spaces in both buffers have a gray background regardless of the region, which is wrong.

gVim: 9.1.785 OS: Windows 10 Home.

lkintact commented 1 month ago

I observe similar behavior with the colorschemes quiet, retrobox, sorbet and zaibatsu.

romainl commented 1 month ago

Well, the interaction between highlight groups with cterm=reverse or gui=reverse and without is not always easy to manage to begin with. But some highlight groups like SpecialKey are treated by Vim a little bit differently than the others when they interact with CursorLine, for example, or all the diff* groups.

I don't think it is possible to fix this mess at the colorscheme level.