3 ms·
People who used vi/vim may also know this one as a way to get out of insert mode that is somewhat easier to reach. Nowadays I remap the TAB key to send ESC.
by sushibowl 4y ago
People who used vi/vim may also know this one as a way to get out of insert mode that is somewhat easier to reach. Nowadays I remap the TAB key to send ESC.
- u801e 4y agoI wonder if that remapping also allows you to use ctrl-i to get out of insert mode. If that's the case, you can switch between the two by pressing i and ctrl-i.
- mprovost 4y agoWell, the article says: "There is no way to distinguish between the Tab key and Control+i. It’s not just ‘the same’ as Tab, Control+i is Tab." So you'd be mapping Tab to Escape to get out of insert mode.
- recuter 4y agoTry mapping jk to ESC.
- kfajdsl 4y agoHow do you indent?
- enriquto 4y agoIf you :set autoindent you'll never need to indent using the tab key. Indentation happens automatically as you write code. In the very rare cases where you need to change the indentation of a line, there's == or, if that doesn't work, you can indent a line forth and back with >> and << .
- wombatpm 4y agoUse spaces like a psychopath?
- SAI_Peregrinus 4y agoI remap CapsLock to Esc, and Shift+Esc to CapsLock. I don't use ALL CAPS that often, so I rarely need to use the combination.