You want Hari's LookupFile plugin, which you can find on vim.org. It's awesome, and has speeded up my development massively. It does exactly what you want, in almost exactly the way you suggest.
Max > -----Original Message----- > From: Erik Bergman [mailto:[EMAIL PROTECTED] > Sent: Monday, February 12, 2007 10:53 AM > To: [email protected] > Subject: File name completion for files residing in multiple > directories > > I've been searching for a nice way to quickly open files that may > reside in > any of number of directories, similar to the "quick open" feature you > find > in some other editors. One solution is to mess around with the ** and * > wildcards, but this gets terribly slow for large projects. Another > "solution" is to set the 'path' variable, but vim does not perform > completion on files opened that way. A third solution is to generate > file > name tags and use :tag to jump to files, but in that case you will > perform > completion on just not file names, but other tags as well. Finally, you > can > open all files you need to switch between and use :b, but for obvious > reasons this isn't very practical. > > What I think would be an nice solution is if there was some way to make > vim > perform file name completion using 'file' tags from the tag file. That > way > you could still use tags for other things, and most often the files you > generate tags for are exactly the files you want to be able to open and > switch between quickly. > > Can anyone think of a better solution? Would it be possible to > integrate > this feature into vim in a nice way? > > /Erik Berman
