On Apr 25, 9:04 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> > > How can I find out (programmatically, of course)
>
> > > - how many windows do I have open in a split window
> > > - how many tabs do I have open in each of the split
> > >   windows?
>
> > I'm not quite sure what you're asking (tabs contain windows, not the
> > other way round), but `:h tabpagebuflist()` should get you started.
>
> Well, if you start 'vim a' and follow by ':vsp file...'
> and/or 'sp file...', you'll see you original window
> split in several smaller ones. "How many of these
> smaller ones I have?" is my question.
>
> When in one of those split windows one does 'tabe files...'
> several times one sees several 'tabs' on the top of that split window. "How
> many of these 'tabs' are there?"
> You may answered this one though...
>
> Thanks,
>
> ---Zdenek

You're missing a very basic concept.

Vim contains multiple tabs. When you use :tabe, it opens a new tabe.

Each tab contains multiple windows. When you use :split, it opens a
new window WITHIN the current tab.

You can observe this by going back and forth between windows, and
noticing that the tab list remains the same. If you go back and forth
between tabs, however, the displayed windows will change.

In addition, Vim opens files in "buffers". Each buffer can be opened
in any number of windows, each of which could be opened in any one of
possibly many tabs.
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui