VSCodeVim / VSCodeVim/Vim

Support `:g[lobal]/[pattern]/[command]`

Open
#3,010 10 comments 30 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area/commandline kind/feature status/works-with-neovim
Dominant language
TypeScript
Stars
15.2k
Forks
1.5k
Avg merge
3d 18h
Merged PRs (30d)
6

Description

One of the main reasons I love VIM so much is the option to do "g/console.log/d" to clear out all the lines with console.log on my scripts, is there any chance of supporting it?

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 locating the command-processing entry point for Vim ex-style commands and trace how search patterns and commands are currently parsed. Implement support for the requested :g[global]/[pattern]/[command] form, including the example that deletes matching lines, and verify that global commands behave as expected.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.