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

前端 未结 7 1801
迷失自我
迷失自我 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:44

    For my windows install, adding as part of use-package evil configuration worked for me in init.el:

    (use-package evil
     :ensure t
     :config
     (evil-mode 1)
     (define-key evil-insert-state-map "jj" 'evil-normal-state)
    )
    

    For Ubuntu, I followed E. Sambo's answer.

提交回复
热议问题