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

View File

@ -226,9 +226,9 @@ CtrlP to not show. Use regexp to specify the patterns: >
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',
\ }

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\\*,*.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',
\ }