I'm a Vim user, so I'm learning Emacs commands for use in the Bash CLI. I know that on my systems I can use Vim-keybindings in Bash but I'd like to learn how to use it effectively in its default configuration.
First order of business: Moving around. Let us assume that I've got the following on the CLI:
$ mv some_long_file_name.txt some_long_file_name_with_slight_change.txt
I'm at the end of the line and I'd like to go back 4 words. In Emacs one would Ctrl+U, 4, Alt+B however on the Bash CLI Ctrl+U erases to the beginning of the line. How to perform the motion, then?
Add auxiliary question, if I may? Assuming that I had successfully completed a move command and I'd like to do it again. How might I do that? So if I contorted my fingers on 5 keypresses to move back 4 words, how might I move back another 4 words?
Note that I am interested in learning how to use the default configuration. I don't want to configure Zsh, Vim keybindings, or .bash_profile
.