ZSH – How to Edit Command Line in Full Screen Editor in ZSH

editorszsh

In bash, using vi mode, if I hit Esc,v, my current command line is opened in the editor specified by $EDITOR and I am able to edit it in full screen before 'saving' the command to be returned to the shell and executed.

How can I achieve similar behaviour in zsh? Hitting v in command mode results in a bell an has no apparent effect, despite the EDITOR environment variable being set.

Best Answer

See edit-command-line in zshcontrib.

bindkey -M vicmd v edit-command-line
Related Question