3 ms·
Warning: Once you remap this, you can never use vi on a non-remapped keyboard again (Source: me)
by frenchie4111 8y ago
Warning: Once you remap this, you can never use vi on a non-remapped keyboard again (Source: me)
- weaksauce 8y agoI recently changed my caps lock + hjkl to be the arrow keys system wide and act as command-option-shift-Ctrl+ whatever key you press. And finally f18 if pressed and released by itself(though you could map it to escape instead). In vim(well spacemacs) I have jk and kj set to escape so I can exit out of insert mode by just mashing those two keys on home row. This is the best setup I have ever used. To get caps locks on I have it set to toggle if I press right shift and caps locks.
- macjohnmcc 8y agoI had a WASDKeyboard made with a Ctrl key in place of the capslock key and it has a switch to allow that mapping. I'm spoiled by not accidentally TYPING ALL IN CAPS!
- johnbellone 8y agoI am almost certain all of the newer WASD products have a DIP switch on the bottom that has this feature. IIRC my CODE keyboard does too (because it’s manufactured by WASD).
- craftyguy 8y agoCan confirm. It's terrifying when muscle memory sends you half a dozen (or more) upper-case key strokes into the abyss because you hit capslock when you thought it would Esc, kept firing away keystrokes until you realized what had happened, and you have no idea what you just did, where you are, or how to get back.
- kbenson 8y agoIf you're using a vi variant without undo capability, you've skipped right past hard mode to nightmare difficulty.
- cwillu 8y agoI'd argue that it's more akin to skipping to hardcore mode (i.e., permadeath).
- Dylan16807 8y agoIf you didn't hit escape, wouldn't you be in insert mode and just need to backspace?