VSCodeVim / Vim

:star: Vim for Visual Studio Code
http://aka.ms/vscodevim
MIT License
14.02k stars 1.32k forks source link

Vim easymotion - not using leader key at all #4824

Closed skgbanga closed 4 years ago

skgbanga commented 4 years ago

Hello,

I am moving from regular vim to VSCode and one of the configuration that I use in my vimrc is this:

nmap s <Plug>(easymotion-s2)

With the above setting, I don't need to do '2s..' to search for two characters on my screen. This is immensely helpful and is the only setting/way I use easymotion with.

Do you know if this is possible to do in VSCode vim extension?

Thanks!

skgbanga commented 4 years ago

Based on #4532, looks like I can achieve this by:

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

Closing this issue.