On Wed, Oct 02, 2013 at 05:54:21PM +0200, Florian Bruhin wrote:
> I discovered something that might be a bug, using vim 7.4.

It isn't:

> After trying to simplify my vimrc first I was able to reproduce it
> with this .vimrc and no .vim folder:
> 
> ---
> set nocompatible
> colorscheme desert
> set laststatus=2
> highlight User1 ctermbg=Red ctermfg=Black
> set statusline=%1*test
> ---
> 
> When I start vim, the statusline is red, as it should be. However, as
> soon as I do :sy on, the statusline turns black.

:syntax on resets highlighting to default colors.  You may want to use
:syntax enable instead.

Read :help :syn-on.

Regards,
Marius Gedminas
-- 
As far as we know, our computer has never had an undetected error.
                -- Weisert

Attachment: signature.asc
Description: Digital signature

Raspunde prin e-mail lui