On 07/10/13 12:24, Marius Gedminas wrote:
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

Or else, modify your "desert" colorscheme under a new name (adding the :hilight line shown, and changing the colors_name variable setting to the new name), save it in ~/.vim/colors/ (for Unix), ~/vimfiles/colors/ (for Windows) or $VIM/vimfiles/colors/ (for either) (creating any not-yet-existing directories in the process). Then use the following lines in the order shown:

        syntax on
        filetype plugin on              " or filetype plugin indent on
        colorscheme desert-new          " or whatever name you gave it

Best regards,
Tony.
--
The more I want to get something done, the less I call it work.
                -- Richard Bach, "Illusions"

--
--
You received this message from the "vim_dev" 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

--- You received this message because you are subscribed to the Google Groups "vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Raspunde prin e-mail lui