I'm looking for a good solution to the problem of trying to open any file in my source tree using tab completion/wildcard matching/Camel case etc. The difficulty I'm having is finding a method of doing this which works on a code base of ~30,000 files and ~7000 directories (including hidden .svn directories). Other programs (such as Resharper, or Sublime Text Editor) are able to jump to any file nearly instantly on this code base.
So far I have tried things like adding the recursive double star '**' to my Vim path and the FuzzyFinder plugin but neither are able to handle the large number of files and directories. Vim will either become entirely unresponsive or at least very sluggish with these methods.
Once upon a time at an old project with a huge directory tree and thousands of files ago I did it like this (in an empty buffer):
:read !tree -af /PATH/TO/PROJECT
Et voila now I have a buffer with a directory tree. Now I can search that buffer with "standard" Vim regexes. If I had found the file, I just hit gf to jump to it.
If you don't have tree installed you can still go with:
:read !find /PATH/TO/PROJECT -type f -print 2>/dev/null
HTH
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With