Let's say, I want to search for email addresses and output them to a new file. What I can do so far with a help from another discussion is this:
g/pattern/.w! >> output.txt
but that saves whole lines where search matches occur. Is it possible to extract just the matches (with possibility for them to be multiple on one line)? I would prefer a solution (if possible) without some additional plugins or macros.