Fix broken arrow key navigation in insert mode
From Vim Tips Wiki
Tip 1290 • Previous Tip • Next Tip
Created: July 26, 2006 Complexity: basic Author: Kim Schulz Minimum version: n/a Karma: 29/14 Imported from: Tip#1290
After I upgraded to Vim 7, I had problems when using the arrow keys for navigation in insert mode. The problem was the classic one where lines with A, B or D were inserted when I used the arrows.
The problem only showed up in Vim console mode and not in gvim so I thought that the problem might be in the terminal settings.
That assumption was correct and a single command fixed the problem:
:set term=builtin_ansi
Now the arrowkeys worked again. I guess that all of the builtin term types will work and even some others. Mine was set to xterm which did not work.
[edit] Comments
Categories: VimTip | Moving | Terminals
