VSCodeVim / VSCodeVim/Vim

Support Command Line Macro

Open
#8,378 0 comments 1 reaction 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

Can you support macro in command line mode?
Specific reference is as follows:

https://github.com/iggredible/Learn-Vim/blob/master/ch09_macros.md

Running @a in normal mode is not the only way you can execute macros in Vim. You can also run :normal @a command line. :normal allows the user to execute any normal mode command passed as argument. In the case above, it is the same as running @a from normal mode.

The :normal command accepts range as arguments. You can use this to run macro in select ranges. If you want to execute your macro between lines 2 and 3, you can run :2,3 normal @a.

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 reading the linked Learn Vim macros reference and tracing the command-line handling for :normal. Implement support for executing @a-style macros through :normal, including the specified line ranges such as :2,3 normal @a. Done means macros execute from command-line mode both without a range and across a selected range.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
cli
Issue type
Feature
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.