Tuesday, September 7, 2010

Re: delete buffer without closing a splitted window

On 2010-09-07, Reuven Sayag wrote:
> Hi,
> is there a way to delete a buffer (:bd) while in vertical split (:vsp)
> in a way that will keep the split as it is?
> I have many opened buffers in the background but vim just leaves one
> window after the split.

You can't just close (or delete) a buffer yet have have the window
hang around because Vim no longer has anything to display in that
window. A Vim window must contain some buffer. You could note the
identity of the buffer (see ":help buffer-functions"), then replace
the buffer with an empty buffer using ":enew", then delete the
original buffer.

HTH,
Gary

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