Wrong foreground color under cursor

I recently included a cursor in my .vimrc:

set cursorline
hi CursorLine ctermbg=54 cterm=NONE

However, it does not work very well with syntax highlighting. For instance,

enter image description here

As you can see on the cursor line, the color of the string literal is darker red than the cursor line, which is very difficult in my eyes, given my background layout. (Of course, I could change my background scheme to fix this, but I donโ€™t want to do this.) I would rather find to make the syntax highlighting scheme the same for the cursor line, since it is outside the cursor line, but I canโ€™t understand , how to do it. I donโ€™t even know why this is different, because as far as I know, I donโ€™t have any command that explicitly makes the syntax different within the line. How can i fix this?

+4
source share

Source: https://habr.com/ru/post/1568046/


All Articles