Zaibatsu: cursor visibility issue
(from an email received on my personal address, user says they can't use GitHub)
Hi,
I use zaibatsu in vim as my colortheme, i have 2 problems:
First:
i find insert-mode the match bucket is white background is confilict with cursor color,
so i can not notice where is cursor position.
example:
(word|)
when cursor position at |,the () bucket will highlight white background, and can not notice where is cusror.
Another question is: the status bar background is white, i think it not look good for an dark color theme. may be https://helix-editor.com/ status bar is good look.
please fix zaibatsu, thanks ;p
it probably is more about gvim and less so tui vim:
normal
insert
Although, in TUI it is a bit easier if cursor shape is not being changed between normal/insert:
but if terminal cursor is white -- it would be indeed quite confusing no matter cursor shape..
MatchParen is reverse while Cursor has a yellow background so there will indeed be a problem if the bracket under the cursor is yellow.
I can fix it by giving MatchParen explicit color attributes.
Following @romainl's lead, here's how I set MatchParen colors in my vimrc. I just hardcoded it to be white (the same color as the cursor on whitespace):
colorscheme zaibatsu
autocmd ColorScheme zaibatsu highlight MatchParen ctermfg=white ctermbg=NONE cterm=NONE
syntax on
Here's how it looks without this config (buggy invisible cursor):
And with this change (you can see the cursor):
In both cases, the cursor is on the inner open parenthesis in the body of the function. The screenshots are from Vim 9.1 on Ubuntu 24.10 using Gnome Terminal on a Raspberry Pi 5.
It would be great to fix the root issue so workarounds like this wouldn't be necessary :)
It's even worse if you use the matchup plugin. It extends the matchparen highlighting to language-specific constructs. In this example the yellow cursor is who-knowns-where in the highlighted yellow attribute: