VSCodeVim / VSCodeVim/Vim

Vimrc file changes do not take effect

Open
#8,377 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

Describe the bug
When a vimrc file is initially, keymaps work fine. However, when some changes are made to those keymaps in the vimrc file, those change do not take effect (even after resetting the settings or reinstalling the extension). Seems like the the content of the file is cached somewhere.

To Reproduce
Steps to reproduce the behavior:

  1. Create a vimrc file and keymaps into it
  2. Set vimrc.enable and vimrc.path to load a vimrc file
  3. Make changes to the keymaps in the vimrc file
  4. Reload vscode
  5. See error: old keymaps are still active

Expected behavior
Updated keymaps should take effect in the editor

Environment

  • Extension (VsCodeVim) version: 1.25.2
  • VSCode version: 1.77.3
  • OS: Windows 10

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

The payload names no source file or test. Reproduce the issue with a vimrc and changed keymaps, then trace the VSCodeVim vimrc loading path for cached state; done means reloading VS Code applies the updated keymaps.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.