On 03/12/08 15:09, Shade - wrote:
> Hi!
>
> Two of my friends made a really nice plugin. With this plugin you can
> just use
>
> :Findmate nameoffile
>
> And it looks trough the folders and subfolders that you are at,
> searching for files with that name. Displaying it in a list. And then
> you can just press 1-X in order to open the file that you desire.
>
> But i don't know why it doesn't work with Windows (I already installed
> perl in order for it to work). It keep saying Can't find string terminator.
>
> Can anybody help me with it please? I already gave up :(
>
> Here is the plugin: http://www.masquesoft.net/vim/findmate.vim
>
> Thanks all in advance.
To find all files with a given name at any depth in the current
directory or below, you need neither perl nor a plugin. Nor any
particular external program, in fact. Just use
:vimgrep /\%1l/ **/filename.ext
It will generate a list of matches which you can open with
:copen
You can then jump to any match by hitting Enter on the appropriate line.
Or you can view all matching files in sequence by means of
:cnext
:cprev
:cfirst
:clast
(for next, previous, first and last match respectively, of course). See
":help quickfix.txt" for details. The idea of the vimgrep command above
is to match "the first line" of any file of the given name at any depth
(since we have to match "something" in the file's contents).
Best regards,
Tony.
--
Experience is what you get when you don't get what you want.
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---