Kim Schulz wrote:
On Sun, 06 Aug 2006 17:19:17 +0200
"A.J.Mechelynck" <[EMAIL PROTECTED]> wrote:

Kim Schulz wrote:
hi is there an equivalent to bufexists() and bufnr() but for tabs in
vim 7?
There is no need for an "equivalent". bufexists() and bufnr() will
show that a buffer exists, and give its number, even if it is not
currently loaded in a window; indeed even if it is "unlisted" i.e.,
listed by ":ls!" (with bang) but not by ":ls" (without bang). After
":bdelete" (but not after ":bwipeout") bufexists() is still TRUE for
the just "deleted" buffer.
[snip]
Ok so basically what I need it for is to get the count of tabs.

the total number of tabs is tabpagenr('$'). With that information and the function I gave you, you should be able to determine easily in which tab(s) a buffer is open in a window.


Best regards,
Tony.

Reply via email to