VSCodeVim / VSCodeVim/Vim

scripting :%substitute

Open
#8,650 1 comment 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

Discussed in https://github.com/VSCodeVim/Vim/discussions/8374

Originally posted by IamJimbus April 15, 2023
I am getting much better at my regex/substitute work, converting access queries into SQL Server views to create SSRS reports, sometimes there's 15-20 queries per report. I've got it down to 6 or so :%s//g commands that I loop through and I'd like to set these up in some sort of script or macro to manage and execute them. How would I do this in this Vim?

TiA,

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

Review discussion 8374 and the issue's described sequence of :%s//g commands to determine whether a scripting or macro workflow is being requested. A concrete change target, relevant files, and acceptance criteria are not provided, so implementation cannot be started from this issue alone.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vim
Domain
tooling
Issue type
Documentation
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.