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)?
In myy case the temporary files are already commited by previous actions, so modifying .gitignore will not affect those commited files..., you have to git rm files_to_be_ignored --cache first, then commit, then DONE.