VSCodeVim / VSCodeVim/Vim

`g$` is not consistent with how vim works for lines that don't wrap

Open
#4,486 0 comments 0 reactions 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

Describe the bug
In vim g$ goes to the end of the screen when you have a long line, but it goes to the end of the line when using this extension.

To Reproduce
Steps to reproduce the behavior:

  1. Create a line that extends past the end of the screen without word-wrap enabled.
  2. Go to the beginning of the line (e.g., press 0 in normal mode).
  3. Hit g followed by $.

Expected behavior
I would expect that the cursor goes to the end of the screen (with the remainder of the line staying "off screen").

Screenshots
Expected:
image

Actual:
image

Environment (please complete the following information):

  • Extension (VsCodeVim) version: 1.12.4
  • VSCode version: 1.41.1
  • OS: Windows 10

Additional context
NA

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

The issue names no implementation file or test. Start by locating the handling for the g$ normal-mode command in the VSCodeVim extension, then reproduce the described long, unwrapped-line case and compare it with Vim; done means the cursor stops at the visible screen edge rather than the line end.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vim, 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.