VSCodeVim / VSCodeVim/Vim

Problems recording macros

Open
#4,528 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

area/macro kind/bug status/needs-more-info
Dominant language
TypeScript
Stars
15.2k
Forks
1.5k
Avg merge
3d 18h
Merged PRs (30d)
6

Description

Issue Type: Bug

Hello, first of all, thank you for this great extension that allows us to use the power of vim on vscode.
I am having some problems with macro recording. I usually use the q slot, but macro recording is not starting until a random keystroke.
So, I just hit qq to start recording a macro, then I execute the first command like d and it starts recording on macro slot d instead of making it the first command of the macro.

Not sure what triggers this. Can it be related with the change of the bottom bar color for normal vs visual vs insert mode?

Regards

Extension version: 1.12.4
VS Code version: Code 1.41.1 (26076a4de974ead31f97692a0d32f90d735645c0, 2019-12-18T14:57:51.166Z)
OS version: Darwin x64 19.2.0

System Info
Item Value
CPUs Intel(R) Core(TM) i9-8950HK CPU @ 2.90GHz (12 x 2900)
GPU Status 2d_canvas: enabled
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
protected_video_decode: unavailable_off
rasterization: enabled
skia_renderer: disabled_off
surface_control: disabled_off
surface_synchronization: enabled_on
video_decode: enabled
viz_display_compositor: enabled_on
viz_hit_test_surface_layer: disabled_off
webgl: enabled
webgl2: enabled
Load (avg) 4, 3, 3
Memory (System) 32.00GB (0.07GB free)
Process Argv
Screen Reader no
VM 0%

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 macro recording with qq, then d, using the reported VS Code and extension versions if available. Trace the key handling and macro recording entry points; done means the first command is recorded in register q rather than switching to register d.

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.