Pretty cool, thanks.
Using the interactive mode, how can I open the selected file in vim instead of just outputting the filename to stdout?
Using the interactive mode, how can I open the selected file in vim instead of just outputting the filename to stdout?
`vim -p $(ag -l some_word)`
The `-p` flag opens each item in a new tab. To open each item in the same tab but different windows*, you can the use `-O` or `-o` flags instead for vertical or horizontal splits, respectively.
*I am not certain if I am using the term 'window' correctly as Vim uses it.
vi `cs`
would do the trick.