add vim helper to update buffer '#' when buffer '%' is closed