> -----Original Message-----
> From: [email protected] [mailto:[EMAIL PROTECTED] On
> Behalf Of James Vega
> Sent: 25 April 2008 16:23
> To: [email protected]
> Subject: Re: How many windows? tabs?
> 
> On Fri, Apr 25, 2008 at 04:04:02PM +0200, [EMAIL PROTECTED] wrote:
> > 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.
> 
> :echo winnr('$')
> 
> > 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...
> 
> :echo tabpagenr('$')

Excellent, exactly what I was looking for, thanks!

> -----Original Message-----
> From: [email protected] [mailto:[EMAIL PROTECTED] On
> Behalf Of Thomas Geulig
> Sent: 25 April 2008 16:20
> To: [email protected]
> Subject: Re: How many windows? tabs?
>       
> 
> > 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.
> 
> How about this:
> 
> :let x=0
> :windo let x=x+1
> :echo x

Works too, thanks, the solution above seems more "elegant"
(whatever that means).


> -----Original Message-----
> From: [email protected] [mailto:[EMAIL PROTECTED] On
> Behalf Of fritzophrenic
...
> 
> You're missing a very basic concept.
> 

No, not really.

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

I know all of this, my question was much simpler and I the
answers above are what I needed.

Thanks to all,

---Zdenek


--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui