inoremap <esc> bug?

http://vim.wikia.com/wiki/Avoid_the_escape_key

I tried the "Improving the Esc key" on that page.

inoremap <Esc> <Esc>`^

In Mac terminal and Linux urxvt it has side effects for the arrow
keys. The arrow keys up, down, right, left produce A, B, C, D
respectively.

Hmmm, vim keycodes found using ^V:
up     ^[OA
down   ^[OB
right  ^[OC
left   ^[OD

Since ^[ is the same as <esc>
Is the ^[ doing <esc>`^ as though it were typed?

It seems up arrow is now doing:
^[  Exit insert mode
`^  To position where the cursor was the last time when Insert mode
was stopped
O   Begin a new line above the cursor and insert text
A   Type the letter "A"

Is this a bug? Seems inoremap is not working here.

-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Reply via email to