mentionwildignore

This commit is contained in:
Kien N 2011-09-12 05:49:42 +07:00
parent 1470144bcd
commit d18767ec36
2 changed files with 14 additions and 1 deletions

View File

@ -192,6 +192,11 @@ Example: >
Set this to 0 if you dont want |CtrlP| to search for dotfiles and dotdirs: >
let g:ctrlp_dotfiles = 1
<
You can also use |'wildignore'| to exclude anything from the search.
e.g. exclude version control directories from the results: >
set wildignore+=.git/*,.hg/*,.svn/* " Linux/MacOSX
set wildignore+=.git\*,.hg\*,.svn\* " Windows
<
*'g:ctrlp_highlight_match'*
Use this to enable/disable highlighting of the matched patterns and to specify

View File

@ -1,5 +1,5 @@
# ctrlp.vim
Full path fuzzy file, buffer and MRU file finder for Vim.
Full path fuzzy __file__, __buffer__ and __MRU__ file finder for Vim.
* Written in pure Vimscript for MacVim and Vim 7.0+.
* Has full support for Vims regexp as search pattern, and more.
@ -58,6 +58,14 @@ The parameter is the same (0, 1 or 2):
let g:ctrlp_mru_files = 1
```
* If you want to exclude directories or files from the search, you can use the Vims option `wildignore`.
e.g. Just have something like this in your vimrc:
```vim
set wildignore+=.git/*,.hg/*,.svn/* " for Linux/MacOSX
set wildignore+=.git\*,.hg\*,.svn\* " for Windows
```
_Check [the docs][3] for more mappings, commands and options._
[1]: http://i.imgur.com/Gfntl.png