diff --git a/vim/settings/ctrlp.vim b/vim/settings/ctrlp.vim index d0ab3fc..ea35eef 100644 --- a/vim/settings/ctrlp.vim +++ b/vim/settings/ctrlp.vim @@ -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