Re: how to call vim on files that are the results of a grep -l command in bash?

2019-05-26 Thread Paul
On Fri, May 24, 2019 at 04:40:54AM -0700, DwigtArmyOfChampions wrote: From a bash shell I can type "grep -l 'foo' *" and that will output a list of files that contain 'foo'. I want to vim that list of files. In other words, assuming the grep command returns file1, file2, ... filen, I want to

Re: how to call vim on files that are the results of a grep -l command in bash?

2019-05-24 Thread Tony Mechelynck
Another possibility is to tell Vim that the file to be read will be found on stdin: grep -l 'foo' | view - One problem with this approach is that using "view" (because stdin is essentially non-writable) will make ":new foobar" open the new file read-only as if you had used :sview rather

Re: how to call vim on files that are the results of a grep -l command in bash?

2019-05-24 Thread Gary Johnson
On 2019-05-24, DwigtArmyOfChampions wrote: > From a bash shell I can type "grep -l 'foo' *" and that will > output a list of files that contain 'foo'. I want to vim that list > of files. In other words, assuming the grep command returns file1, > file2, ... filen, I want to run the command: > >

Re: how to call vim on files that are the results of a grep -l command in bash?

2019-05-24 Thread Tim Chase
On 2019-05-24 04:40, DwigtArmyOfChampions wrote: > From a bash shell I can type "grep -l 'foo' *" and that will output > a list of files that contain 'foo'. I want to vim that list of > files. In other words, assuming the grep command returns file1, > file2, ... filen, I want to run the command: >

Re: how to call vim on files that are the results of a grep -l command in bash?

2019-05-24 Thread arocker
> grep -l 'foo' * | xargs vim > -- Or, if the number isn't likely huge: vim $(grep -l 'foo' *) -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php ---

Re: how to call vim on files that are the results of a grep -l command in bash?

2019-05-24 Thread Kit
grep -l 'foo' * | xargs vim -- Kit 2019-05-24 13:40 GMT+02:00, DwigtArmyOfChampions > I tried "grep -l 'foo' * | vim" and "grep -l 'foo' * | xargs | vim' but > those didn't work. Any ideas? -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the

Re: [Legacy Email] how to call vim on files that are the results of a grep -l command in bash?

2019-05-24 Thread Reid Thompson
On Fri, 2019-05-24 at 04:40 -0700, DwigtArmyOfChampions wrote: > [EXTERNAL SOURCE] > > > > From a bash shell I can type "grep -l 'foo' *" and that will output a list of > files that contain 'foo'. I want to vim that list of files. In other words, > assuming the grep command returns file1, >

Re: [Legacy Email] how to call vim on files that are the results of a grep -l command in bash?

2019-05-24 Thread Reid Thompson
On Fri, 2019-05-24 at 07:50 -0400, Reid Thompson wrote: > On Fri, 2019-05-24 at 04:40 -0700, DwigtArmyOfChampions wrote: > > [EXTERNAL SOURCE] > > > > > > > > From a bash shell I can type "grep -l 'foo' *" and that will output a list > > of files that contain 'foo'. I want to vim that list of

how to call vim on files that are the results of a grep -l command in bash?

2019-05-24 Thread DwigtArmyOfChampions
>From a bash shell I can type "grep -l 'foo' *" and that will output a list of >files that contain 'foo'. I want to vim that list of files. In other words, >assuming the grep command returns file1, file2, ... filen, I want to run the >command: vim file1 file2 file3 ... filen I tried "grep -l