4 ms·
OK, so for vim users with zsh: bindkey -v Now be happy, hit <ESC> and, use ^ and $ but also f<letter> t<letter> and also ,;. You can copy/paste with dd, Y, e
by yogsototh 13y ago
OK, so for vim users with zsh:
bindkey -v
Now be happy, hit <ESC> and, use ^ and $ but also f<letter> t<letter> and also ,;.
You can copy/paste with dd, Y, etc...
- slunk 13y agoFyi, bash also has vi-mode (set -o vi).
- pyre 13y agobash 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).
- coliveira 13y agoset -o vi does the trick for vim. Most vi commands work, but when you type <ESC>v this will open vi to edit your command line, in case you feel any command is missing.
- GrinningFool 13y agoI've b een using vi-mode in the shell for a while,but haven't been able to get the <ESC>v behavior you described. Did you have to do anything to make that behave?
- coliveira 13y agoI haven't done anything, my version works under Mac OS X.