How to edit current query without executing it?
Don't write a trailing semicolon. If you go through the history, remove the trailing semicolon. That will put the query in the buffer, and you can edit it with \e.