> Next time you are using your shell, try typing ctrl-x e [...]. The shell will take what you've written on the command line thus far and paste it into the editor specified by $EDITOR.
I'm astonished this works in bash but not in zsh.
I'm astonished this works in bash but not in zsh.
autoload edit-command-line
zle -N edit-command-line
bindkey '^X^E' edit-command-line $ blah blah[ESC]v
puts you in vim with the command line thus far.