Friday, February 4, 2011

Re: Using vimgrep

On Fri, Feb 4, 2011 at 1:31 PM, Michael(Xi Zhang)
<michaelxmail@gmail.com> wrote:
> Hi  ,
>
> We use vimgrep command like this : vimgrep pattern *.c
>
> I have some other projects with different search folder.
>
> Is there some way vimgrep can read the 'search folders' in a file, likethis:
>
> vimgrep pattern file_folder
>
> file_folder is a file that contains the folder that want vimgrep to search.
>
> Sincerely,
>
> Michael

you probably want... vimgrep pattern file_folder/*.c

maybe more useful is going through all sub folders recursively...
vimgrep pattern file_folder/**/*.c

--
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

No comments: