For those who edit with vi, you can use vi rather than emacs commands for editing and history:
• for programs using readline, put in $HOME/.inputrc
set editing-mode vi
• for programs using libedit / editline, put in $HOME/.editrc bind -v