VSCodeVim / VSCodeVim/Vim

Foldfix ignores relative line numbers

Open
#8,775 2 comments 10 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

When having "vim.foldfix": true and relative lines enabled, j and k act like gj and jk.

If you type 39j here instead of going to line number 39 you move down 39 visual lines just like when using 39gj

Screenshot 2023-12-11 200810

What can I do to prevent this behavior while still having foldfix.

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 issue with "vim.foldfix": true, relative line numbers enabled, and counts such as 39j. Start by tracing the foldfix handling and the j/k motion behavior; done means counted motions use logical lines while foldfix still works and the reported case is covered by a regression test.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.