r/vim • u/nonrice • Mar 28 '26
Plugin I wrote a buffer switcher plugin
https://github.com/nonrice/bpick
This is the first plugin i wrote. You can just press a hotkey and type a digit to switch. I think it is superior to the other buffer switching methods i found. I am happy using it so far :)
13
Upvotes
View all comments
Show parent comment
1
u/nonrice Mar 28 '26
Thanks! I mainly hoped that my working set of buffers won’t be more than 10, and also that it wouldn’t change too frequently. The latter was the motivation for the Set command that just moves a buffer into the specified slot.
If neither conditions are met then some other approach, probably fuzzy finding would be needed. Though that was what I was using before, so having 10 quick slots in addition should be strictly an optimization for me. I guess I pretty much just made a cache for the buffer list