http://www.perlmonks.org?node_id=501444


in reply to Re: question for perl book & magazine authors
in thread question for perl book & magazine authors

In vim, the command :g/re/p (where g means "global", re is clearly "regex" and p means "print") will find all lines matching the regex and print them in a list. This was apparently true of vim's predecessors as well, but it's still a valid (and useful) command in vim today. See also Wikipedia.