.gitignore: ignore editor swap files

Some source code editors create swap files in the same directory as the
file being edited. These should be ignored by git.