How do you record a macro to copy lines matching a pattern to end of file?
Answer
qa/pattern\nyy}pq
Explanation
Record a macro that searches for a pattern, yanks the matching line, goes to the end of the paragraph, and pastes it. Collects matching lines.