Tuesday, September 7, 2010

Re: delete buffer without closing a splitted window

Hi Gary!

On Di, 07 Sep 2010, Gary Johnson wrote:

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

I think, I have seen some plugins, that provide this feature. Ah, here
is one (randomly picked, I have never used it):
http://www.vim.org/scripts/script.php?script_id=1147

and here is a wiki link (haven't read it, google showed it up):
http://vim.wikia.com/wiki/Deleting_a_buffer_without_closing_the_window

regards,
Christian

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