💻 Software
How to close buffer without closing the window?
Fresh7 days ago
Mar 15, 202624159 viewsConfidence Score0%
0%
Problem
I usually open a few windows and keep some buffers open. Since my MO in buffer exploring is to use quick shortcuts to and , I want to close unneeded buffers from distracting my buffer surfing. But the pain is, issuing and results in closing the window as well, in case I have multiple ones open. How…
Error Output
:command! BW :bn|:bd#
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: How to close buffer without closing the window?
Low Risk
I messed with this a bit and finally came up with: Here's the copy/paste version for key mapping: Or a command for your .vimrc (call with :Bd): command Bd bp | sp | bn | bd I've tested it a fair bit and it works consistently in various conditions. W…
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix