3 ms·
My First Vim Plugin: Bufkill
- johncoltrane 4y agoA few comments… - :help 'confirm'/:help :confirm basically provides most of this but it sadly relies on :help :browse, which is a GUI-only feature. - Unless you have hard requirements that you didn't disclose, micromanaging buffers is an anti-pattern. In your "Split" scenario, you could simply edit another buffer. There is no need to delete the current buffer at all: 3 buffers, 30 buffers, 300 buffers… Vim doesn't care so you shouldn't.