Caps remap is my favorite. My pinky is much happier.
Enhancements to Shell and Vim Productivity
21–30 of 62 posts
Re: Enhancements to Shell and Vim Productivity
#22Re: Enhancements to Shell and Vim Productivity
#23Earlier quoted context omitted.
I've always used Ctrl-[. It's there in all Vim installs, doesn't conflict with anything else that I know of, and is a quick, no-glance pinky shift for both hands (assuming you remap your Capslock to Control). Edit: Ninja'd by top-level comment!
In OSX at least, there's a way you can make Caps Lock behave as Ctrl when used as a modifier key, or Esc when pressed alone. Way better than adding an extra keystroke to every time you want to hit Esc.
Re: Enhancements to Shell and Vim Productivity
#24Caps remap is my favorite. My pinky is much happier.
Re: Enhancements to Shell and Vim Productivity
#25Re: Enhancements to Shell and Vim Productivity
#26Tried this and gave it up. Your shell may be (somewhat) vi compatible but the applications you use mostly are not so you'll have to break out of the vi mindset at all sorts of inopportune moments. That, and modal editing, while perfectly alright for text editing, maps rather lousily to command line operations. You're much better off getting used to some basic Emacs-style key bindings that work consistently across a wide number of applications (including OS X text fields, IIRC).
Re: Enhancements to Shell and Vim Productivity
#27However, as a Mac user, all of the Cocoa text widgets more or less support emacs keybindings, so having a working knowledge of basic emacs movement commands has been very useful.
The emacs bash/readline keybindings also have a really neat trick that the vi bindings don't -- keyboard macros!
Ctrl-( to start recording, Ctrl-) to stop, and Ctrl-x to execute.
Re: Enhancements to Shell and Vim Productivity
#28Earlier quoted context omitted.
In OSX at least, there's a way you can make Caps Lock behave as Ctrl when used as a modifier key, or Esc when pressed alone. Way better than adding an extra keystroke to every time you want to hit Esc.
Do you happen to know a resource that explains how you do this?
Re: Enhancements to Shell and Vim Productivity
#29As a Vim user, I've always been drawn toward using vi keybindings in bash. However, as a Mac user, all of the Cocoa text widgets more or less support emacs keybindings, so having a working knowledge of basic emacs movement commands has been very useful. The emacs bash/readline keybindings also have a really neat trick that the vi bindings don't -- keyboard macros! Ctrl-( to start recording, Ctrl-) to stop, and Ctrl-x…
Re: Enhancements to Shell and Vim Productivity
#30When you have already remapped Caps-Lock as an additional control, why not just use Ctrl-[ instead of the 'jj' remapping for Escape. It saves a bit of Vim configuration, and also works in Bash vi mode.