What is the correct way to make git ignore temporary files produced by vim in all directories (either globally across the system or locally for a single project)?
I would also recommend to think to ignore files like:
.*.swp .*.swo
as you may have files that end with .swp
.swp