Jack's blog

Vim:wildmenu woes

I wanted to be able to quickly open files in a project with :find, so naturally I ran:

path+=services/**

I noticed this was horrifically slow, presumably because there's a couple node_modules folders buried deep in this directory.

My natural assumption was that I could simply 'ignore' this pattern. So I tried:

wildignore+=**/node_modules/**

Nop still slow 🐌, But why?

Turns out adding node_modules to wildignore only filters results from showing in the wildmenu. But crucially this doesn't prevent find from recursively searching these directories!


I find this behaviour pretty confusing. Why does find recurse into directories if ultimately the results are filtered/discarded anyway?

Here's to hoping vim eventually implements a pathignore options as suggested here

*Just use a fuzzy finder