Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

using multi evil states/keymaps in single general-def #507

Open
aminevsaziz opened this issue Nov 2, 2022 · 0 comments
Open

using multi evil states/keymaps in single general-def #507

aminevsaziz opened this issue Nov 2, 2022 · 0 comments

Comments

@aminevsaziz
Copy link

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:

  1. I want to set "zw" for #'+spell/remove-word in normal state with SPC as leader.
  2. I want to set "[s" for #'+spell/previous-error in motion state with SPC as leader.
  3. both 1 and 2 share the same keymap
    my solution was writing multiple general-def where I change the state each time.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant