VSCodeVim / VSCodeVim/Vim

extension.vim_escape command doesn't work

Open
#6,107 11 comments 6 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area/remap status/user-error
Dominant language
TypeScript
Stars
15.2k
Forks
1.5k
Avg merge
3d 18h
Merged PRs (30d)
6

Description

Describe the bug
the command "extension.vim_escape" doesn't work since version 1.18.0, and falling back to version 1.16.0 could fix this.

To Reproduce

  1. Install VSCode(I use VSCodium but it should not matter)
  2. Install VSCodeVim (version >= 1.18.0)
  3. Open Settings in json mode, edit settings.json like following:
    {
        "vim.insertModeKeyBindings": [
            {
                "before": [
                    "<C-i>"
                ],
                "commands": [
                    // some other commands (optional)
                    "extension.vim_escape"
                ]
            }
        ]
    }
    
  4. Save settings.json, and enter i to get into insert mode, then enter Control + I
  5. Vim mode should change to normal mode, but nothing occurs (I am sure the command is emitted)

Expected behavior
Vim mode should change to normal mode.

Environment (please complete the following information):

  • Extension (VsCodeVim) version: 1.18.9
  • VSCodium version: 1.52.1
  • OS: Linux x64

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the extension.vim_escape command through the vim.insertModeKeyBindings setting, using the listed VSCodeVim 1.18.9 and VSCodium environment. Trace the command from that keybinding entry point and verify that pressing Control+I in insert mode changes Vim to normal mode without reverting to version 1.16.0.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vscode
Domain
developer-experience, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.