Vim: open files of the matches on the lines given by Grep?

Posted by HH on Stack Overflow See other posts from Stack Overflow or by HH
Published on 2010-04-16T13:55:47Z Indexed on 2010/04/17 3:13 UTC
Read the original article Hit count: 272

Filed under:
|

I want to get automatically to the positions of the results in Vim after grepping, on command line. Is there such feature?

Files to open in Vim on the lines given by grep:

% grep --colour -n checkWordInFile *
SearchToUser.java:170:  public boolean checkWordInFile(String word, File file) {
SearchToUser.java~:17:  public boolean checkWordInFile(String word, File file) {
SearchToUser.java~:41:          if(checkWordInFile(word, f))

© Stack Overflow or respective owner

Related posts about vim

Related posts about grep