Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Feature: Replacement Preview

Open
#160 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

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

Research direction

No files or tests are named. Start by locating the existing substitute-command handling and its tests, then compare the current behavior with the described staged previews for :%s/foo, :%s/foo/bar, and :%s/foo/bar/g; done means those previews work consistently and are covered by tests.

Written by the indexing model from the issue text.

Description

VsCodeVim has a neat feature of previewing replacement commands.

While writing :%s/foo, it will highlight all occurrences of foo (1 per line).
When proceeding with :%s/foo/bar it will keep the highlight on the previously marked words, but they will now be visibly changed to bar.
Similarly, adding the finishing :%s/foo/bar/g, it will apply that preview to multiple occurrences per line.

I think that's a great way of knowing if the regex you're trying to replace works as intended.

Would that be a feature that would also fit CodeMirror Vim?

Dominant language
JavaScript
Stars
473
Forks
54
PR merge metrics
No merged PRs in 30d

Getting set up

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No 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.

More from replit/codemirror-vim

All issues in replit/codemirror-vim

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.