Vim icon indicating copy to clipboard operation
Vim copied to clipboard

try to configure keybinding -> told key combination doesn't exist

Open chris-schmitz opened this issue 6 years ago • 4 comments

Describe the bug When I configure a key binding and try to use it I'm told that the key combination doesn't exist.

To Reproduce Steps to reproduce the behavior:

  1. Open user settings
  2. Add in the following configuration:
"vim.normalModeKeyBindingsNonRecursive": [
    {
      "before": [
        "<leader>",
        "l"
      ],
      "commands": [
        "workbench.action.focusRightGroup"
      ]
    }
  ]
  1. Open two editor groups (split panes)
  2. Make sure your left group is active
  3. Try to use the cmd+k l to switch to the right group
  4. See error message in the bottom bar: Screen Shot 2020-01-28 at 9 59 05 AM

Expected behavior I expected that the right editor group would become the focus. and I'd be able to start editing in it's active file

Screenshots key binding errors

Environment (please complete the following information):

  • Extension (VsCodeVim) version: 1.12.4
  • VSCode version: 1.41.1
  • OS: Mac 10.14.6

chris-schmitz avatar Jan 28 '20 16:01 chris-schmitz

Hi, do have set "cmd+k" as your leader for vim? Afaik, that is used for many regular/nonvim keybindings and I dont think its a good idea to use it as leader. You should be able to create your keybinding like this (normal vscode way): grafik

sql-koala avatar Jan 28 '20 17:01 sql-koala

Oh! interesting let me check.

chris-schmitz avatar Jan 28 '20 17:01 chris-schmitz

🤦‍♀ Ah, yeah the leader key in my vim config is \.

Screen Shot 2020-01-28 at 11 38 10 AM

I didn't realize that regular vscode had leader keys, and when I look at my keyboard shortcuts it's obvious :P

Screen Shot 2020-01-28 at 11 39 02 AM

Thanks for pointing this out!!! It's interesting, my pane navigation worked months ago. I assumed it was just something that the vim extension added in. I'm remembering now that it "stopped working" after a vscode update. In that update either my shortcut bindings must have been reset or that specific binding must have changed.

Thanks again!

chris-schmitz avatar Jan 28 '20 17:01 chris-schmitz

Bitte, kein Problem ;-)

sql-koala avatar Jan 29 '20 15:01 sql-koala