> ... but what I proposed was to try something simpler, see if it worked as it 
> was
>  supposed ...

A minimal example you mean; thank you for pointing me in this way.
Well, after some playing it seems the minimal example is:

  :set statusline=%(%#ErrorMsg#xxx%*%)abcde

that is, grouping is used to remove some text colored with %#ErrorMsg#.

If the code between %#ErrorMsg# and %* is evaluated to something else
than empty string ('xxx' in our example), it is properly removed, but
the following text contains strlen('xxx') colored positions. That
means, 'abc' gets colored.

  http://tinyurl.com/vim-statusline-minimal-example

Hope that's its more clear now,

Peter

-- 
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

Raspunde prin e-mail lui