Why are the arrow keys not working in vi?
Fix Not Working Arrow Keys in Vi/Vim
To fix not working arrows in the insert mode permanently, add set nocompatible command to vi / vim configuration file in your $HOME directory.
Fix Not Working Arrow Keys in Vi/Vim
To fix not working arrows in the insert mode permanently, add set nocompatible command to vi / vim configuration file in your $HOME directory.