While you are running vim on a remote terminal (putty, ssh or similar), it may happen that when you are in insert mode on vim and you press arrow keys, vim will insert a letter in the set {A, B, C, D}
The problem is due to the terminal configuration. In the following few lines I’m going to show four ways to fix this annoying problem. The first two ways shall be applied inside vim, so you’ll not have to modify your terminal.
ANSI
Run vim and insert the following command:
:set term=ansi
CONS25
you can use the CONS25 configuration issueing the following command while running vim
:set term=cons25
Using the terminal
Both the above commands can be issued directly on the terminal windows:
$ export TERM=ansi
or
$ export TERM=cons25
then you can run vim without the arrow keys problem.
Gg1