VSCodeVim / VSCodeVim/Vim

Vim is disabled after performing a VsCode Action (especially Change Color Scheme)

Open
#4,302 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
15.2k
Forks
1.5k
Avg merge
3d 18h
Merged PRs (30d)
6

Description

In my settings the vim extension is disabled like this

   "vim.disableExtension": true,

and I enable it manually with the command ⌘ + ⇧ + P VIM: Toggle VIM Mode.
Once enabled everything works until I change the color scheme, which turns off the Vim Mode.

To Reproduce

  1. Vim is disabled in settings
  2. Enable vim: VIM: Toggle VIM Mode
  3. Open a file
  4. make sure to be in normal mode (in status line -- NORMAL -- is shown)
  5. Change color scheme: ⌘K ⌘T -> select another scheme
    Now Vim Mode is disabled, even the status line still shows -- NORMAL --
    e.g. by pressing w, w is literally add to the file instead of moving to the next word

Expected behavior
Vim mode is still enabled after changing color scheme.

  • Extension (VsCodeVim) version: 1.11.3
  • VSCode version: 1.40.2
  • OS: MacOS Mojave 10.14.6

Additional Notes
I'm think there are other actions (despite changing the color scheme) that disable the vim extension as well.
I'm might came across such issues, but right now have no example.

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

Reproduce the issue in VS Code 1.40.2 with VsCodeVim 1.11.3 by disabling Vim, toggling it on, and changing the color scheme. Start by tracing the VIM: Toggle VIM Mode command and the color-scheme action; done means Vim remains enabled and w moves to the next word after the scheme changes.

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
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.