-
Notifications
You must be signed in to change notification settings - Fork 393
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
Change color of block caret. #1945
Comments
+1. 😞 |
The default caret opacity is 65% and so the color you see is roughly two thirds that color and one third whatever the background color of the character under the cursor is. To get exactly your specified caret color, you can set the opacity to 100% in The benefit to having the opacity lower than 100% is that the caret color is different from but related to whatever the background color is, which is presumably less jarring. For example, you can try setting a breakpoint (which on my system makes the text background a sort of brick red) and then positioning the caret on that line. Unfortunately, it is currently impossible to change the color of the text under the cursor, so it quite difficult to get good contrast both within the caret and between the caret and the document. The traditional solution to this problem is the so-called "reverse video" where the foreground and background are swapped. The solution in gvim is that it allows you to set both the foreground and background of the block cursor as can be seen here (with If the cursor foreground color were white in this image, the caret would be extremely hard to read, which is the current situation with VsVim: |
@ricksladkey Nice, thanks for explanation. You said that |
@kkorus I believe it is a limitation in VsVim. Yet, it is an area I've wanted to look into, so I'll take a look at how hard it would be. |
This issue would be resolved if issue #749 were implemented and the then default opacity was set to 100%. |
@ricksladkey Awesome news! Waiting for release. |
Hello,
Change color of "block caret" is not the same that I have set to. For example I want my color of block caret to be 255 ; 204 ; 0 but in editor ends up being 179 ; 146 ; 13.
The color I have setup:
![image](https://cloud.githubusercontent.com/assets/2054009/25066147/00a5e6d4-2216-11e7-8b72-6a7fe54cb813.png)
The color in editor (little bit darker):
![image](https://cloud.githubusercontent.com/assets/2054009/25066148/16f028b4-2216-11e7-96bc-8e3c1aa55131.png)
Does anyone have the same issue? Does anyone know how to fix it?
edit: I think it's because caret is somehow transparent ¯_(ツ)_/¯
Can this transparency be disabled?
The text was updated successfully, but these errors were encountered: