Monday, November 1, 2010

RE: How to selectively close a buffer keeping opened another one?

caruso_g wrote:
> I am not able to find how to selectively close a buffer
> keeping opened all another ones.
> I mean, having several buffers opened, I understood I should
> keep them in one window>tab and switch between them as I
> need. But how can I close just one I don't need to keep
> opened in the registry?

If you mean "close a buffer", use :bd (buffer delete), or :bw
(buffer wipeout). Wipeout means to remove Vim's memory of the
buffer (e.g. marks are lost).

If you mean "close a window", use Ctrl-W c (control w then c).

You can also close a buffer while keeping its window open:
http://vim.wikia.com/wiki/VimTip165

John

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments:

Post a Comment