On May 21, 12:48 am, "John Beckett" <[email protected]> wrote:
> NickC wrote:
> > I've put up with this for years.  Whenever I leave Insert
> > mode by typing the Esc key, the cursor backtracks one char.
>
> 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:
up     ^[OA
down   ^[OB
right  ^[OC
left   ^[OD

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

It seems up arrow is now doing:
^[  exit insert mode
O   Begin a new line above the cursor and insert text
A   type the letter "A"

Why?
.

-- 
You received this message from the "vim_use" 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