On 22/04/11 18:23, Alan Warren wrote:
Hello,
I have a problem with the "ErrorMsg" highlight group being ignored in my
custom colorscheme. I can reproduce this
by forcing a typo in my vimrc and reloading my vimrc. Lines starting
with "Error:" or "E475" etc. are incorrectly highlighted.
Gvim will show a red background with white text, while vim uses colors
from my ~/.Xdefaults. Vim actually chooses two
very light colors, which render the error message completely illegible.
If I change to a colorscheme which sets ErrorMsg successfully, then I am
able to change the color values by hacking the theme.
The zenburn theme is a good example of a colorscheme which successfully
sets ErrorMsg. However, I cannot for the life
of me figure out what it's doing different then my own theme.
I've pasted my theme here, if you would be so kind to inspect it.
http://pastebin.com/LRLVN86r
Thanks for your time,
Alan
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
I see two possible problems with these two lines:
1. You shouldn't set cterm=none after setting ctermfg and ctermbg, it
might reset your colours to those of the Normal group (the colours which
were set in the terminal when Vim started up). If you want no bold etc.
you may set cterm=NONE _before_ setting ctermbg and ctermfg
2. You are setting ctermfg=128 ctermbg=238 without having checked that
't_Co' is higher than that. If you find yourself in a 16-color terminal
or even an 88-color one, anything may happen.
So, I suggest the following experiment:
1. Start Console Vim with this color scheme in the problematic terminal.
2. Type the following commands, and tell us what the answers were:
:verbose set term? t_Co?
:verbose hi Error
:verbose hi ErrorMsg
Best regards,
Tony.
--
hundred-and-one symptoms of being an internet addict:
70. ISDN lines are added to your house on a hourly basis
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php