On Sun, May 19, 2013 at 01:57:59AM -0700, John Little wrote:
> On Sunday, May 19, 2013 6:27:02 AM UTC+12, meh. wrote:
> > I'm writing a fairly complex statusline and using %!Func() ...
> > the context it's run in is the current
> > window ...
> >
> > Is this intended?
>
> Er, yes, from the help:
>
> the "%!" expression is evaluated in the context of the
> current window and buffer, while %{} items are evaluated in the
> context of the window that the statusline belongs to.
Oh, I didn't see that :(
Is there a reason for that or is it just because? It's really
annoying.
> > Because it makes doing what I want to do basically impossible.
>
> If you want Func() to run in that window's context, why not:
>
> set stl=%{Func()}
Because then spaces are interpreted as holes and filled with the
fillchars and I can't set colors or other things.
--
--
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.