Improved automatic closing in VIM