VSCodeVim / VSCodeVim/Vim

case sensitive flag "I" in substitute is wrong

Open
#7,750 1 comment 4 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

Describe the bug
A clear and concise description of what the bug is.

test
Test

when input ":%s/test/haha/I" above content change to

haha
haha

Expected behavior

haha
Test

Expected behavior

Screenshots
image

image

Environment (please complete the following information):

  • Extension (VsCodeVim) version:v1.22.2
  • VSCode Version: 1.67.2 (Universal)
    Commit: c3511e6c69bb39013c4a4b7b9566ec1ca73fc4d5
    Date: 2022-05-17T18:20:57.384Z
    Electron: 17.4.1
    Chromium: 98.0.4758.141
    Node.js: 16.13.0
    V8: 9.8.177.13-electron.0
    OS: Darwin arm64 21.3.0
  • OS: Mac
image

Additional context
I try vim of terminal, :s flag "I" is ok

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

No source file or test is named. Reproduce :%s/test/haha/I in VSCodeVim using the reported JavaScript buffer and compare it with terminal Vim; then locate the substitute-command handling and add coverage for the expected result, where only the first lowercase “test” changes while “Test” remains unchanged.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
tooling
Issue type
Bug
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.