David Howland wrote:
A.J.Mechelynck wrote:
You mean if the buffer is displayed it would do nothing?
No. Delete the buffer, but keep the window open.
I often find myself in this situation:
- Split window, two buffers open.
- Open a new file, look at it, then want to close it.
- i would expect to ":bd" to delete the current buffer, leaving the
remaining two open, one for each window. But for some reason, it also
removes my split. Why should deleting a buffer change how I have my
splits set up?
Because a window must always have a buffer to display. See
"Deleting a buffer without changing your window layout"
http://vim.sourceforge.net/tips/tip.php?tip_id=622
Regards,
Chip Campbell