$EDITOR
–
Editor used to choose ZLE keymap
$EDITOR is used by ZLE to choose the keymap.
If it contains the string vi, then keymap viins is chosen.
Otherwise, keymap emacs is selected.
Variable $VISUAL is used in the same way as $EDITOR by ZLE.
Links
BashSupport Pro is a Zsh IDE with support for $EDITOR – try it now!