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?
On
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-sequencevariable:SPC SPCcustomize-variableRETevil-escape-unordered-key-sequence, then hitToggle, then hitApply and Save.See
SPC h d vevil-escape-unordered-key-sequencefor more details.