sponsor Vim development Vim logo Vim Book Ad

kwbdi.vim : Keep Window on Buffer Delete - Improved

 script karma  Rating 14/10, Downloaded by 656    Comments, bugs, improvements  Vim wiki

created by
Ben Booth
 
script type
utility
 
description
This is an improved version of kwbd.vim. It allows you to delete a buffer without closing the window. It meets the following criteria:


    * The window layout must be kept in all circumstances.
    * If there is an alternate buffer must be showing that.
    * If there is not alternate buffer then must be showing the preious buffer.
    * If there is no alternate nor previous buffer (it is the only buffer) must show an empty buffer.

If there are two windows with the same buffer open, both windows will remain open, and the buffer will be deleted

To delete a buffer while keeping the window open, just type \bd

Thanks to the authors of kwbd.vim and minibufexpl.vim!
 
install details
Copy the script into ~/.vim/plugin
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
kwbdi.vim 1.1 2007-12-18 6.0 Ben Booth fixed some bugs
kwbdi.vim 1.0 2007-12-18 6.0 Ben Booth Initial upload
ip used for rating: 54.234.2.94

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
SourceForge.net Logo