Editing long commands in editor ctrl-x ctrl-e will open the current command in an editor for multi-line editing.