aboutsummaryrefslogtreecommitdiffstats
path: root/ftdetect/git.vim
AgeCommit message (Collapse)Author
2019-06-01Add ftdetect/git.vimTeddy Wing
Copy one of the Git file detectors from `/usr/local/share/vim/vim74/filetype.vim`. This gives me `gitcommit` filetype features for merge and tag messages even when using a Vim older than 7.4 (Vim 7.3, the default on many Macs, only sets COMMIT_EDITMSG to the `gitcommit` filetype). Additionally, set `gitcommit` on `PULLREQ_EDITMSG` files. This gives me the same features for pull request messages using GitHub's `hub` command line tool (in particular spell checking).