From b7cb2f539d6f14443ccff7c3fa14da9049bcaab0 Mon Sep 17 00:00:00 2001 From: Kien N Date: Sun, 19 Aug 2012 23:31:22 +0700 Subject: [PATCH] More specific default ignore rules --- autoload/ctrlp.vim | 14 +++++++------- doc/ctrlp.txt | 4 ++-- readme.md | 4 ++-- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/autoload/ctrlp.vim b/autoload/ctrlp.vim index 035ee78..8796162 100644 --- a/autoload/ctrlp.vim +++ b/autoload/ctrlp.vim @@ -20,13 +20,13 @@ fu! s:ignore() "{{{2 \ '\~\.plst', \ '\.pc', \ '_MTN', - \ ' let g:ctrlp_custom_ignore = '' < Examples: > - let g:ctrlp_custom_ignore = '\v(\.git|\.hg|\.svn)($|[\/])' + let g:ctrlp_custom_ignore = '\v[\/](\.git|\.hg|\.svn)$' let g:ctrlp_custom_ignore = { - \ 'dir': '\v(\.git|\.hg|\.svn)($|[\/])', + \ 'dir': '\v[\/](\.git|\.hg|\.svn)$', \ 'file': '\.exe$\|\.so$\|\.dll$', \ 'link': 'SOME_BAD_SYMBOLIC_LINKS', \ } diff --git a/readme.md b/readme.md index 824d2a8..dd90c30 100644 --- a/readme.md +++ b/readme.md @@ -63,9 +63,9 @@ Use `:diffthis` when opening multiple files to run `:diffthis` on the first 4 fi set wildignore+=*/tmp/*,*.so,*.swp,*.zip " MacOSX/Linux set wildignore+=*\\tmp\\*,*.swp,*.zip,*.exe " Windows - let g:ctrlp_custom_ignore = '\v(\.git|\.hg|\.svn)($|[\/])' + let g:ctrlp_custom_ignore = '\v[\/](\.git|\.hg|\.svn)$' let g:ctrlp_custom_ignore = { - \ 'dir': '\v(\.git|\.hg|\.svn)($|[\/])', + \ 'dir': '\v[\/](\.git|\.hg|\.svn)$', \ 'file': '\.exe$\|\.so$\|\.dll$', \ 'link': 'some_bad_symbolic_links', \ }