More specific default ignore rules

This commit is contained in:
Kien N 2012-08-19 23:31:22 +07:00
parent f5d0c40558
commit b7cb2f539d
3 changed files with 11 additions and 11 deletions

View File

@ -20,13 +20,13 @@ fu! s:ignore() "{{{2
\ '\~\.plst', \ '\~\.plst',
\ '\.pc', \ '\.pc',
\ '_MTN', \ '_MTN',
\ '<blib', \ 'blib',
\ '<CVS', \ 'CVS',
\ '<RCS', \ 'RCS',
\ '<SCCS', \ 'SCCS',
\ '_sgbak', \ '_sgbak',
\ '<autom4te\.cache', \ 'autom4te\.cache',
\ '<cover_db', \ 'cover_db',
\ '_build', \ '_build',
\ ] \ ]
let igfiles = [ let igfiles = [
@ -45,7 +45,7 @@ fu! s:ignore() "{{{2
\ '\.tar\.gz$', \ '\.tar\.gz$',
\ ] \ ]
retu { retu {
\ 'dir': '\v('.join(igdirs, '|').')($|[\/])', \ 'dir': '\v[\/]('.join(igdirs, '|').')$',
\ 'file': '\v'.join(igfiles, '|'), \ 'file': '\v'.join(igfiles, '|'),
\ } \ }
endf "}}}2 endf "}}}2

View File

@ -226,9 +226,9 @@ CtrlP to not show. Use regexp to specify the patterns: >
let g:ctrlp_custom_ignore = '' let g:ctrlp_custom_ignore = ''
< <
Examples: > Examples: >
let g:ctrlp_custom_ignore = '\v(\.git|\.hg|\.svn)($|[\/])' let g:ctrlp_custom_ignore = '\v[\/](\.git|\.hg|\.svn)$'
let g:ctrlp_custom_ignore = { let g:ctrlp_custom_ignore = {
\ 'dir': '\v(\.git|\.hg|\.svn)($|[\/])', \ 'dir': '\v[\/](\.git|\.hg|\.svn)$',
\ 'file': '\.exe$\|\.so$\|\.dll$', \ 'file': '\.exe$\|\.so$\|\.dll$',
\ 'link': 'SOME_BAD_SYMBOLIC_LINKS', \ 'link': 'SOME_BAD_SYMBOLIC_LINKS',
\ } \ }

View File

@ -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/*,*.so,*.swp,*.zip " MacOSX/Linux
set wildignore+=*\\tmp\\*,*.swp,*.zip,*.exe " Windows 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 = { let g:ctrlp_custom_ignore = {
\ 'dir': '\v(\.git|\.hg|\.svn)($|[\/])', \ 'dir': '\v[\/](\.git|\.hg|\.svn)$',
\ 'file': '\.exe$\|\.so$\|\.dll$', \ 'file': '\.exe$\|\.so$\|\.dll$',
\ 'link': 'some_bad_symbolic_links', \ 'link': 'some_bad_symbolic_links',
\ } \ }