Yes, those are the right commands.
Yes, I was ranting.
I've written more than a few shell scripts in vi, and before bash, needed to change rc files to get command line recall with editing, beyond the history command.
Once upon a time, all SGS, Ultrix, AIX and HP-UX workstations came stock with 3 button mice.
My first thumb trackball (not my first trackball) -
My second was a wireless version of your Marble.
I've used mice since. Don't know why I changed, I just did.