Use delimitMate instead of vim-autoclose, the latter being buggy.