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?

  • Have you checked the documentation? – Christian Brabandt Feb 12 '18 at 21:52
  • @ChristianBrabandt I mean... isn't that exactly what I mentioned in the second paragraph? – glS Feb 12 '18 at 21:54
  • or true, then you should probably raise an issue with the plugin author? – Christian Brabandt Feb 12 '18 at 21:57
  • I too am having problems with 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 get wildignore to work how you want it to. – Robert Apr 29 '20 at 7:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.