Ubuntu vi or vim arrow key problem

Last Modified: Fri, 05 Mar 2010 16:58:51 +0000 ; Created: Fri, 05 Mar 2010 16:58:51 +0000

After installing Ubuntu 9.10 64-bit I had problems with my arrow keys in VI. I thought at first the problem was my remote ssh session over putty, but then a terminal on my local console did the same thing.

When in text insert/append mode pressing the arrow keys would insert A B C D into the document instead of moving the cursor.

The fix was found at http://ubuntuforums.org/archive/index.php/t-286963.html

In short vi-tiny was installed instead of the complete vim. Just install vim and it will be fixed.