Raimondi / delimitMate

Vim plugin, provides insert mode auto-completion for quotes, parens, brackets, etc.
http://www.vim.org/scripts/script.php?script_id=2754
1.98k stars 117 forks source link

Arrows in insert mode insert characters #118

Closed sheerun closed 11 years ago

sheerun commented 11 years ago

For example right arrow inserts C, up arrow A etc.

jhenahan commented 11 years ago

Can we re-open this? I'm getting the same issue with the latest version. Only seems to crop up in terminal vim.

Raimondi commented 11 years ago

It works as expected for me. What terminal do you use? can you start with a bare vimrc and find the steps to reproduce the issue? let me know when you find them.

jhenahan commented 11 years ago

Happens with -u NONE on iTerm2 and Terminal.app. Seems delimitMate isn't actually the issue.

qstrahl commented 11 years ago

Check out :help 'timeout', :help 'ttimeout', :help 'timeoutlen', and :help 'ttimeoutlen'. Issue could be in one of those settings.

jhenahan commented 11 years ago

As it turned out, the issue was in a different mapping I had over <Esc>

inoremap <expr> <Esc>   pumvisible() ? "\<C-e>" : "\<Esc>"

All is good now