mentionwildignore
This commit is contained in:
parent
1470144bcd
commit
d18767ec36
@ -192,6 +192,11 @@ Example: >
|
||||
Set this to 0 if you don’t 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
|
||||
|
10
readme.md
10
readme.md
@ -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 Vim’s 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 Vim’s 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
|
||||
|
Loading…
x
Reference in New Issue
Block a user