-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
When hlsearch is on, the cursor inverts the search color and not visible #2
Comments
+1 |
That's what I came up with:
So you'll get orange cursor when highlight search is on and inverted one otherwise. This should be pretty self-explainable, but if you still have any question feel free to ask. Yep, I feel shameful it took me so much time just to provide this simple solution. Anyway I'll add these functions to the updated gruvbox theme file and try not to forget documenting it. |
Functions was added with the latest commit f2efaec. You could override cursor color (default: orange) at hls-mode with g:gruvbox_hls_cursor option. E.g.: Remember that you still need to map these functions to search commands. |
Is there a solution for Additionally, A workaround I have found is to set both cursorline and cursorcolumn (resulting in a crosshair, |
@blueyed I'll check gnome-term. Most terms don't allow you to recolor cursor, so I've never experienced this issue before |
@morhetz yes, I just thought there might be a way to also have some kind of inversion when using "substitute". What I mean is this: you cannot see which instance is highlighted: I think the main issue is solved, and I justed wanted to point out / ask about this corner case. |
@blueyed |
I have a little issue when searching. Gruvbox inverts the cursor color so that when the search is highlighted it's inverted once again. It's hard to spot the currently highlighted result if there are many present on the screen. I wonder what would be the best solution in this case. I really like inverted cursor, are there probably way to make it solid color when searching only?
Thanks.
The text was updated successfully, but these errors were encountered: