Add autoclose functionality to vim.