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.

> 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()}

Regards, John Little

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