VSCodeVim / VSCodeVim/Vim

Normal mode commands H and L no longer accepts a number before the command

Open
#9,327 0 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 in normal mode, the commands H and L do not honor numbers entered before the command

To Reproduce

  1. Go to normal mode
  2. Press 6 followed by H

Same goes for the L command

Expected behavior
The cursor should go to the 6th line below the top of the current screen, and should not scroll.

** Actual behavior**
The cursor goes to the line that was at the top of the screen, and scrolls up.

Environment (please complete the following information):

  • Extension (VsCodeVim) version:
  • VSCode version: 1.94.0
  • OS: Mac and Linux

Additional context
N/A

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 tracing normal-mode handling for the H and L commands and how numeric prefixes are passed to them. Reproduce the issue with 6H and 6L in VSCodeVim, then verify that each command moves the cursor to the corresponding screen line without scrolling.

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.