VSCodeVim / VSCodeVim/Vim

The extension ignores folded/collapsed state of text blocks

Open
#9,905 2 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

Describe the bug
When there are folded/collapsed blocks of text, cursor move commands don't skip over folded blocks.

To Reproduce
Steps to reproduce the behavior:

  1. Collapse/fold some blocks of text.
  2. Go through folded block (from top to bottom or bottom-up) - instead of skipping the block, the editor expands the block and moves cursor through it.
  3. Use other cursor moves such as 'H', 'L', 'Z' (move to top/bottom/middle of screen) - cursor stops at folded block as if it has stopped at a line inside the block, instead of using only the visible part of text.

Expected behavior
I expect the cursor to skip over collapsed blocks.

Environment (please complete the following information):

  • Extension (VsCodeVim) version: 1.32.4
  • VSCode version: 1.108.1
  • OS: Windows 11

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 issue in VSCode 1.108.1 with folded text blocks, then compare cursor movement through collapsed blocks with the H, L, and Z commands. Done means cursor movement skips collapsed blocks and screen-position commands use only visible text without expanding or stopping inside folded content.

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.