I want to remap :q
as :bd
because I really don't want the buffer to stay around in a long-running vim
session (where it can hold a .swp
file conflicting with another vim
session of the same file).
The only problem with that is :bd
does not quit vim
if it is the last buffer left. How can I achieve that?