Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add commands for deleting all buffers and deleting all but one buffer #4

Closed
wants to merge 3 commits into from

Conversation

qiushihe
Copy link

Hi,

I added two commands:

  • Bdeleteall which deletes all buffers; and ...
  • Bdeleteexcept which deletes all but one buffer (defaults to the current buffer)

I've been using this for a while now and it seems fairly stable. So please consider merging this :D

Thanks!

@alexanderjeurissen
Copy link

@qiushihe @moll I don't think there is use for the Bdeleteall command seeing as that can already be achieved using :bufdo :Bdelete (as specified in the readme) and deleting all buffers that are currently hidden can be achieved with (https://github.com/arithran/vim-delete-hidden-buffers)

@moll
Copy link
Owner

moll commented Mar 3, 2018

Thanks, @qiushihe, for sharing your code! I'm not yet sure if this should belong in Bbye.vim, but I've mentioned your script in the README to at least people with similar wishes can still copy it over to their config files. :)

@moll moll closed this Mar 3, 2018
@croobat
Copy link

croobat commented Jul 4, 2022

Hey, sorry I don't know if I can PR a closed PR but at least can leave a comment for future reference, for the function to work you gotta add "bdelete" to the bdelete function arguments called around line 21, as in:

call s:bdelete("bdelete", a:bang, buffer_nr)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants