use auto-pairs instead of autoclose
unmap <esc> <cr> <up> and <down> in normal mode