7 ms·
Ctr+[ Vim-ing on devices with not physical Esc key makes you get used to this (default configured, no extra keymapping required) Esc alternative :P
by nnq 7y ago
Ctr+[
Vim-ing on devices with not physical Esc key makes you get used to this (default configured, no extra keymapping required) Esc alternative :P
- b1gtuna 7y agoWhoa, I was not aware of this. Now I can completely avoid using the touchbar!
- airstrike 7y agoMan, what a sad statement...
- dfinninger 7y agoI get where they are coming from. I find the touch bar pretty neat and useful... But it's dynamic and I don't want that to interfere with pure muscle memory tasks like typing.
- apetresc 7y agoYou can also remap a key like Caps Lock to Escape, straight from System Preferences on macOS (unless you're already remapping it to Ctrl or something)
- joshstrange 7y agoI do this and while I'm on my magic keyboard I sometimes forget and keep using the physical Esc key. I need to see if I can use something like BTT/Keyboard Maestro to respect the physical (or Touchbar) Esc key but send a notification of something like "You should use the Caps Lock Key instead" to help train myself better. I will say it's really nice that macOS makes it stupid easy to map Caps Lock to Esc and it work flawlessly for me.
- scott_s 7y agoI did this recently. An upgrade to a Mac with a touchbar prompted it, but I should have done it over a decade ago.
- jtms 7y agoCaps lock remapped to esc is definitely a great solution - I have been using it for years
- msla 7y agoIn Emacs, we remap Caps Lock to Ctrl. Does anyone actually like Caps Lock?
- ianmcgowan 7y agoI PROGRAM IN A LEGACY ENVIRONMENT THAT USES CAPS ONLY. I LOVE CAPS LOCK AND FIND IT ANNOYING TO HAVE TO SWITCH BACK AND FORTH WITH SHIFT. so emails and general writing tend to be all lower case and rely on the editor to upcase for me. mostly works.
- teddyh 7y agoIn many terminals (especially old ones), Ctrl-3 also commonly gives ESC.
- bkanber 7y agoFrankly I prefer Ctrl-[ over Esc because it requires less hand movement.
- dmitryminkovsky 7y agoRebound my caps lock to escape and never looked back!
- mrzool 7y agoYou should (look back). Mapping it to Ctrl is a much more sensible choice. Can’t imagine using backspace instead of Ctrl-h, or Ctrl-A/E to go to the beginning/end of line, or Ctrl-W to delete back one word etc. Of course, Ctrl-[ is also right under your finger tips with Caps Lock mapped to Ctrl.
- meestaahjoshee 7y agoyou can do tap for esc, hold for ctrl
- hultner 7y agoThis is what I've done for years now, best thing since sliced bread.
- dmitryminkovsky 7y agoTap what?
- stevelosh 7y agoThey mean remapping capslock to: * Ctrl if held and used with other keys. * Esc if pressed and released on its own. There's no reason to press and release Ctrl on its own (minus games), and you never need to chord Esc with anything else, so they can both live on the same key.
- tjoff 7y agoUnfortunately doesn't work for us that access [ via the AltGr layer. Unless someone knows of a workaround?
- ryanmonroe 7y agoCtrl-C also works
- latexr 7y agoI really dislike shortcuts with `[` and similar keys. Design software also tends do use them. On a Portuguese keyboard layout[1], I need to press ⌥8 to get `[`. So shortcuts like ⌃[ become ⌃⌥8, which in vim produces `8`. [1]: https://en.wikipedia.org/wiki/File:KB_Portuguese.svg https://en.wikipedia.org/wiki/File:KB_Portuguese.svg
- yoodenvranx 7y agoThat's why I use the EurKEY [1] layout on all my machines! This way I can use all the default US-based shortcuts for emacs/vim/... while still being able to easily type the special chars for my native language, e.g. pressing AltGr+o results in 'ö'. This method is slightly inconvenient for typing long texts but for me it's still the perfect solution to such problems. [1]: https://eurkey.steffen.bruentjen.eu/start.html https://eurkey.steffen.bruentjen.eu/start.html
- Fnoord 7y agoWhy the Windows key though? Not everyone runs Windows. Call it Super. That covers every OS, including Windows and Mac. Also, caps lock is arguably useless. First thing I rebind... on Windows with a *.reg key, on macOS with Karabiner Elements.
- reirob 7y agoI was not aware of this, but found a similar solution that is available almost on any computer: On Linux (my main work environment) I use the English International with AltGr Dead Keys. This gives me a lot of European (and other) accents by combining AltGr+<Accent simulation key> <Letter on which to put the accent>. Examples: ä - AltGr+" a (the double quote looks visiually like 2 dots) ç - AltGr+, c õ - AltGr+~, o and so on. I found this solution very practical, even if quite late in my life (went from German QWERTZ, to French AZERTY, to end up with QWERTY), because QWERTY is available everywhere, even if I have to work remote through Windows computers, and it is much much friendlier than AZERTY/QWERTZ. Additionally it gives me to write with the same layout German, French, Portuguese, etc. And it is very easy to remember how to get the accents, because the used signs are visually close.
- 7y ago
- equalunique 7y agoI like that in spite of this requiring two fingers, each finger on it's own has to move less distance than one would in order to reach Esc.
- qubitcoder 7y agoRemapping Caps Lock to Control makes the motion even easier.
- equalunique 7y agoI have a couple "HHKB" layout boards which do that. It is quite helpful! What I have found even more useful is triggering a "layer" when Caps Lock is held down, which turns H, J, K, & I into an arrow cluster; U & O into Page Up / Down; and P & ; into Home / End. To toggle regular Caps Lock, I just activate the layer and then hit A. It's a big time saver! :)
- m463 7y agoDo you have a minimal keyboard? Vim would be a particularly good editor since most operations are simple and elegant with only an occasional exit of insert mode. but emacs... probably not as fun.