VSCodeVim / VSCodeVim/Vim

My VS Code Vim becomes super slow after messing up the macros (maybe?)

Open
#5,339 4 comments 1 reaction 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
I was trying some macros in multi-cursor mode today. It failed miserably and froze my VS Code. I killed my VS Code and did a restart, however, hitting Esc now takes 3-5 seconds to switch mode which makes the editor completely unusable and I don't know how to fix it...

To Reproduce
Steps to reproduce the behavior:

  1. I recorded a simple macro that uses vim-surrounds to add quotes to some word
  2. I used change all occurrence command to enter the multi-cursor mode
  3. I replay the macro using '<,'> normal @a
  4. The editor froze and is trying to do something I don't understand (my indentation switch from space to tabs somehow during the process)
  5. I killed the editor and restarted it
  6. Hitting Esc now takes 3-5 seconds to switch mode
  7. Restarting laptop and turn off all other extension doesn't solve the issue. Now everything is slow even on small file with only Vim extension activated
  • Extension (VsCodeVim) version: 1.17.1
  • VSCode version: 1.15.0-insider
  • OS: Win10

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 macro and multi-cursor sequence in VSCodeVim with the reported versions, then measure the delay when pressing Esc after restarting. Check whether the slowdown persists with only the Vim extension enabled. Done means the reported freeze or 3–5 second mode-switch delay is explained and a regression test or confirmed fix is available.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vscode
Domain
devtools, performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.