VSCodeVim / VSCodeVim/Vim

Cursor line flickers when using motions `j` and `k`

Open
#3,351 1 comment 2 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 using motions with j and k the cursor line very clearly flickers. Previous to today, there was no flicker when using motions to move cursor line.

To Reproduce

  1. Position cursor line at top of editor with at least 30 lines of code
  2. 20j
  3. 20k
  4. Go to line 2, repeat going up and down.
    You should observe the cursor line flickering as it transitions 20 lines up, and 20 lines down.

Expected behavior
It should simply "jump" to the mentioned line, there should be no transition or movement.

Environment
VS Code version: Code 1.30.2 (61122f88f0bf01e2ac16bdb9e1bc4571755f5bd8, 2019-01-07T22:48:31.260Z)
OS version: Darwin x64 17.7.0

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 flicker in VS Code using the reported 20j and 20k motions with at least 30 lines visible, then trace the j/k motion handling and cursor-line transition behavior. Done means repeated upward and downward motions jump directly to the target line without flickering.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.