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

Changing prefix in easy-motion #4218

Closed
CagriUysal opened this issue Oct 26, 2019 · 5 comments
Closed

Changing prefix in easy-motion #4218

CagriUysal opened this issue Oct 26, 2019 · 5 comments

Comments

@CagriUysal
Copy link

Is there a way to use easy-motion with slightly altered prefix.
For example, instead of using below:

<leader><leader> s <char>

I want to use,

<leader> s <char>

@turara
Copy link

turara commented Nov 5, 2019

I posted the setting in #4239.

@CagriUysal
Copy link
Author

Thank you for solution.
But one unintended problem is, it interferes with all involved operations in vim.
For example: after setting your solution, I can't use to unhighlight search result.
What I want is to only map what I ask in the issue, but I guess there is no possible solution at the moment.

@turara
Copy link

turara commented Nov 11, 2019

Do you bind "leader [some key]" to ":nohl" command?
If what you want to do is to reduce one "leader" typing for all easymotion commands with one setting parameter or binding, I don't see any workrounds. But for specific commands, I think you can bind as follows:

"vim.normalModeKeyBindingsNonRecursive": [
  {
    "before": [ "leader", "s" ],
    "after": [ "leader", "leader", "s" ],
  }
]

@J-Fields
Copy link
Member

@CagriUysal Has your issue been addressed?

@CagriUysal
Copy link
Author

Yes, it have been.

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

3 participants