crtrlp ignore fix
This commit is contained in:
parent
dfcd89ff5a
commit
baa1a56106
@ -3,7 +3,7 @@ if exists("g:ctrlp_user_command")
|
||||
endif
|
||||
if executable('ag')
|
||||
" 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
|
||||
let g:ctrlp_use_caching = 0
|
||||
@ -18,6 +18,13 @@ endif
|
||||
let g:ctrlp_by_filename = 1
|
||||
|
||||
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
|
||||
let g:ctrlp_show_hidden = 1
|
||||
|
Loading…
Reference in New Issue
Block a user