in vim, how to set “args” to the result of a “grep -l”?
问题 To illustrate, here's how to do it from the command-line: vim `grep "hello" * -Rl` This opens vim with all the files that have "hello" in them (-l gives the filenames alone). I want to do the same thing, but from within vim. Conceptually, something like this (which doesn't work): :args !grep "hello" * -Rl I'm open to completely different approaches to achieve this; I'd just like it to be on one line (so it's easy to edit and redo). The answer is to simply use backticks - but with a key