VSCodeVim / VSCodeVim/Vim

Selecting and moving page up/down then pressing j/k jumps cursor

Open
#2,374 0 comments 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

BUG REPORT

What happened: Going into visual mode by selecting a line with shift+v then moving up half a page using ctrl+u then pressing j or k, the cursor jumps back to the original start position messing up the section.

What did you expect to happen: when pressing j k the cursor moves up or down increasing or decreasing the selction area.

How to reproduce it (as minimally and precisely as possible):
shift+v (select line)
ctrl+u (multiple times so the cursor moves to the edge of the screen)
j or k

Environment

  • Extension (VsCodeVim) version: v0.10.13
  • VSCode version: Version 1.20.0 (1.20.0)
  • OS version: macOS 10.13.3

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 reproducing the sequence in VS Code: Shift+V, Ctrl+U until the cursor reaches the screen edge, then j or k. Compare the selection and cursor positions before and after the final movement, and verify that j/k extend or shrink the selection instead of returning to its original start position.

Written by the indexing model from the issue text.

Assessment

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