Skip to main content
added 96 characters in body
Source Link
Michael Mrozek
  • 95.7k
  • 40
  • 245
  • 236

When I do

inoremap <Esc> <Esc>`^

in vim, the next time I switch to insert mode (after using Esc) the arrow keys fail to move the cursor (they insert letters instead). Why does that happen?


Edit: It is possible to remap Esc and still retain working arrow keys?

When I do

inoremap <Esc> <Esc>`^

in vim, the next time I switch to insert mode (after using Esc) the arrow keys fail to move the cursor (they insert letters instead). Why does that happen?

When I do

inoremap <Esc> <Esc>`^

in vim, the next time I switch to insert mode (after using Esc) the arrow keys fail to move the cursor (they insert letters instead). Why does that happen?


Edit: It is possible to remap Esc and still retain working arrow keys?

added 20 characters in body; edited tags; edited title
Source Link
Michael Mrozek
  • 95.7k
  • 40
  • 245
  • 236

Why does mapping <esc> causescause arrow keys to fail in vim?

When I do

inoremap <Esc> <Esc>`^

in vim, the next time I switch to insert mode (after using <esc>Esc) the arrow keys fail to move the cursor but(they insert letters instead). Why is this sodoes that happen?

Why mapping <esc> causes arrow keys to fail in vim?

When I do

inoremap <Esc> <Esc>`^

in vim, the next time I switch to insert mode (after using <esc>) the arrow keys fail to move the cursor but insert letters. Why is this so?

Why does mapping <esc> cause arrow keys to fail in vim?

When I do

inoremap <Esc> <Esc>`^

in vim, the next time I switch to insert mode (after using Esc) the arrow keys fail to move the cursor (they insert letters instead). Why does that happen?

Source Link
Siggy
  • 61
  • 1

Why mapping <esc> causes arrow keys to fail in vim?

When I do

inoremap <Esc> <Esc>`^

in vim, the next time I switch to insert mode (after using <esc>) the arrow keys fail to move the cursor but insert letters. Why is this so?