colorschemes icon indicating copy to clipboard operation
colorschemes copied to clipboard

Zaibatsu: cursor visibility issue

Open romainl opened this issue 1 year ago • 5 comments

(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

romainl avatar Dec 30 '23 19:12 romainl

it probably is more about gvim and less so tui vim:

normal

image

insert

image

habamax avatar Dec 30 '23 23:12 habamax

Although, in TUI it is a bit easier if cursor shape is not being changed between normal/insert:

image

but if terminal cursor is white -- it would be indeed quite confusing no matter cursor shape..

habamax avatar Dec 30 '23 23:12 habamax

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.

romainl avatar Dec 31 '23 08:12 romainl

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):

Image

And with this change (you can see the cursor):

Image

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 :)

razzius avatar Apr 07 '25 17:04 razzius

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:

Image

grr avatar Apr 19 '25 13:04 grr