VSCodeVim / VSCodeVim/Vim

Option to not move cursor during scroll (`<C-d>` / `<C-u>`)

Open
#3,577 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

kind/bug
Dominant language
TypeScript
Stars
15.2k
Forks
1.5k
Avg merge
3d 18h
Merged PRs (30d)
6

Description

Is your feature request related to a problem? Please describe.
When scrolling using ctrl + d/ctrl + u, the cursor is moved around together with the scroll, staying always in the same position relative to the screen, and not in the line it was originally.

Describe the solution you'd like
I would like it it stay at the same place always, just like regular scrolling with the mouse. There's actually an option for this when making a key-bind for scrolling in VSCode, but I would like it implemented in Vim scrolling.

Describe alternatives you've considered
The current alternative I'm using is making a custom key-bind in VSCode which has this option, but I would like for us to have this option in the Vim plugin so that we don't need to override it or create a different hotkey.

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 locating the Vim keybinding and scroll-command handling for and in the TypeScript extension. Compare its cursor behavior with regular mouse scrolling and the VS Code behavior described in the issue. Done means an option can preserve the cursor's original document position while scrolling, without requiring a replacement keybinding.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
developer-experience, tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 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.