I do most of my text editing on *nix in vim. Sometimes you don’t have access to vim so you have to use vi. No big deal, but for some installs map the arrow keys to letters on the keyboard. Hitting up tends to type a capitol A. It’s usually easy to fix though.
Start by moving to your home directory
cd ~
Then create a file called .vimrc and put the text “set nocompatible” in it.
echo "set nocompatible" > .vimrc
Open vi again and it should be fixed.
-Sean