4 ms·
Remapping my capslock key to escape was the only way that I could finally switch to Vim. Highly Recommended.
by dokem 13y ago
Remapping my capslock key to escape was the only way that I could finally switch to Vim. Highly Recommended.
- InclinedPlane 13y agoinoremap jj <Esc> Best .vimrc setting ever.
- scintill76 13y agoHave you compared it to CapsLock as ESC? I understand Escape is in a ridiculous position on most keyboards, but I think CapsLock makes a great mode switcher, and have been using it for a few months now. (Downside being that it can't be done in vimrc, at least not in terminal vim which I use.) The jj and jk hacks always seemed ridiculous, but maybe I'll give them a try. I think I would prefer jk for speed and fatigue reduction, or maybe even something on the left home row since I'm left-handed.
- verroq 13y agoI find jk a lot more convenient. With Capslock my pinky has to move over to the next column, where as jk just sits on the home row.
- InclinedPlane 13y agoAs you say, you can't just tweak the capslock assignment in vimrc or by issuing a command. The great thing about the jj/jk hack is that if you end up on some random system or borrowing someone else's shell for a second then all you have to do is type ":inoremap jj <Esc>" and you're back in the groove. I was a little skeptical about it at first as it seemed like a weird hack, but it's actually quite practical. The fact that you don't have to leave the home row to swap between modes is a huge efficiency boost.
- userbinator 13y agoI don't know when but very shortly after I started to use vi I learned about and used Ctrl+[, and have been doing that to this day. I still tend to use ^[ instead of Esc by instinct, even when it doesn't work in any other program.