emacskey-bindingsspacemacs

How to assign multiple key combinations to `evil-escape-key-sequence` in spacemacs?


I'd like to assign multiple key combinations that would exit vim insert mode in spacemacs. I tried:

(setq-default evil-escape-key-sequence "fj" "jf" "fd" "df")

But only the first one works. How should I do it properly?


Solution

  • This can be set with the evil-escape-unordered-key-sequence variable:
    SPC SPC customize-variable RET evil-escape-unordered-key-sequence, then hit Toggle, then hit Apply and Save.

    See SPC h d v evil-escape-unordered-key-sequence for more details.