These sorta combinations and things like visual block mode are why I can’t let go of vim. You can also do:
set -o vi
And get vim in your bash shell. Then you wonder what the default mode is, and it turns out it’s emacs and you can do wild things like ctrl-A to go to the beginning of the line.
And now I cringe when ever I see someone painstakingly left-arrow for 30 seconds to edit something at the beginning of their bash prompt.
Didn't know about that. I'm using default shell shortcuts, which are different set of shortcuts. Like:
* Ctrl-u: clear line and start from the beginning
* Ctrl-a: go to the beginning of line
* Ctrl-e: go to the end of line
* Ctrl-b: move backwards
* Ctrl-f: move forwards
* Ctrl-c: leave the command as it is, just cancel the command and start with new line
* Ctrl-w: delete a word before cursor
* Ctrl-h: delete a character before before cursor
* Ctrl-d: delete a character after cursor
* Ctrl-t: swap last 2 characters (this is one of my favourites in terms of lulz, I actually trained myself to use it :D)
* ...
Pulled these out of my fingers, but there are more. Don't know the correct source to point to.
What's good about those is that they work by default and behind every computer.
set -o vi
And get vim in your bash shell. Then you wonder what the default mode is, and it turns out it’s emacs and you can do wild things like ctrl-A to go to the beginning of the line.
And now I cringe when ever I see someone painstakingly left-arrow for 30 seconds to edit something at the beginning of their bash prompt.