3

I would like to add a color scheme rule in vim in which I could apply black over white in a text everytime it's selected in visual mode.

Any ideas ? Thank you.

Niloct
  • 9,491
  • 3
  • 44
  • 57

1 Answers1

4

Try this

hi Visual gui=NONE guibg=White guifg=Black

If that's what you were aiming for, add it to your colorscheme or your _vimrc file.

Rook
  • 60,248
  • 49
  • 165
  • 242
  • I'm using vim, not gvim, doesn't that only apply to gvim ? It didn't work. – Niloct Nov 17 '11 at 13:37
  • doing `cterm` prefix instead of `gui` worked for linux terminal, but in `putty` (ssh client for windows) when I select text it's white over black, not the opposite.... – Niloct Nov 17 '11 at 13:43
  • @Niloct - Yeah, sorry about that. A lot of people round here mean gvim when they say vim. // 2nd comment: Also check your VisualNOS highlighting. – Rook Nov 17 '11 at 15:05