how to remove a buffer from gvim without closing the window
问题 I usually type :bd to remove the buffer, however, it results in undesirable side-effect of the window being closed which I do NOT want. 回答1: I usually use :bn (next buffer) followed by :bd# (delete alternate buffer). You could create a mapping or command for this, of course. 回答2: nmap <leader>d :bprevious<CR>:bdelete #<CR> Works as it should until one buffer is open in several windows. Good enough unless you want to use the bigger scripts out there. 回答3: I'm not sure if icecrime's bufclose