sponsor Vim development Vim logo Vim Book Ad

BufOnly.vim : Delete all the buffers except the current/named buffer

 script karma  Rating 139/72, Downloaded by 7108  Comments, bugs, improvements  Vim wiki

created by
Christian J. Robinson
 
script type
utility
 
description
:BufOnly without an argument will unload all buffers but the current one.

:BufOnly with an argument will close all buffers but the supplied buffer name/number.
 
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
BufOnly.vim 0.2 2022-08-22 9.0 Christian J. Robinson - Update for Vim 9 (no features added)
BufOnly.vim 0.1 2004-08-26 6.0 Christian J. Robinson Initial upload
ip used for rating: 3.144.84.155

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