moll / vim-bbye

Delete buffers and close files in Vim without closing your windows or messing up your layout. Like Bclose.vim, but rewritten and well maintained.
http://www.vim.org/scripts/script.php?script_id=4664
Other
648 stars 32 forks source link

Add ability to delete multiple buffers #17

Open Otard95 opened 4 years ago

Otard95 commented 4 years ago

Initial tests seems promising.

The call signature is the same for the original function, as to not to add any breaking changes. The new function simply takes the same parameters and passes them along, except it splits the last containing buffer name(s), and calls the original for each.

vds2212 commented 1 year ago

I have created a Pull request https://github.com/moll/vim-bbye/pull/21 that support:

Multiple arguments: :Bdelete 2 4 5
Ranges: :%Bdelete, :2,4Bdelete or :2Bdelete