fix typo and update .gitignore

1. Fix typo in the comment for file_event()
2. Update .gitignore, add vim cruft.

(This is my first time to contribute to open source project.
If I did some wrong, please let me know.)