From: martin f. krafft Date: Wed, 3 Oct 2007 14:58:57 +0000 (+0100) Subject: fix git filetype detection X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/8d71836c765aaa37a96ad5774ae190abda273242?ds=sidebyside fix git filetype detection --- 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 -