Skip to content

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

@aminevsaziz

Description

@aminevsaziz

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions