News for hackers. Stuff that matters.
Re:Use vi editor in shell by yoo1I on Friday November 11, 2016 @03:40AM (#12928985)
This fails to mention the most vi-in-a-shell-yness:

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.

Re:Use vi editor in shell by worldofprasanna on Monday November 14, 2016 @05:43AM (#12948854)
Hi .. I couldn t do this .. Pressing "v" enables visual mode and only the text is selected.

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.

Re:Use vi editor in shell by yoo1I on Friday November 18, 2016 @04:51PM (#12990382)
not to leave you hanging there; this is what I found in my .zshrc to enable the functionality.

  autoload edit-command-line
  zle -N edit-command-line
  bindkey -M vicmd v edit-command-line
... could've sworn that was included more default-y
Re:Use vi editor in shell by worldofprasanna on Tuesday November 22, 2016 @11:57PM (#13020168)
Hey thanks yoo1l. It worked like charm ...

PS: Blog updated !!! https://worldofprasanna.github.io/using-vi-in-zsh