Skip to content

Vim Mode :g/pattern/norm commands only works on the last match #36359

@SafariKnight

Description

@SafariKnight

Summary

:g when paired with :norm only works on the last match

Description

Steps to reproduce:

  1. Enable Vim Mode "vim_mode": true
  2. Open a new empty file :new or ctrl-w n
  3. Write inside the file
foo

foo
  1. Run the command :%g/foo/norm Abar (in the entire file on every occurence of foo, append bar to the end of the line)

Expected Behavior:
You should end up with

foobar

foobar

Actual Behavior:
You end up with

foo

foobar

Even though :%g should match in the entire file

Zed Version and System Specs

Zed: v0.199.6 (Zed)
OS: Linux Wayland nixos 25.11
Memory: 15.5 GiB
Architecture: x86_64
GPU: AMD Radeon RX 6650 XT (RADV NAVI23) || radv || Mesa 25.2.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:parity/vimFeedback for Vim parity featuresstate:reproducibleVerified steps to reproduce included and someone on the team managed to reproduce

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions