how to remove a buffer from gvim without closing the window

前端 未结 4 689
情歌与酒
情歌与酒 2021-02-05 05:54

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.

4条回答
  •  你的背包
    2021-02-05 06:35

    nmap d :bprevious:bdelete #
    

    Works as it should until one buffer is open in several windows. Good enough unless you want to use the bigger scripts out there.

提交回复
热议问题