Fix for when you get ABCD when using arrow keys in vi.
For ↓ You get B
For ↑ You get A
For ← You get D
For → You get C
Create a file called .exrc in your home directory with the following content "set nocompatible" without quotes. In other words.
echo "set nocompatible" > ~/.exrc