tags:

views:

56

answers:

2

Hello,

I know that using a command like:

:%bdelete

Using this command I can close all buffers, in all tabs, what I'd like to do is to close all buffers open in the current tab, is that possible?

Usage:

What I'd like to do, is to open ViM and load :VSTreeExplorer and then open related files in the same window switching between them using :next and :previous and then open other files a new tab (with VSTreeExplorer as well), when I need to clean one of the tabs, I would like to use whatever command that closes buffers in the current tab.

For now, what I do is use :%bd and then open the VSTreeExplorer and start over...

Thanks

+2  A: 

Buffers are global to the Vim instance, not confined to a specific tab page. A tab page is simply a way to organize windows and windows are simply a way to display a buffer. Zero or more windows (and therefore tab pages) can display the same buffer. Getting used to this concept should help your workflow in Vim.

The Vim wiki has a couple pages that give some more explanation and tips for using tab pages.

jamessan
I thought so!Thank you for your answer and I'll read the Tip to get used to the workflow...
eMxyzptlk
A: 

If you're done with a tab you can just use :tabclose.

too much php
Yea I know about :tabclose, except closing a tab won't close the buffers previously opened by this tab, my question was how to close a tab along with all the buffer that *this* tab had, anyway I know now that it can't be done..Thanks anyway
eMxyzptlk