To exit vi or vim without saving changes, press Esc a few times to enter Command mode, then type :q! and hit Enter. To exit vi or vim and commit your changes, press the Escape key to ensure you're in ...
Also, I don't think setting "set -o vi" is technically supposed to enable the arrow keys since I think arrow keys and the bash controls that you are used to are defined by "set -o emacs". If you check ...