On 3/1/07, Alexander Farber <[EMAIL PROTECTED]> wrote:
Hello,

On 3/1/07, Yakov Lerner <[EMAIL PROTECTED]> wrote:
> On 3/1/07, Alexander Farber <[EMAIL PROTECTED]> wrote:
> > When I enter ":hi Comment    guifg=white  guibg=black"
> > manually or ":so ~/.vimrc" then it does work.
>
> It's not ignored. It's overwritten later.
> 1. Try 'syn off' 'syntax on' after that. Does it affect you colors ?

it does affect my colors: "syn off" turns everything black/white
and "syn on" brings the colors back (but wrong colors -
my Comments are still not inverted)

> 2. Do you have 'color ...' c(colorscheme setting) in your vimrc ?

No, here is my complete ~/.vimrc:

Ok, you can try the following:
For every 'hi ...' command in your ~/.vimrc, have two lines:
       hi Comment ctermfg=Red ctermbg=Green
       au ColorScheme * hi Comment ctermfg=Red ctermbg=Green
in your vimrc. Your settings will not be overwritten. However.

This method is not recommended: if you try to change colorscheme,
the colorscheme settings will be overwritten by your additions.
But you can try.

Yakov

Reply via email to