@@ -240,23 +240,8 @@ Set this to 1 if you want CtrlP to scan for dotfiles and dotdirs: >
240240Note: does not apply when a command defined with | g:ctrlp_user_command | is
241241being used.
242242
243- *'ctrlp-wildignore'*
244- You can use Vim's | 'wildignore' | to exclude files and directories from the
245- results.
246- Examples: >
247- " Excluding version control directories
248- set wildignore+=*/.git/*,*/.hg/*,*/.svn/* " Linux/MacOSX
249- set wildignore+=*\\.git\\*,*\\.hg\\*,*\\.svn\\* " Windows ('noshellslash')
250- <
251- Note #1: the `* /` in front of each directory glob is required.
252-
253- Note #2: | wildignore | influences the result of | expand() | , | globpath() | and
254- | glob() | which many plugins use to find stuff on the system (e.g. VCS related
255- plugins look for .git/, .hg/,... some other plugins look for external *.exe
256- tools on Windows). So be a little mindful of what you put in your | wildignore | .
257-
258243 *'g:ctrlp_custom_ignore'*
259- In addition to | 'wildignore' | and | g:ctrlp_show_hidden | , use this for files
244+ In addition to | g:ctrlp_show_hidden | , use this for files
260245and directories you want only CtrlP to not show. Use regexp to specify the
261246patterns: >
262247 let g:ctrlp_custom_ignore = ''
@@ -275,8 +260,7 @@ Examples: >
275260 \ 'func': 'some#custom#match_function'
276261 \ }
277262<
278- Note #1: by default, | wildignore | and | g:ctrlp_custom_ignore | only apply when
279- | globpath() | is used to scan for files, thus these options do not apply when a
263+ Note #1: | g:ctrlp_custom_ignore | does not apply when a
280264command defined with | g:ctrlp_user_command | is being used.
281265
282266Note #2: when changing the option's variable type, remember to | :unlet | it
@@ -288,6 +272,9 @@ recommended here. The function must take 2 parameters, the item to match and
288272its type. The type will be "dir", "file", or "link". The function must return
2892731 if the item should be ignored, 0 otherwise.
290274
275+ Note #4: when | g:ctrlp_use_readdir | is set to 0, you can also use Vim's | 'wildignore' |
276+ to exclude files and directories.
277+
291278 *'g:ctrlp_max_files'*
292279The maximum number of files to scan, set to 0 for no limit: >
293280 let g:ctrlp_max_files = 10000
0 commit comments