Use vi editor in shell Posted by worldofprasanna on Friday November 11, 2016 @01:53AM from the worldofprasanna.github.io dept. https://worldofprasanna.github.io/using-vi-in-zsh ( 4 comments | 3 points | on HN )
Press "v" and launch your currently typed command into a vim (or whatever $EDITOR is set to) editing buffer.
Very useful for adhoc-but-long if or while statements.
https://dougblack.io/words/zsh-vi-mode.html
Above link explains the usage, but I couldn t use it for some reason even after setting EDITOR variable.
PS: Blog updated !!! https://worldofprasanna.github.io/using-vi-in-zsh