VSCodeVim / VSCodeVim/Vim

Repeat of Visual Block edit is directional

Open
#9,645 0 comments 2 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
The repeat of an edit from visual block is not repeated on the same lines if the selection is made from the bottom upwards.

To Reproduce
Steps to reproduce the behavior:

  • Open a document with multiple lines
  • Press CTRL+Q to make a visual block slection.
  • Press up or K a couple of times to select multiple lines.
  • Press SHIFT+A to append the selection and type something.
  • Go back to normal mode by pressing escape.
  • Repeat the last action by pressing "."
  • The lines will be added from the cursor upwards instead of on the same lines.

Expected behavior
I expect the repeat to be executed on the same lines as the previous action regardless of the selection was done upwards or downwards, this is the behavior Vim has.

Screenshots
Image

Environment (please complete the following information):

  • Extension (VsCodeVim) version: 1.29.2
  • VSCode Version: 1.100.23258 (system setup)
    Commit: 557d9224936804f4aeb93625d7a45c97113627e4
    Date: 2025-05-15T18:24:23.128Z
    Electron: 34.5.4
    ElectronBuildId: undefined
    Chromium: 132.0.6834.210
    Node.js: 20.19.0
    V8: 13.2.152.41-electron.0
    OS: Windows_NT x64 10.0.19045

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 issue with the documented CTRL+Q, upward selection, SHIFT+A, Escape, and repeat sequence. Trace how visual-block selections and repeated actions preserve their direction, then compare upward and downward selections against Vim's behavior. Done means repeating either selection direction edits the same lines as the original action, with regression coverage for both directions.

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.