Saturday, November 10, 2012

Re: close current buffer window / file

On 13:42 Sat 10 Nov , sc wrote:
> On Sat, Nov 10, 2012 at 03:38:45PM +0100, Michael Neumann wrote:
> > Hi,
> > I have have more Buffers open, and I have a split window with
> > TagList and neerdTREE.
> > How I can close the current buffer? ( Not change the Buffer with bu )
> > When I try, close or q, then I closing the window, but I will only
> > close the File and look on the other buffer.
> > close or q, destroy my split window.
>
> I have a simple command defined in my .vimrc for this purpose:
>
> command! BD b # | bd #
>
> should do what you want
>
> sc
>
> --
> 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

There is also the BufClose plugin:
http://www.vim.org/scripts/script.php?script_id=559
by Christian Robinson.

Best,
Marcin

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