3 ms·
I basically do this, but I use "," (comma) as my leader, and I make capslock do double duty as ctrl and esc using KeyRemap4MacBook (https://pqrs.org/macosx/keyr
by karmajunkie 13y ago
I basically do this, but I use "," (comma) as my leader, and I make capslock do double duty as ctrl and esc using KeyRemap4MacBook (https://pqrs.org/macosx/keyremap4macbook/ https://pqrs.org/macosx/keyremap4macbook/). The trick is first remap capslock to Ctrl in keyboard system preferences, then use KR4MB to remap Control_L (the left control key, which is to say, what capslock now signals) to Control_L, but if you type ONLY Ctrl_L it sends esc. so when i need escape, it sends that. when i want to use it for Ctrl-modified combos, it does that. Works fantastically for Vim, i've been doing this for a couple years now. Also nice for emacs keyboard shortcuts in other apps that respond to them.
- normalocity 13y agoI also use KR4MB, but I found that I'm migrating toward a multi-system (more than one keyboard on more than one OS) situation. This introduced some peculiarities to my workflow where it means I can't rely on KR4MB always being available. I originally thought I might use KR4MB a lot more, but I've had to minimize its use to get that cross-platform consistency in my particular case.
- theOnliest 13y agoThis is what I do too: Caps Lock sends either Escape (when pressed alone) or Control (with something else). I cribbed it from Steve Losh: http://stevelosh.com/blog/2012/10/a-modern-space-cadet/ http://stevelosh.com/blog/2012/10/a-modern-space-cadet/.
- xiaomai 13y agoFor linux people, this can be accomplished with: https://github.com/cmatheson/super-caps https://github.com/cmatheson/super-caps That said, I don't use this anymore because I found that I rarely release escape (er, caps lock) before moving on to the next key. So I was getting a lot of control-n instead of <Esc>n.