VSCodeVim / VSCodeVim/Vim

repeating movement, deletion with high numbers cause slowness Caused by Foldfix setting

Open
#2,914 1 comment 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Describe the bug
Repeating movement or deletion with high numbers such as 50j, or d50j executes slowly. Cursor goes through each line while deleting, rather than one single deletion.

To Reproduce
While inside a long document normal mode, use any movement key with high iteration. 100j 200k d100j

Expected behavior
A single and fast jump of cursor, or single deletion.

Ensure you are on the latest VSCode + VSCodeVim

  • Extension (VsCodeVim) version: 0.15.7
  • VSCode version: 1.25.1
  • OS: xcfe manjaro linux with i3
  • FileType: JS / Reactjs. I didn't test others

Edit 1:
I have located that it is caused by foldfix setting. How to solve it is still a mistery.

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 slowdown in VSCodeVim using a long document and the foldfix setting, then compare repeated movement such as 100j or 200k with deletion such as d100j. Investigate how foldfix affects these operations; done means high-count movement and deletion execute as a fast jump or single deletion rather than traversing each line.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vscode
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 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.