I have a very large number of files under a specific directory.
If I start vim
from the wrong place, command-t
tries to index the whole thing, which results in vim hanging for a long time before command-t
gives up saying that there are too many files.
I don't want the content of that directory to be indexed by command-t
, so following :help command-t-wildignore
I tried setting wildignore
with :set wildignore=/absolute/path/to/nasty/folder/*
.
Issuing set wildignore
before trying command-t
confirms that wildignore
is correctly set up.
However, command-t
keeps on not ignoring said folder.
I also tried with :set wildignore=relative/path/to/folder/*
but to no avail (and I would prefer to ignore a specific folder with its absolute path anyway).
I didn't find the explanation of how to use wildignore
particularly clear though, so I may be using the wrong syntax.
What syntax should be used for this to work properly?
wildignore
(but not for Command-T, just for vanilla Vim). I came across this blog post which suggests that sometimes it can be difficult to getwildignore
to work how you want it to. – Robert Apr 29 '20 at 7:21