Pádraig Brady wrote:
Georg Dahn wrote:
I use dark backgrounds (and therefore a light coloured foreground
colour).
As a consequence the new MatchParen highlight that is enabled
by default in vim 7 is unreadable/annoying.
I need to put the following in my ~/.vimrc to fix it:

highlight MatchParen ctermbg=blue guibg=blue

Shouldn't the above be done automatically when one does set bg=dark ?
This depends on the color scheme you are using. If the maintainer
does not update his color scheme, a default value is chosen.

Sure. I use the default colour scheme though.
I would have expected it to be updated for this new feature.

thanks,
Pádraig.


The "default" colorscheme mentions no groups, it merely orders Vim to reset all groups whatsoever to their built-in defaults, so there is no need to update it. It's when you want to set _different_ colors than the built-in defaults that a ":hi" line is needed in the colorscheme. It is even possible to leave different groups at their default values depending on whether you run in the GUI or in a console: for instance:

   hi MatchParen ctermbg=blue
   hi Search gui=NONE guibg=Yellow guifg=Black

leaves MatchParen at its default in the GUI, and Search at its default in console Vim.


Best regards,
Tony.

Reply via email to