Hi,

Brandon Coleman wrote:
> I would like to read the contents of variables for buffers that are
> not in scope.  How would I go about doing  this? Is there an example
> of a way to loop through all of the buffers? is there a command
> lookupWinVar(1,testVar)?

I don't know if there is a function which gives you all existing buffers,
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().

Regards,
Jürgen

-- 
Sometimes I think the surest sign that intelligent life exists elsewhere
in the universe is that none of it has tried to contact us.     (Calvin)

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

Reply via email to