In my .vimrc
, I specify that when I do a search, I want the terms to be highlighted - background color yellow, foreground black. Here's how I specify that:
" Settings for terminal version of vim
:highlight Search ctermbg=yellow ctermfg=black
" Settings for gvim (linux) / macvim
:highlight Search guibg=yellow guifg=black
I'm also using a nice color scheme (railscasts) in Macvim. It seems to override my highlighting colors, however, to something barely visible. If I reload my .vimrc
, all is well again.
Is there a way to cause my .vimrc
settings to win in any conflicts with the color scheme? If not, would it be better to modify the color scheme itself? Write a little script that causes vim to automatically reload the .vimrc
after the color scheme loads? What's the best approach here?