Skip to main content
1 of 2
Timothy Martin
  • 8.9k
  • 1
  • 37
  • 40

Your command is almost there. Adding a hyphen to your command seems to do the trick.

grep foo file_names | vim -
Timothy Martin
  • 8.9k
  • 1
  • 37
  • 40