7

I use black background and white text. The problem is, when I want to select some text in visual mode, the selected text is NOT visible at all, as both of them are white. I do not want to switch to light backgrounds. How can I change just the text selection color to something else, so that selected text is visible?

enter image description here

2
  • 1
    set background=dark? Should be set by your colorscheme.
    – FDinoff
    Aug 11, 2015 at 19:13
  • @FDinoff I think you are spot on. It was set to light. Can you put your comment as an answer. I'll accept it Aug 11, 2015 at 19:18

1 Answer 1

9

If the colorscheme is supposed to be a dark colorscheme. It should automatically have

set background=dark

inside of it. If it doesn't you can add it after the colorscheme is loaded. If background is set to dark vim will try to use colors that look good on a dark background.

Take a look at :help 'background'

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.