News for hackers. Stuff that matters.
Re:Mastering Bash and Terminal by u801e on Saturday January 14, 2017 @05:49PM (#13401057)
I know that vim has the built in :grep command that does what you describe. The results are listed in the preview window and pressing enter will open the corresponding file and place the cursor at the desired line.
Re:Mastering Bash and Terminal by EvilTerran on Saturday January 14, 2017 @06:25PM (#13401246)
Well, yes... okay, maybe that was a poor choice of example, :grep is probably more ergonomic for that particular use case.

The trick I described is more for when you're dealing with some unusual program that wouldn't work with :grep - at least not without fiddling with 'grepprg' to invoke it, and/or 'grepformat' to correctly interpret its output.

Re:Mastering Bash and Terminal by blockloop on Saturday January 14, 2017 @06:27PM (#13401255)
There is also a silver searcher plugin for vim (ag).