How do I use 'wildignore' in Vim?

后端 未结 4 1581
滥情空心
滥情空心 2021-02-12 10:23

I\'m having a lot of trouble figuring out the syntax for the wildignore setting in Vim.

Suppose I want my file finder plugin (I use Ctrlp, which uses

4条回答
  •  佛祖请我去吃肉
    2021-02-12 10:52

    As BenC pointed out, Wildignore may not be the best way to ignore files if you are using CtrlP with an external search tool. Instead, you can use CtrlP's "custom_ignore" directive, as stated in their docs:

    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',
        \ }
    

提交回复
热议问题