[vim] Add buffer close-n-confirm function