Note that I'm not talking about the previous lines in the story. I am talking about the previous lines in the current multi-line command.
When I enter a multi-line command in zsh, for example ( _indicates cursor):
$ for i in {1..5}; do
for> echo i_
At this point i might change my mind and want to let iloop through {1..10}instead, so i need to go back to the previous line. However, I can't figure out how to do this, as β«, or β, or C-b, or whatever I can think of all stops at the beginning of the second line. So, is it possible at all to move back? Thanks in advance.
This is actually not limited to zsh. For example, I never thought about this in bash.
I have already spent a lot of time on Googling without any conclusions, so please excuse me and blame my Google-fu if this is obvious.
For your reference, I use keybinding Emacs and
$ bindkey | grep delete
"^D" delete-char-or-list
"^H" backward-delete-char
"^[[3~" delete-char
"^?" backward-delete-char
Not sure if this will help.
source
share