From 436d5881971cb6dd23f5115e19208d7d5a7f3059 Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Thu, 14 Aug 2008 10:53:52 +0000 Subject: [PATCH] add another example to the help for :autocmd --- locale/en-US/autocommands.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/locale/en-US/autocommands.txt b/locale/en-US/autocommands.txt index a528a327..290f42f4 100644 --- a/locale/en-US/autocommands.txt +++ b/locale/en-US/autocommands.txt @@ -41,4 +41,9 @@ Enable _passthrough_ mode on *some* Google sites: :au LocationChange .* js modes.passAllKeys = /(www|mail)\.google\.com/.test(buffer.URL) +Set the filetype to mail when editing email at Gmail: + + :au LocationChange .* :set editor=gvim -f + :au LocationChange mail\.google\.com :set editor=gvim -f -c 'set ft=mail' + // vim: set syntax=asciidoc: