gibo is a handy shell script to use GitHub's gitignore templates.

gibo Python vim >> .gitignore

You can download it here.