Skip to content

Vim window switching <C-w>-h/<C-w>-l stops working when clearing up ctrl+w ctrl+j key shortcut #8833

@ghost

Description

Describe the bug
Clearing up ctrl+w ctrl+j binding also implicitly prohibits from switching between text editors with <C-w>-h/<C-w>-l. Ex

To Reproduce
Steps to reproduce the behavior:

  1. Open text editor with keybindings.json and define it as
[
    {
        "key": "ctrl+w ctrl+j",
        "command": "",
    },
]
  1. Save changes to keybindings.json
  2. Enter vim command vsp to split the current keybindings.json into 2 different text editors
  3. Press <C-w>-h/<C-w>-l to focus different text editors of recently opened keybindings.json.
  4. Notice The key combination (Ctrl+W, L) is not a command message.

Expected behavior
Clearing up ctrl+w ctrl+j binding should not affect the behavior of <C-w>-h way of switching between text editors.

Screenshots
vim

Environment (please complete the following information):

  • Extension (VsCodeVim) version: 1.27.2
  • VSCode version: 1.85.1
  • OS: Linux Ubuntu

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions