Astian wrote:

> (Note: I originally sent this message to [email protected], but that seems
> to have been eaten by a grue, so I'm trying again with googlegroups.)
> 
> Currently filetype.vim uses the pattern ".msg.[0-9]*" [0], but
> git-send-email generates files named like ".gitsendemail.msg.XXXXXX" [1].
> 
> Evidently the gitsendemail ftplugin/syntax author knows this, as he
> wrote [2]:
> 
>   " Filenames:        .gitsendemail.*
> 
> Here's a sample filename: .gitsendemail.msg.Npe8bi

I think the .msg name was used previously.  It won't hurt to keep both.

> Additionally, it would be nice IMO if *.patch files generated by
> git-format-patch were highlighted in the same way as "gitsendemail"
> files, since they look basically the same.
> 
> I propose the patch below.

I'll include this, thanks.

> +au BufNewFile,BufRead *.diff,*.rej           setf diff
> +au BufRead,BufNewFile *.patch
> +     \ if getline(1) =~ '^From [0-9a-f]\{40\} Mon Sep 17 00:00:00 2001$' |
> +     \   setf gitsendemail |

That date looks very specific, is it always like that?


-- 
hundred-and-one symptoms of being an internet addict:
135. You cut classes or miss work so you can stay home and browse the web.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui