How to map “jj” to Esc in emacs Evil mode

前端 未结 7 1779
迷失自我
迷失自我 2021-01-31 07:46

Recently I tried Emacs and found Evil helpful to keep my vim custom. I\'m used to typing \"jj\" to return normal mode from insert mode like many Vimers do but don\'t know how to

7条回答
  •  无人及你
    2021-01-31 08:24

    It's a bit more complicated - you have to watch for the previous character. This should do the trick. (the gist is for "jk", you can easily modify it for "jj" though you will note that "jk" is more efficient/faster).

提交回复
热议问题