sponsor Vim development Vim logo Vim Book Ad

BufClose.vim : Unload a buffer without closing the window it's in

 script karma  Rating 54/22, Downloaded by 2509  Comments, bugs, improvements  Vim wiki

created by
Christian J. Robinson
 
script type
utility
 
description
:BufClose without an argument will close the buffer in the current window, leaving you with a blank buffer.

:BufClose with an argument looks for a buffer by that name or number in a window and closes it, leaving that window with a blank buffer.
 
install details
Either :source it or put it in your plugin directory.
 

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
BufClose.vim 0.7 2022-08-22 9.0 Christian J. Robinson - Update to Vim 9 (no functionality added)
BufClose.vim 0.6 2003-02-13 6.0 Christian J. Robinson - Copyright, usage and configuration commentary added.
- g:BufClose_AltBuffer can be set to load something other than a blank buffer.
BufClose.vim 0.5 2003-02-09 6.0 Christian J. Robinson Initial upload
ip used for rating: 54.163.200.109

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.
   
Vim at Github