I am a VIM user learning Emacs commands for use in Bash. 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.
Consider the following command which uploads a file to a web service:
$ time curl -F "email@example.com" -F "baz=777&bin=123&alice=bob" http://somesite.com/internal/project/status/foo/add_status.php
I have a bunch of files to upload with different parameters. Here are some questions:
How might I easily go back from the end of the line to before the
httppart? The combination AltB only goes back per [a-z] block, so I must to this for each directory in the URL. Is CtrlRSpace the preferred way to go back? Notice that CtrlW does delete back to the previous whitespace, so the idea of
<something> until whitespaceseems to exist.
How might I delete back to the
@character from the current cursor position? Pressing CtrlW deletes until whitespace, so that won't help as the
@character is buried in non-whitespace. I could CtrlR@ and then AltD to delete words until I get to where I need to be, but this is rather obtuse. Is there not a
delete until previous <something>command?
Note that I am interested in learning how to use the default Bash configuration as I am more often than not SSHed into some webserver. I don't want to configure Zsh, Vim keybindings, or