pansz schrieb am 06.02.2012 um 11:31 (+0800):
> Ctrl-P works well only when project root found. i.e. when you are
> editing from .hg, .svn, .git repositories.
> When Ctrl-P starts in a non-SCM-controled directory, it starts very
> slow (because it tries to read all files). For example, try cd /etc
> and then use vim ctrlp...
It should measure the depth of the sea before attempting to dive to the
bottom. There are some options giving you control, though:
The maximum number of files to scan, set to 0 for no limit:
let g:ctrlp_max_files = 10000
The maximum depth of a directory tree to recurse into:
let g:ctrlp_max_depth = 40
Specify an external tool to use for listing files instead of using
Vim’s |globpath()|. Use %s in place of the target directory:
let g:ctrlp_user_command = ''
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