That's more of a backronym, really. It actually comes from the relatively ancient ed line editor's command g/re/p which basically means "global search / for a regular expression / print matching lines". So it's at least a fairly accurate backronym to the source.
The g command still sort of lives on in vi/Vim's ex mode commands. The most common use these days is probably for g/pattern/d, which does a global search for the pattern and deletes matching lines, sort of the opposite of the original g/re/p command.
That's more of a backronym, really. It actually comes from the relatively ancient
edline editor's commandg/re/pwhich basically means "global search / for a regular expression / print matching lines". So it's at least a fairly accurate backronym to the source.The
gcommand still sort of lives on in vi/Vim's ex mode commands. The most common use these days is probably forg/pattern/d, which does a global search for the pattern and deletes matching lines, sort of the opposite of the originalg/re/pcommand.Oh, I didn't know that! Thanks!