vim solarized in visual mode loses syntax coloring in selection

1

When I do a selection in visual mode with vim and colorscheme solarized, the selection loeses its syntax highlighting. Instead, it is darkgray on light grey. However, when I switch to another colorscheme and select something, the syntax-color stays. How can I get the syntax colors in the selection (idealy with the solarized light colors)?

AME

Posted 2013-07-30T17:09:02.047

Reputation: 249

Answers

1

You'll need to edit your colorscheme. Search for the Visual directive and change the guifg and ctermfg value to NONE. You'll have to be very smart with the guibg/ctermbg value, though, because it will probably clash with a bunch of foreground colors.

romainl

Posted 2013-07-30T17:09:02.047

Reputation: 19 227