I am trying to stage all files matching a pattern from the fugitive status window (:G).

I tried something like :g/<pattern>/:normal s but for some reason, only the first matching file is staged. Is there any way to achieve this?

  • 1
    Probably the issue is that things get moved around in the buffer. You could probably do something like :G add glob as a workaround.
    – D. Ben Knoble
    Commented Jan 18, 2022 at 21:57


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.