One of my Vim plugins generates a .cache directory in every project. Instead of telling every git repo to ignore it, use the system-wide exclude file.