Skip to content

Zaibatsu: cursor visibility issue #251

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

Open
romainl opened this issue Dec 30, 2023 · 5 comments
Open

Zaibatsu: cursor visibility issue #251

romainl opened this issue Dec 30, 2023 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@romainl
Copy link
Collaborator

romainl commented Dec 30, 2023

(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 romainl added the bug Something isn't working label Dec 30, 2023
@romainl romainl self-assigned this Dec 30, 2023
@habamax
Copy link
Collaborator

habamax commented Dec 30, 2023

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

normal

image

insert

image

@habamax
Copy link
Collaborator

habamax commented Dec 30, 2023

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..

@romainl
Copy link
Collaborator Author

romainl commented Dec 31, 2023

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.

@razzius
Copy link

razzius commented Apr 7, 2025

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

@grr
Copy link

grr commented Apr 19, 2025

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants