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

Is there any way to remap the easymotion keys? #1481

Closed
edasaki opened this issue Apr 6, 2017 · 13 comments
Closed

Is there any way to remap the easymotion keys? #1481

edasaki opened this issue Apr 6, 2017 · 13 comments

Comments

@edasaki
Copy link
Contributor

edasaki commented Apr 6, 2017

In vim I have the "Search Character" set to just s since I never really use the actual s in insert mode.

Is it possible to change the binding in vscodevim? I use the search a lot but pressing the leader twice is a bit tiring sometimes.

And kind of vaguely related, is it possible to change the red/orange font colors? I want to keep the black background but the red/orange is a bit hard to read for me.

@johnfn
Copy link
Member

johnfn commented Apr 7, 2017

And kind of vaguely related, is it possible to change the red/orange font colors? I want to keep the black background but the red/orange is a bit hard to read for me.

It sounds like you're talking about theming VSCode, which is totally separate from VSCodeVim! Check here https://code.visualstudio.com/docs/getstarted/themes

@edasaki
Copy link
Contributor Author

edasaki commented Apr 7, 2017

Oh sorry I realized that totally wasn't clear haha.

I was talking about the popups from the easymotion plugin

Is that also handled by VSCode themes? Since it seems like it's something that would be decided by vscodevim

@johnfn
Copy link
Member

johnfn commented Apr 7, 2017

OHH, those themes! My bad! Yeah huh.. those should probably be re-themeable, sure.

To be honest, the unfortunate truth about extensions (e.g. EasyMotion) is that they're mostly community supported, as it's just too much effort for me to maintain both Vim and an extension ecosystem. You may be able to convince @xconverge if you ask really nicely, but that guy is pretty busy too haha. :P

@xconverge
Copy link
Member

@edasaki we DO allow you to change the color

from here https://github.com/VSCodeVim/Vim#how-to-use-easymotion

"If you set vim.easymotionChangeBackgroundColor to true you can use the searchHightlightColor as the background color for the text decorations, however you then lose the red/orange indicators on whether it is a one key or two key combination since the font color needs to stay readable."

@xconverge
Copy link
Member

I analyze the colors and then set the font to either white or black based on the search highlight color you use

@FelikZ
Copy link

FelikZ commented Apr 7, 2017

Is it possible to change the binding in vscodevim?

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

@edasaki
Copy link
Contributor Author

edasaki commented Apr 10, 2017

Thank you so much @FelikZ , that worked!

And thank you too @xconverge! That's fine for me

@xconverge
Copy link
Member

There is 1 related bug that is somewhat funny though :) #1426, feel free to thumbs up it if it impacts you

Thanks

@i-oliva
Copy link

i-oliva commented Oct 15, 2018

This doesn't work... has the command changed? 😄

@niamleeson
Copy link

@Pavilion #2755

@smzm
Copy link

smzm commented Mar 5, 2019

This doesn't work... has the command changed? smile

Test this code.

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

@rndware
Copy link
Contributor

rndware commented Jun 10, 2020

What would the binding syntax be if you want to search by two chars?

<leader><leader> 2s <char><char>

@mwanchap
Copy link

mwanchap commented Jul 29, 2020

@rndware

What would the binding syntax be if you want to search by two chars?

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

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

9 participants