How do you print all lines matching a pattern? :g/pattern/p Use :g/pattern/p to print all matching lines. category: command-line tags: #command-line #print #matching