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?
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?
Currently you can't assign multiple keys to evil-escape-key-sequence
but there is simple workaround to achieve the same result: (source):
key-chord
to dotspacemacs-additional-packages
(key-chord-mode 1)
(key-chord-define evil-insert-state-map "fd" 'evil-escape)
And now both combinations, default (df / fd
) and new (fj / jf
) work.
This can be set with the
evil-escape-unordered-key-sequence
variable:SPC SPC
customize-variable
RET
evil-escape-unordered-key-sequence
, then hitToggle
, then hitApply and Save
.See
SPC h d v
evil-escape-unordered-key-sequence
for more details.