The currently selected colorscheme determines what colours are used for
various different areas of text (highlighting groups). To see which
colorscheme you are using, type
:echo g:colors_name
To override your colorscheme, it would probably work best to copy your
preferred <colorscheme>.vim file to your
~/.vim/colors/MyColorScheme.vim, change that file according to your
preferences and then source this file in your g/vimrc, using the command
colorscheme MyColorScheme
The selection colour is determined by the "Visual" highlighting group.
To change this once-off to a white foreground on a black background, use
the following command:
:highlight visual guifg=#ffffff guibg=#000000
For more info, see
:h coloring
:h highlight-term
:h highlight
--
[ Albie Janse van Rensburg ~ http://morph.telspace.co.za ]
A lie is an abomination unto the Lord and a very present help in time of
trouble.
-- Adlai Stevenson
I wrote a plugin that wraps this method when someone on #vim asked for
this very thing, once upon a time. It's never been terribly useful to
me, but I can see how someone might want it, once in a while...
http://www.vim.org/scripts/script.php?script_id=2028
> A final way would be to define syntax highlighting rules, but I don't
> think that's what you want. These are usually associated with file
> type.
>
> Note that, even using txtfmt, the colors will only show up in Vim, or
> if you use the 2html feature. I believe this is discussed in the
> txtfmt documentation (though I don't use it at all, so I could be
> wrong).
~Matt