Hi there,
I wonder if there is any "grep" like counterpart for the ":find" command in vim. Today, ":find" helps one find any file in the 'path'. It would be nice to perform a search for a pattern in the files reachable via 'path'. I could then invoke, say,
:findgrep /mypattern/ **/*def.h
..to grep for "mypattern" in files reachable via 'path' that ends in "def.h".
I tried to script it by passing the filenames to ":vimgrep" using:
:exe 'vim/mypattern/'. join(getcompletion('**/*def.h', 'file_in_path'), " ")
..but getcompletion() sometimes does not give me the full path leading to errors.
Regards,
-Arun