Add ignores for vim, TernJS

- vim-related ignores from https://github.com/github/gitignore/blob/master/Global/vim.gitignore
Merge pull request #2924 from appleYaks/gitignore

Add .gitignores for vim, TernJS