VSCodeVim / VSCodeVim/Vim

macro does not record cursor moving

Open
#8,248 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
i have a few lines and i am trying to record a macro (e.g., qa..) to run edits on oneline and then goto the next line
so i can run something like 10@a to edit 10 lines.
however, the macro only records the edits but not the moving of cursor to the next line (e.g, j in normal mode)

To Reproduce
Steps to reproduce the behavior:

  1. go to normal mode
  2. press qax<esc>jq
  3. check register a and j is not there in the recorded macro, what i have in register a is just x<esc>
  • Extension (VsCodeVim) version:
  • VSCode version: 1.75.1
  • OS: windows 10

Additional context
Add any other context about the problem here.

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

No source file or test is named. Start by reproducing the reported sequence in VSCodeVim: record qax<esc>jq, then inspect register a and compare it with the expected macro contents. Done means cursor movement with j is retained so replaying the macro can process successive lines.

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.