On Jul 12, 3:41 am, sinbad <[email protected]> wrote:
> my top level directory has many files and folders of the order of
> thousands. so i don't think "find" might be such a good idea.
> btw, does it have an option to search recursively ?
>

Please bottom-post on this list.

You can search recursively if you set the 'path' option properly.
See :help file-searching. The same applies to the 'tags' option, the
glob() function, and probably some other things.

I'd recommend trying it out to see how it impacts your performance,
though the ctags suggestion may also fit your needs.

If you do add a lot of directories to your path (or really deep
recursive searches) you'll probably want to remove the 'i' and 'd'
flags from your 'complete' option. Otherwise it will search for every
included file in your path and then search the text of each of those
files whenever you start basic insert-mode completion which can make
it take a LOT longer. Probably setting your path to a very narrow tree
based on the project a certain file is in is the way around this one,
but I haven't bothered myself to try it. I use tag completion far more
often than completion from included files anyway.

-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Reply via email to