Issue #125 invalid

C-c binded to evil-force-normal-state doesn't work well with . command (repeat)

created an issue

I'm using {{{C-c}}} instead of {{{ESC}}} to exit insert mode but this doesn't work with repeat command. When I start Emacs, do some change and hit . I get "Accessing an empty ring" error.

{{{(define-key evil-insert-state-map "\C-c" 'evil-force-normal-state)}}}

Is there something I can do about it?

Comments (1)

  1. Frank Fischer repo owner

    The function evil-force-normal-state is indeed meant to cancel insert state without recording the current command. To simply exit insert state regularly, use evil-normal-state instead, thus

    (define-key evil-insert-state-map (kbd "C-c") 'evil-normal-state)

    should work.

  2. Log in to comment