bug: count + k (upward jump) is inaccurate when vim.foldfix is true and word wrap is enabled
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 vim.foldfix is set to true and Line Wrap is enabled, vertical movement using count + k (relative line jumps) becomes inaccurate. The cursor fails to land on the line indicated by the relative line number. This issue is consistently reproducible in .tex files and untitled files.
To Reproduce
Steps to reproduce the behavior:
- Create a new Untitled file (or open a
.texfile) and paste several lines of text. - Enable Line Wrap in settings (
"editor.wordWrap": "on"). - Set
"vim.foldfix": trueinsettings.json. - Use a count to jump upward, e.g., type
10k. (across a wrapped line) - See error: The cursor lands on the wrong line (offset from the expected relative line number).
Expected behavior
The cursor should move precisely to the relative line number specified by the count, even when foldfix is enabled and lines are wrapped.
Screenshots
(I first typed "k, k", it looks good; then I typed "2, k", it works like "2, g, k")
Environment (please complete the following information):
- Extension (VsCodeVim) version: 1.32.4
- Cursor Version: 0.45.11 (Universal) / VSCode version: 1.96.2
- OS: macOS 15.6 24G84 arm64
Additional context
no
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the problem in an untitled file and a .tex file with editor.wordWrap set to on and vim.foldfix set to true. Start by tracing the count+k movement behavior and compare wrapped versus unwrapped lines. Done means a command such as 10k lands on the precise relative line indicated by the count.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript, vscode
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100