> I'm using that trick so I have the window_id, how do I use it to get
> buffer/window local variables?

https://github.com/ZyX-I/powerline/blob/e3ed3aba6c0fcd4eb51eeb5ea94931aea3bf4f10/powerline/bindings/vim/plugin/powerline.vim#L52-L75

After you have window number (winidx is window number subtracted by one in my 
case) you can use getwinvar/getbufvar (with the help of winbufnr())/getbuflines 
and so on.

Note that some things like virtcol() result have to be cached with cache 
associated with window_id: I know no way to get result of virtcol() of 
non-current window (well, you can try to combine strdisplaywidth and 
vim.current.window.cursor from python). Some things like cursor position in 
non-current windows (note: cursor position is (line, col), not (line, virtcol)) 
seem to be available only from python.

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