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

How to go prev in f search when , is the leader key? #4909

Open
nshen opened this issue May 28, 2020 · 4 comments · May be fixed by #4995
Open

How to go prev in f search when , is the leader key? #4909

nshen opened this issue May 28, 2020 · 4 comments · May be fixed by #4995
Labels
Milestone

Comments

@nshen
Copy link

nshen commented May 28, 2020

How to go prev in f search when comma is the leader key?
the timeout seems doesn't work for me.

@zkerhcy
Copy link

zkerhcy commented Jun 22, 2020

+1

In my vimrc, I use , as the leader key, and use \ to go prev in f search:

let mapleader = ','
noremap \ ,

When using this plugin in VSCode, I put this in my settings.json:

  "vim.leader": ",",
  "vim.normalModeKeyBindings": [
    {
      "before": ["\\"],
      "after": [","]
    }
  ]

the \ doesn't work in f search.

@sql-koala
Copy link
Contributor

@zkerhcy
Give this a try "vim.normalModeKeyBindingsNonRecursive"

@nshen
This could work, provided that you do not have easymotion enabled
nnoremap <leader>, ,

@J-Fields J-Fields added this to the Backlog milestone Oct 15, 2021
@J-Fields J-Fields changed the title How to go prev in f search when comma is the leader key? How to go prev in f search when , is the leader key? Oct 16, 2021
@callistachang
Copy link

@zkerhcy Give this a try "vim.normalModeKeyBindingsNonRecursive"

I tried it and it doesn't work:

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

@elazarcoh
Copy link
Contributor

725dbbc#diff-c9025b7738c54d06625e68c793a12e16ab2310e4df56e9c16e45883f5dea3c4aR128
This seems to be the reason. Not sure why it's like this.
Maybe @J-Fields will have some input, and an idea of how to resolve it (which I can try to implement).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants