Thursday, January 16, 2014

Re: Speed up find command

On 2014-01-16, Marcin Bednarek wrote:
> Hello,
>
> In .vimrc I have the following lines:
>
> set path=**
> set suffixesadd=.php
> set wildmode=longest,list
> set wildmenu
> set wildignore+=tmp\*,*.swp,*.zip,*.exe,*\.settings\*,\.classpath,\.project,*.class,\.springBeans,bin\*,target\*,*.jar,*\.git\*
>
> My project has 4153 php files. When I type command :find Request
> and hit <TAB> key it takes few seconds to get list of found
> classes which have Request in their name. Is there any parameter
> which could be set or any other solution which could help to
> present find command results immediately after hitting <TAB> key?

I would suggest using tags. The project I'm currently working on
contains over 10,000 files. I can easily jump to any of them
quickly using tags, e.g.,

:stag somefile.c

and if I know the initial part of the name, tab-completion works
quickly to give me a list of possible names. Searching for a
pattern still takes a long time because a pattern search isn't done
using a binary search.

Regards,
Gary

--
--
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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment