History Report a problem
Article Edit this page Discussion

Fix broken arrow key navigation in insert mode

From Vim Tips Wiki

Jump to: navigation, search
 

Tip 1290Previous TipNext 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


Rate this article:

Share this article:

Hubs Highlights International Sites Wikia messages
Entertainment
Gaming
Cartoons & Comics
Science Fiction
Hobbies
Sports
See all...
Grand Theft Auto
Terminator Wiki
Legend of Zelda Wiki
Flash Gordon
Everquest II Wiki
Yo-Yo Wiki
German
Spanish
Chinese
Japanese
More...
Wikia is hiring for several open positions
Send this article to a friend
"Fix broken arrow key navigation in insert mode"
 
 
Hi!

I thought you'd like this page from Wikia!

http://vim.wikia.com

Come check it out!
Send confirmation