by mxschumacher · 6y ago · 0 comments
https://stackoverflow.com/questions/28444740/how-to-use-vi-m...
If you are using zsh, you need to add this to ur .zshrc
autoload -z edit-command-line
zle -N edit-command-line
bindkey "^X^E" edit-command-line set -o vi
Starts you in insert mode. To go back to the usual command-line editing, set -o emacs