5 ms·
You can globally remap Caps Lock to Escape by going to Preferences -> Keyboard -> Modifier Keys.
by mFixman 8y ago
You can globally remap Caps Lock to Escape by going to Preferences -> Keyboard -> Modifier Keys.
- frenchie4111 8y agoWarning: 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?
- kornish 8y agoSecond this tip. For Emacs users, remapping Caps Lock to Control is a godsend.
- zylent 8y agoWhy not both! I use xcape on linux, and karabiner on OSX to remap caps to control when chorded (ctrl+c) and escape when pressed alone. You'll never go back
- macintux 8y agoIt was a sad day (ok, sad years I suppose) when Sun and Apple gave up this battle to conform to the PC world. Control was already in that spot for real computers.
- smnscu 8y agoAs an emacs ex-user I could never live without Caps Lock being remapped to Ctrl, the advantages on Mac are tremendous, I use daily C-a, C-e, C-r, C-s, C-k, etc etc. This is one of the best features of Mac OS in my book, being able to use Cmd for operating system commands and Ctrl for typical UNIXy commands. Whenever I have to use a linux (usually Ubuntu) laptop I cringe at all the Ctrl-Shift-C/V.
- w0m 8y agoCaps Lock needs to be Ctrl.
- hiram112 8y agoAre you an Emacs user? I'm currently trying to undo two decades of Windows keyboards in order to use my MBP, and have had to switch up alt, command, etc. in iterm2 to get things as I'm used to, but I'm willing to force my brain into using Caps-lock as CTRL if this is something that works better in the long term.
- w0m 8y agoGenerally live in Vim; i've remapped Caps->Ctrl on win/OSX/Linux on every computer I've owned for well over a decade now.
- drewmol 8y agoWhen I do this, I also pry of and switch the key caps wherever possible.
- notadoc 8y agoYou can also use an external keyboard to have a hardware escape key too. That's not the point.