"The behaviour details: " " * The window layout must be kept in all circumstances. " * If there is an alternate buffer must be showing that. " * If there is not alternate buffer then must be showing the preious buffer. " * If there is no alternate nor previous buffer (it is the only buffer) must show an empty buffer. if exists('loaded_kwbd') finish endif let loaded_kwbd = 1 if !hasmapto('Kwbd') map bd Kwbd endif noremap