Lurker News
OSX Terminal: hold option and click a position in the current line to move your cursor to that position. #yearslost

Comments (395) 107 threads

Show all comments

Showing thread 42 of 107

yogsototh2 replies#
OK, so for vim users with zsh:

bindkey -v
Now be happy, hit and, use ^ and $ but also f t and also ,;.
You can copy/paste with dd, Y, etc...

slunk1 reply#
Fyi, bash also has vi-mode (set -o vi).
pyre#
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).
coliveira1 reply#
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.
GrinningFool1 reply#
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?
coliveira#
I haven't done anything, my version works under Mac OS X.