I was wondering if there is a way to get vim to read .gitignore files and use them to determine options not to present when auto-completing filenames.
For example, work
I wrote a plugin for this: https://github.com/octref/RootIgnore
It can add .gitignore
patterns to your wildignore automatically.
Some handy features:
my_proj/ .gitignore .git/ sub/
If you cd into sub, and open Vim there, the plugin goes recursively up to find the .gitignore
and add it to wildignore
.
~/.gitignore
rules by let g:RootIgnoreUseHome = 1
.