Hacker News new | ask | show | jobs
by worldofprasanna 3498 days ago
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.

1 comments

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
Hey thanks yoo1l. It worked like charm ...

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