kien / ctrlp.vim

Fuzzy file, buffer, mru, tag, etc finder.
kien.github.com/ctrlp.vim
7.26k stars 677 forks source link

"Custom ignore" does not work at all #763

Open ghost opened 5 years ago

ghost commented 5 years ago

I copied and pasted that

let g:ctrlp_custom_ignore = { \ 'dir': '\v[\/].(git|hg|svn)$', \ 'file': '\v.(exe|so|dll)$', \ 'link': 'some_bad_symbolic_links', \ }

into my vimrc file. There is no plugin installed besides ctrlp. Still, a command "ctrl+p" inside vim immediately shows a bunch of .git files and nothing else. I am having this behavior forever, and the impossibility to ignore migrations in a rails project renders the plugin unusable. Any help?

tistatos commented 5 years ago

Hi david, I'm using this:

let g:ctrlp_custom_ignore = {
    \   'dir' : '\.git$\|build$\|bower_components\|node_modules\|dist\|target' ,
    \   'file' : '\v\.(exe|dll|lib)$'
    \ }

And works fine for me... I'm escaping the . perhaps that will solve it for you?