Christian, first of all, thanks for this tips.
But I guess I haven't explained my good intentions clear enough)
If one writes :cexpr glob("**/*.txt"), he'll get a quickfix list with
output like this:

1 || text1.txt
2 || text2.txt
3 || text3.txt

and so on.
This output looks great and trustworthy but actually (if I'm not
mistaken)
there are still some issues.

we can't choose file and press enter, neither we can call :cc command.
Yes, it is de facto quickfix list, but, I should say, probably, rather
useless kind of quickfix list.
Or am i wrong?

On 22 ноя, 22:22, Christian Brabandt <[email protected]> wrote:
> Hi Shagen!
>
> On So, 22 Nov 2009, Shagen Ogandzhanjan wrote:
>
> > The task is to fetch all files matching pattern (for instance, matching some
> > file extension)
> > and to place all into the quickfix list (or location list, I don't mind).
>
> > The only way personally I know is to write something like this:
> >  *:vim /\%1l/j **/*.xml*
>
> How about
> :cexpr glob("**/*.txt")
>
> See the help for :cexpr. You can also use :lgetexpr and use the location
> list instead or use :cad to add the result to the quickfix list.
>
> Mit freundlichen Grüßen
> Christian
> --
> Richter: "Wann haben Sie denn gemerkt, daß das Grundstück bewacht war?
> Angeklagter: "Als ich die Zähne von dem Dobermann in meinem Hintern
> spürte!"
> Darauf wendet sich der Richter an den Zeugen und fragt: "Stimmt das,
> Herr Dobermann?"
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to