From 29481da4c0c0b85f42b6df0377fdbffb12ab2615 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Tue, 13 Feb 2018 22:24:27 +0100 Subject: ftplugin/mail.vim: Activate Vim's mail ftplugin I was using a different machine and composing an email, but there I wasn't getting a `textwidth` setting of 72. Instead it was unset. Ensure the default mail ftplugin gets sourced so we get the proper `textwidth`, plus some other niceties. --- ftplugin/mail.vim | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ftplugin/mail.vim b/ftplugin/mail.vim index 80d125c..b42fa34 100644 --- a/ftplugin/mail.vim +++ b/ftplugin/mail.vim @@ -1,5 +1,10 @@ " Mail messages +if exists('b:did_ftplugin') + unlet b:did_ftplugin +endif + + " Automatically format paragraphs and set format=flowed "w" option setlocal formatoptions+=aw -- cgit v1.2.3