From: Max Dyckhoff <[EMAIL PROTECTED]> Subject: RE: File name completion for files residing in multiple directories Date: Mon, 12 Feb 2007 11:58:35 -0800
I installed lookupfile and got back this error message while starting vim (console): Error detected while processing /home/mccramer/.vim/plugin/lookupfile.vim: line 105: E227: mapping already exists for [EMAIL PROTECTED] Press ENTER or type command to continue ??? > 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: vim@vim.org > > 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