Skip to content
Set 'wildignore' from ./.gitignore
Latest commit 061c5c7 Sep 5, 2012 @bellaire bellaire committed with Version 0.2
New functionality by Giuseppe Rota, includes fugitive integration and moves behavior into a callable/mappable function.
Failed to load latest commit information.
plugin Version 0.2 Sep 13, 2012
README Version 0.1: Initial upload Oct 17, 2010


This is a mirror of

Another one from StackOverflow.

It will read your .gitignore file from the directory where you launch vim and parse it, transforming its format into one suitable for wildignore, and then set that option.  Thus, tab-completion won't present those files as options when using vim commands that expect a filename.

 * This will read the .gitignore file from the directory where you launch vim. No effort is made to look for other .gitignore files and parse them. Alternatively, you could specify an absolute path to a file on the first line.
 * The wildignore option in vim doesn't support the notion of negating ignores like you can in a .gitignore file. That is, you can't say :set wildignore=*.html,!foo.html to have it ignore all html files except foo.html. Therefore, .gitignore lines that start with ! are simply ignored.
Something went wrong with that request. Please try again.