How to choose the key binding of ESC in vim
阿神
阿神 2017-05-16 16:41:18
0
11
1811

Except hijk, the most frequently pressed key in vim is probably Esc. I already have some signs of Esc obsessive-compulsive disorder. The default Esc key is far away, and it is too troublesome to press. How to deal with it?

With the help of Google experts, I found two solutions:

  • CapsLock => Esc
    This binding habit obviously comes from emacser. I tried it, but Capslock => Ctrl is still more comfortable, so I gave up.
  • imap kj <esc>
    (Note: It is kj instead of jk. You can understand the difference by pressing it a few times.) It feels good, but the burden on the index finger/middle finger has increased. Okay, hijk is about to get cramps.

In addition, the solution I am currently using is: Right ALT (Command) => ESC
Firstly, the right Alt key has very little typing rate, so it’s just a good idea to use the unused keys; secondly, it’s just a thumb movement when pressed, and the palm doesn’t need to move. Moreover, among the ten fingers on the keyboard, the right thumb is the easiest to type, so it’s just a good time for him to find some. Things to do.

How do you bind this ESC key?

阿神
阿神

闭关修行中......

reply all(11)
世界只因有你

Shouldn’t I buy a foot pedal? Give esc, ctrl and alt respectively

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template