bash uses GNU readline, while ZSH has it's own readline. IIRC the Emacs-/Vi-modes in bash are support from readline. (this is also why you configure some of these things via .inputrc for Bash rather than .bashrc).
set -o vi does the trick for vim. Most vi commands work, but when you type v this will open vi to edit your command line, in case you feel any command is missing.
I've b een using vi-mode in the shell for a while,but haven't been able to get the v behavior you described. Did you have to do anything to make that behave?
Comments (395) 107 threads
Show all comments
Showing thread 42 of 107
bindkey -v
Now be happy, hit and, use ^ and $ but also f t and also ,;.
You can copy/paste with dd, Y, etc...