>simple question, any way to make it so vim doesn't close a window when
>you do :bd on its buffer?
:help :bd specifically states that it will close all windows displaying
the buffer and it doesn't specify how to change that behaviour. So I
assume that there is no option to tell :bd to keep the window open.
The shortest way can think of would be:
That's still too long to type, so you will probably want to map it.
> On Thu, Sep 15, 2005 at 10:18:51AM +0100, Dominic Evans wrote:
> > hi,
> > simple question, any way to make it so vim doesn't close a window when
> > you do :bd on its buffer?
> The following command and mapping will do that:
> " Delete a buffer but keep layout
> command! Kwbd enew|bw #
> nmap <C-w>! :Kwbd<CR>
> GPG Key: 1024D/61326D40 2003-09-02 James Vega <[hidden email]>