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 :Bwipeout command #9

Closed juanibiapina closed 6 years ago

juanibiapina commented 6 years ago

This is equivalent to :bwipeout, in that it removes all references to that buffer from the jumplist.

Fixes #2

moll commented 6 years ago

Ooh, that's pretty good. Thank you! May I bother you for one small tweak? Could you move action to be the first argument, so it'll be in the order they're eventually applied? Thanks!

moll commented 6 years ago

Oh, and while you're there, use double quotes. 😇

juanibiapina commented 6 years ago

Done. I plan on adding some tests and documentation when I get some time, but different PR.

moll commented 6 years ago

Yay. Thank you! I'll merge that ASAP.

Do talk to me about testing before implementing any. I chose one approach years ago for Node.vim (https://github.com/moll/vim-node/), but I'm open to improved flows since then.

juanibiapina commented 6 years ago

vimrunner is the same I'm using on another plugin: https://github.com/juanibiapina/vim-lighttree/blob/master/spec/lighttree/LightTree_spec.rb

juanibiapina commented 6 years ago

@moll any updates ?

juanibiapina commented 6 years ago

I pushed I little bit of documentation.

moll commented 6 years ago

Thank you, Juan! I've merged it all in and added more details to the README to highlight the difference for people.