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

Cannot use <SPC> in motion mode, when <SPC> is a leader key #21

Open
maximbaz opened this issue Jan 23, 2015 · 0 comments
Open

Cannot use <SPC> in motion mode, when <SPC> is a leader key #21

maximbaz opened this issue Jan 23, 2015 · 0 comments

Comments

@maximbaz
Copy link

My leader key is assigned to <SPC>.

  (evil-leader/set-leader "<SPC>")
  (global-evil-leader-mode)

But now I cannot use <SPC> in motion mode, in particular:

  • d<SPC> to delete one letter under cursor;
  • c<SPC> to delete one letter under cursor and enter insert mode.

Obviously the following line "causes" my problem.

(if evil-leader-mode
    (progn
      (evil-normalize-keymaps)
      (define-key evil-motion-state-local-map no-prefix map)   <---------

I assume you cannot simply move the mapping for motion state under evil-leader/in-all-states without breaking many current configurations, but perhaps it is possible to create another parameter to control motion state, enabled by default?

UPDATE: Apparently, without this line leader key will not work in visual state. So need to find a better solution, rather than the workaround I proposed above.

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