From 8d71836c765aaa37a96ad5774ae190abda273242 Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Wed, 3 Oct 2007 15:58:57 +0100 Subject: [PATCH] fix git filetype detection --- .vim/ftdetect/git-commit.vim | 4 +++- .vim/ftdetect/git-send-email.vim | 3 +-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.vim/ftdetect/git-commit.vim b/.vim/ftdetect/git-commit.vim index a4a2be0..ef844c3 100644 --- a/.vim/ftdetect/git-commit.vim +++ b/.vim/ftdetect/git-commit.vim @@ -1 +1,3 @@ -au BufRead,BufNewFile COMMIT_EDITMSG setf git +augroup filetypedetect + au BufRead,BufNewFile COMMIT_EDITMSG set ft=git +augroup END diff --git a/.vim/ftdetect/git-send-email.vim b/.vim/ftdetect/git-send-email.vim index da69c21..d9c2d21 100644 --- a/.vim/ftdetect/git-send-email.vim +++ b/.vim/ftdetect/git-send-email.vim @@ -1,6 +1,5 @@ augroup filetypedetect " detect git-send-email messages au! BufRead,BufNewFile .msg.[0-9]* - \ if getline(1) =~ '^From .\+ignored\.$' | setfiletype mail | endif + \ if getline(1) =~ '^From .\+ignored\.$' | set ft=mail | endif augroup END - -- 2.39.2