A few years ago I found a command or a shortcut, I don't remember what it was but it basically opened the current command in the terminal in a text editor like vim or nano and allowed you to edit it there (with multiple lines) and then save the buffer and execute whatever you wrote in the editor.
How do I do that?
The key combination you're looking for is Control-x Control-e. It's listed in output of
bind -p
: