Multi-stroke key bindings, Extended vi Edition
As some of you know, I use the multi-stroke key bindings by Jacob Rus to easily type strings such as ⌃⇧⌘⌫. I mostly use these characters in three places:
- Correspondence with users
- Posts here
- Documentation
And it sure beats looking those characters up in UnicodeChecker or the Character Palette.
But I was never satisfied with the original set of key bindings that that file provides. The first problem that I had was that the arrow keys are emacs keys, not vi keys:
← Solid Left (back) ⌃M + ⌃B → Solid Right (forward) ⌃M + ⌃F ↑ Solid Up (previous) ⌃M + ⌃P ↓ Solid Down (next) ⌃M + ⌃N ⇠ Dotted Left (back) ⌃M + B ⇢ Dotted Right (forward) ⌃M + F ⇡ Dotted Up (previous) ⌃M + P ⇣ Dotted Down (next) ⌃M + N
I’m a vi guy, so I wanted the hjkl arrangement for my arrows. So that was the first change I made.
I also added a bunch of characters, and reassigned some of them:
Ch | Description | Key sequence |
---|---|---|
⏎ | Return | ^M + Return |
⌘ | Command | ^M + C |
⌘ | Command (Apple) | ^M + ^A |
⌥ | Option | ^M + ^O |
⌃ | Control | ^M + ^C |
⇧ | Shift | ^M + ^S |
⇪ | Caps Lock | ^M + ^S |
☺ | Smiling face | ^M + ^F |
☹ | Frowning face | ^M + F |
× | Multiplication sign | ^M + ^X |
Ch | Description | Key sequence | Reason for modification |
---|---|---|---|
The arrows (solid and dotted), as noted above | Because I prefer vi to emacs | ||
⏎ | Return | ^M + ^R | To free up ^E for Escape |
⌅ | Enter | ^M + R | To free up E for Eject |
↖ | Home | ^M + Shift-^H | To free up ^H for ← |
↘ | End | ^M + Shift-^E | To free up H for ⇠ |
⎋ | Escape | ^M + ^E | To free up ^X for × (multiplication sign) |
⏏ | Eject | ^M + E | To keep Eject on the same key as Escape |
In case you’re wondering about the division sign (÷): The OS already provides this as ⌥/, and always has been (all the way back to 1984). I didn’t need to add it.
Also, in case you’re wondering about “Apple” above: The Apple logo is ⇧⌥K, so I didn’t need to add that, either. (Plus, I never use it.)