When a buffer gets deleted (the \"bd[elete]\" command), it not only deletes the buffer but also removes the split window that buffer was in.
Is there a way to delete
I used to use :
:bp<bar>sp<bar>bn<bar>bd<CR>
But I found certain occasions where it closed my window. On top of that the next or previous buffer might not be what you want to be displayed in the split.
Now I do this :
nnoremap <leader>d :bd#<CR>
I really like bufkill.vim there is a github repo as well