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 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 'foo' * | vim" and "grep -l 'foo' * | xargs | vim' but those didn't work. Any ideas?
> >
> > --
>
> vim $(grep -l foo)
>
this is the xargs one
ls ycm* | xargs vim
--
--
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
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/ddbd50ad42431a60e0ec6cf5500a37ae3bfdd831.camel%40omnicell.com.
For more options, visit https://groups.google.com/d/optout.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment