^X^E in bash takes your current prompt and moves it to your $EDITOR.
for zsh:
autoload edit-command-line
zle -N edit-command-line
bindkey '^X^E' edit-command-line