edit last command in editor
Sometimes it's easier to edit your last command in text editor (e.g. vim) than fixing the command line in cli. while bash has fc,
fishhas built in commands.
go to your previous command with up arrow (or ctrl-p), and press alt-e
$EDITORenvironment is set.