Refactor code

Fixes #19.
Shouldn't editor specific ignore rules should be in the user global gitignore?