question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot remap move pane keybinds

See original GitHub issue

Is this a BUG REPORT or FEATURE REQUEST? (choose one):

I’m not sure. bug or just question.

What happened:

I remapped move pane to right/left/up/down keybinds to ctrl-l/h/k/j only in a Normal mode like below.

  {
    "key": "ctrl+h",
    "command": "extension.vim_navigateLeft",
    "when": "vim.active && editorTextFocus && vim.mode == 'Normal' "
  },
  {
    "key": "ctrl+l",
    "command": "extension.vim_navigateRight",
    "when": "vim.active && editorTextFocus && vim.mode == 'Normal'"
  },

But after upgraded to latest version of this extension, I got error messages like command 'extension.vim_navigateLeft' not found.

I was found some commands changes in #2600, But I don’t know how to reconfig the keybinds.

What did you expect to happen:

I’d like to use ctrl-l/h/k/j keybinds in Normal mode for move pane.

How to reproduce it (as minimally and precisely as possible):

Environment:

  • Extension (VsCodeVim) version: v0.11.6
  • VSCode version: Version 1.23.0 (1.23.0)
  • OS version: macOS 10.13.4

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:15 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
eysi09commented, Jun 25, 2018

Quick update since I ran into this again, but otherModesKeyBindingsNonRecursive is now normalModesKeyBindingsNonRecursive as per #2726.

So for completeness, in your USER SETTINGS you’ll need:

  "vim.normalModeKeyBindingsNonRecursive": [
    {
      "before": ["<C-h>"],
      "after": ["<C-w>", "h"]
    },
    {
      "before": ["<C-l>"],
      "after": ["<C-w>", "l"]
    }
  ],
3reactions
eysi09commented, May 14, 2018

@kdnk You’re right, it does work. Thanks!

For anyone else who stumbles into this, you must remove the corresponding keybindings from keybindings.json and add the snippet above.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to remap keys on ANY KEYBOARD | Windows 10
Well, with this simple tool you can remap one or more keys to... ... Your browser can't play this video. Learn more. Switch...
Read more >
Shortcuts, Hotkeys, Macros, Oh My: How to Remap Your ...
Click Keyboard Manager, then select Remap a key to re-assign individual keys or Remap a shortcut to assign hotkey combinations to a single...
Read more >
How to remap <C-W>hjkl to navigate tmux panes and ...
I'd like to use default key bindings to move between vim and tmux splits. Which is <C-W>hjkl . But it isn't working. Either...
Read more >
Remapping the keyboard
To access the Keyboard window, either click the Remap button on the toolbar, click Edit > Preferences > Keyboard, or click Keyboard in...
Read more >
How can I change keyboard shortcut bindings in Visual ...
Keep in mind you can type things like shift ctrl c in the Search input in Keyboard Shortcuts panel to find commands by...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found