echo "*.swp" >> .gitignore
How ugly is that?