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?
Doesn't work on iTerm2, which y'all should be using anyways. Besides being infinitely more configurable, and getting tabs right, it's also much faster when you are printing a bunch of text. No idea why OS X Terminal is so slow when it comes to this, but it's actually painful to `cat` a file of more than a thousand lines.
I don't cat files too often in my workflow so I guess I don't have that pain point, but I find find iTerm2 has this minor annoying latency (kind of like typing on a wireless keyboard on low battery) that ultimately drove me away from it.
Odd. I have never experienced that problem. I don't cat files, but I list git diff output, view log files, etc. Even a large-ish git blame introduces a noticeable lag.
In MacTerm, command+option+click will move the terminal cursor in the same way by simulating keys. It also moves “up” or “down”, for applications such as text editors that understand vertical arrows. There is even a preference setting that attempts to move the cursor automatically to wherever you drag and drop text with the mouse.
Comments (395) 107 threads
Earlier commentsbindkey -v
Now be happy, hit and, use ^ and $ but also f t and also ,;.
You can copy/paste with dd, Y, etc...
(Note: I wrote MacTerm.)
All comments shown.
Couldn't load more comments. Check your connection and try again.