Really such editor-related gitignore entries should go in the user's core.excludesfile, not repository's .gitignore
Its unlikely that anyone would try to make a file that conflicts with an editor-related gitignore entry, but it's nice to have the .gitignore file cleanly delineate exactly what garbage the build system and application create, without being cluttered up with entries for every editor that any developer might ever use.