:set nocompatible to get the arrow keys to work in the Ubuntu Vi and likely others too.
I actually set this up in my
~/.exrc too, since I’m too lazy to type
:set nocompatible every time. I should probably post my
.exrc here sometime too or somewhere on my web site. I think I have it under version control.