More specific default ignore rules
This commit is contained in:
parent
f5d0c40558
commit
b7cb2f539d
@ -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
|
||||
|
@ -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',
|
||||
\ }
|
||||
|
@ -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',
|
||||
\ }
|
||||
|
Loading…
Reference in New Issue
Block a user