I was digging the manual for a trick on how to setup different keybinds with SPC prefix in different evil states without cluttering the config file.
for example:
- I want to set
"zw" for #'+spell/remove-word in normal state with SPC as leader.
- I want to set
"[s" for #'+spell/previous-error in motion state with SPC as leader.
- both 1 and 2 share the same keymap
my solution was writing multiple general-def where I change the state each time.
I was digging the manual for a trick on how to setup different keybinds with
SPCprefix in different evil states without cluttering the config file.for example:
"zw"for#'+spell/remove-wordin normal state withSPCas leader."[s"for#'+spell/previous-errorin motion state withSPCas leader.my solution was writing multiple general-def where I change the state each time.