I have tried tabpagebuflist(). It only seems to return the buffer
number that in in the current window, not all the buffers.

For example, if I have three files open but only one window displaying
one of the files, tabpagebuflist() only shows me the buffer number for
the current file, not the other two...

Here is the snippet of code to go throught the current tabpage and
display the buffers name on that tabpage. This doesn't seem to work
though...

--------8<--------

  let bufnrlist = tabpagebuflist(tabpagenr())

  exe "silent! sp [tabbuffers]"

  bufferNames = ''
  for bufnr in bufnrlist
    let bufferNames = buffeNames." ".bufnr." ".bufname(bufnr)."\n"
  endfor

  put = fileNames

--------8<--------




--- James Vega <[EMAIL PROTECTED]> wrote:

> On Fri, May 05, 2006 at 06:49:44AM -0700, Jeff Lanzarotta wrote:
> > Hello,
> > 
> > Is there a way to list all the buffers on a tab-page? Not the
> windows,
> > the actual buffers?
> 
> tabpagebuflist() may be what you're looking for, but that doesn't
> mean
> the buffers aren't also displayed in another window/tab page. 
> Buffer's
> aren't tied to any specific window or tab page.
> 
> James
> -- 
> GPG Key: 1024D/61326D40 2003-09-02 James Vega <[EMAIL PROTECTED]>
> 

Reply via email to