martanne / vis

A vi-like editor based on Plan 9's structural regular expressions
Other
4.26k stars 258 forks source link

filetype: Set `diff` filetype for `COMMIT_EDITMSG` files #983

Closed krkk closed 2 years ago

krkk commented 3 years ago

This filename is set when writing a commit message in git.

If you run git-commit with an --verbose option or if you just have set it in your git-config, that shows you the patch diff on bottom of the file.

Unfortunately, now every patch file will set colorcolumn, but overall I think this is better than having duplicated lexers.

ninewise commented 2 years ago

Applied 0cc684f26b136029f4f49d808761d69228f42dff