Mercurial > vim
diff runtime/filetype.vim @ 11659:49c12c93abf3
Updated runtime files and translations.
commit https://github.com/vim/vim/commit/74675a666b51edd61e0210132658d81a86c5102c
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jul 15 13:53:23 2017 +0200
Updated runtime files and translations.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 15 Jul 2017 14:00:04 +0200 |
parents | f7a0b0b1fc17 |
children | c2aa4af29251 |
line wrap: on
line diff
--- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -1,7 +1,7 @@ " Vim support file to detect file types " " Maintainer: Bram Moolenaar <Bram@vim.org> -" Last Change: 2017 Jun 22 +" Last Change: 2017 Jul 11 " Listen very carefully, I will say this only once if exists("did_load_filetypes") @@ -635,7 +635,13 @@ au BufNewFile,BufRead dict.conf,.dictrc au BufNewFile,BufRead dictd.conf setf dictdconf " Diff files -au BufNewFile,BufRead *.diff,*.rej,*.patch setf diff +au BufNewFile,BufRead *.diff,*.rej setf diff +au BufNewFile,BufRead *.patch + \ if getline(1) =~ '^From [0-9a-f]\{40\} Mon Sep 17 00:00:00 2001$' | + \ setf gitsendemail | + \ else | + \ setf diff | + \ endif " Dircolors au BufNewFile,BufRead .dir_colors,.dircolors,*/etc/DIR_COLORS setf dircolors @@ -804,6 +810,7 @@ if !empty($XDG_CONFIG_HOME) au BufNewFile,BufRead $XDG_CONFIG_HOME/git/config setf gitconfig endif au BufNewFile,BufRead git-rebase-todo setf gitrebase +au BufRead,BufNewFile .gitsendemail.msg.?????? setf gitsendemail au BufNewFile,BufRead .msg.[0-9]* \ if getline(1) =~ '^From.*# This line is ignored.$' | \ setf gitsendemail |