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 give
If you use git, results are often more meaningful when you search only in the files tracked by git. To open files at the given line which is a search result of git grep
in vim you will need the fugitive plugin, then
:copen
:Ggrep pattern
Will give you the list in a buffer and you can choose to open files from your git grep results.