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,

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?
source
share