[CLUE-Tech] pipe list of file names to vim

Joe 'Zonker' Brockmeier jzb at dissociatedpress.net
Wed Dec 24 06:01:21 MST 2003


Hey Jeff,

You can do what you want by using Vim's built-in grep function,
simply run 

:grep bob * 

You can navigate to each instance of "bob" with 

:cnext 

or backwards with 

:cprev

(For some reason, the normal :next, :prev, do not work when you've 
opened multiple files this way. Vim will give an error saying that
there is only one file...)

And you can open a window with the list files/instances of "bob" with
:copen, then just use Ctrl-W plus up-arrow/down-arrow to navigate between 
the window with instances of the search term and the files. 

Hope that helps.

Best,
Zonker
--
"Bart, stop pestering Satan!" -- Marge Simpson



More information about the clue-tech mailing list