Permalink
Browse files

mention`wildignore`

  • Loading branch information...
1 parent 1470144 commit d18767ec361e2f39d275c898f077a448fa2794d7 @kien committed Sep 11, 2011
Showing with 14 additions and 1 deletion.
  1. +5 −0 doc/ctrlp.txt
  2. +9 −1 readme.md
View
@@ -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
View
@@ -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

0 comments on commit d18767e

Please sign in to comment.