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: