Tuesday, October 2, 2012

Re: Reading variables of a buffer/window that is not in scope

On Tuesday, October 2, 2012 3:34:58 AM UTC-5, Jürgen Krämer wrote:
>
> I don't know if there is a function which gives you all existing buffers,
>

The best I know of is tabpagebuflist()

> but you can loop through buffer numbers from 1 to bufnr('$') and check if
>
> the buffer really exists with bufexists().
>
>
>
> Buffer-local variables can be read with getbufvar().
>
>

See also getwinvar(), gettabvar(), gettabwinvar(), and the "set" function for all of these.

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

No comments: