Smart Buffer Delete
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
doc
plugin
README.md

README.md

sbd.vim

Close buffers smartly.

Because Vim's vanilla buffer closing/deletion becomes painful as soon as you start working with multiple buffers and windows.

sbd allows you to close buffers while leaving your window layout intact. As a bonus, deleting a special buffer (e.g. quickfix, help, directory, scratch, etc) will automatically close the window holding it. Making these special buffers easier to deal with.

Installation

If you don't have a preferred installation method, I recommend installing pathogen, and then run:

cd ~/.vim/bundle
git clone git://github.com/orftz/sbd.vim.git

Then, add the following to your vimrc, as-is or tweaked to your taste:

nnoremap <silent> <leader>bd :Sbd<CR>

Now, enjoy.

Once help tags have been generated, you can view the manual with :help sbd.vim.

License (ISC)

© 2012 Orphée Lafond-Lummis <orftz@orftz.com>

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.