Skip to content

Instantly share code, notes, and snippets.

@ksaldana1
Created August 23, 2019 16:54
Show Gist options
  • Save ksaldana1/15ad0644dd818cd5cbd9fd0f71803b11 to your computer and use it in GitHub Desktop.
Save ksaldana1/15ad0644dd818cd5cbd9fd0f71803b11 to your computer and use it in GitHub Desktop.
easymotion settings in vscode
{
"vim.easymotion": true,
"vim.easymotionMarkerHeight": 20,
"vim.easymotionMarkerWidthPerChar": 12,
"vim.easymotionMarkerFontSize": "16",
"vim.easymotionMarkerBackgroundColor": "#428aff",
"vim.easymotionMarkerForegroundColorOneChar": "#fffcfc",
"vim.easymotionMarkerForegroundColorTwoChar": "#fffcfc",
"vim.easymotionMarkerFontFamily": "Arial",
"vim.normalModeKeyBindingsNonRecursive": [
{
"before": [" "],
"after": ["leader", "leader", "leader", "b", "d", "w"]
}
]
}
@fcFn
Copy link

fcFn commented Jul 6, 2024

Thank you so much, for some reason I didn't think about this solution when trying to find a way to rebind the keys required to go into easymotion mode. Hope it won't conflict with anything. I bound it to s since I had to turn off sneak (which is a shame since that is a motion and not an operator unlike easymotion, i.e., you can use sneak motions inside other plugins such as surround unlike easymotion): unfortunately it has a bug in its implementation and you can't sneak to anything that starts with a j or k when you have the wrapped lines fix from the FAQ.

@fcFn
Copy link

fcFn commented Jul 6, 2024

By the way, I suggest adding those to "vim.visualModeKeyBindingsNonRecursive" as well so you can select things in Visual mode with EasyMotion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment