Adjust buffer closing in vim.