VSCodeVim / VSCodeVim/Vim

Slow search in large files when either hlsearch or incsearch is enabled

Open
#8,954 0 comments 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

With both hlsearch noincsearch and nohlsearch incsearch VSCodeVim highlights matches in the entire file after starting a search with /. In large files, this leads to a hang after the first letter is typed since there are many matches. The built-in VS Code text search seems to stop after a predefined number of matches and does not highlight further. With nohlsearch noincsearch there are no highlights and no hang.

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 / searches in a large file with each hlsearch and incsearch combination, then trace the search handling and match-highlighting paths. Compare the behavior with VS Code text search, especially its match limit. Done means typing the first search character no longer hangs while the intended highlights remain available.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
search
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.