I’m trying to get using to working in VIM with split windows.
So…. I split my VIM into two windows using ctrl V S, and I switch between windows using ctrl W W.
I’m using to typing :bd to delete the current buffer. Unfortunately, that has a side effect of closing the current window.
Is there a way to delete the buffer without closing current window ?
You can achieve this with a custom command, often named
:Kwbd(keep window, buffer delete). There is an entire discussion and several alternatives on the Vim Tips Wiki.See also this plugin on vim.org.