arrows not working correctly on VI or VIM ...
Go to your home directory, ( in my case /Users/crivero/ )
Open your .profile and add
at the first line of the file. Save and quit
now you need to logout and login again ... or just type: