Skip to content

Close a buffer without saving changes

krisleech edited this page Oct 27, 2011 · 1 revision

You do a ,d to close the current buffer or ,D to close all buffers and Vim warns No write since last change for buffer.

This means the buffer has changes which have not been saved.

,d is a mapping to :bd (buffer delete), so to force closing of the buffer we do :bd!.