crtrlp ignore fix

This commit is contained in:
hophacker 2017-07-05 20:30:01 +08:00
parent dfcd89ff5a
commit baa1a56106

View File

@ -3,7 +3,7 @@ if exists("g:ctrlp_user_command")
endif endif
if executable('ag') if executable('ag')
" Use ag in CtrlP for listing files. Lightning fast and respects .gitignore " Use ag in CtrlP for listing files. Lightning fast and respects .gitignore
let g:ctrlp_user_command = 'ag %s --files-with-matches -g "" --ignore "\.git$\|\.hg$\|\.svn$"' " let g:ctrlp_user_command = 'ag %s --files-with-matches -g "" --ignore "\.git$\|\.hg$\|\.svn$"'
" ag is fast enough that CtrlP doesn't need to cache " ag is fast enough that CtrlP doesn't need to cache
let g:ctrlp_use_caching = 0 let g:ctrlp_use_caching = 0
@ -18,6 +18,13 @@ endif
let g:ctrlp_by_filename = 1 let g:ctrlp_by_filename = 1
let g:ctrlp_working_path_mode = 'ra' let g:ctrlp_working_path_mode = 'ra'
set wildignore+=*/tmp/*,*.so,*.swp,*.zip " MacOSX/Linux
let g:ctrlp_custom_ignore = '\v[\/]\.(git|hg|svn)$'
let g:ctrlp_custom_ignore = {
\ 'dir': '\v[\/]\.(git|hg|svn)$',
\ 'file': '\v\.(exe|so|dll)$',
\ 'link': 'some_bad_symbolic_links',
\ }
" show even .ssh/config file " show even .ssh/config file
let g:ctrlp_show_hidden = 1 let g:ctrlp_show_hidden = 1