From baa1a5610682ee4852ebb2c783a2d37efc51ca70 Mon Sep 17 00:00:00 2001 From: hophacker Date: Wed, 5 Jul 2017 20:30:01 +0800 Subject: [PATCH] crtrlp ignore fix --- vim/settings/ctrlp.vim | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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