On Dec 3, 7:54 pm, Andy Wokula <[email protected]> wrote:
> James Kanze schrieb:
> > I've recently started working on a Windows platform, and I'm
> > having some problems that, IIRC, worked correctly (i.e. did
> > what I expected) on Unix platforms.  In particular:

> >     :args ! egrep -l 'some string' *.{h,cpp}

> > I expect this to set the file list to all of the files
> > containing "some string" (for later use with argdo, for
> > example); I use this a lot when "modernizing" C++ sources.
> > Under Windows, I end up with "new file !" or something along
> > those lines.

> > I've installed CygWin, and set vim up so it uses bash as its
> > shell.

> > What do I have to do to get this to work?  I need it fairly
> > badly, since I have to deal with a large body of existing code,
> > in which I often have to make global changes.

> I think you want backtick expansion:
>     :args `egrep -l 'some string' *.{h,cpp}`
>
>     :h `-expansion

Yep.  That seems to work.  I remembered doing this under Unix;
apparently, I misremembered the syntax I'd used.  It's working
fine now, thanks.

--
James Kanze

-- 
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php

Reply via email to