aboutsummaryrefslogtreecommitdiffstats
path: root/ftplugin
diff options
context:
space:
mode:
authorTeddy Wing2018-02-13 22:24:27 +0100
committerTeddy Wing2018-02-13 22:24:27 +0100
commit29481da4c0c0b85f42b6df0377fdbffb12ab2615 (patch)
treec31723dec36ebeee5f46101a0d1924820008f782 /ftplugin
parenta9be8499660a38c67fcbc4f22a4cfac602eeeba4 (diff)
downloaddotvim-29481da4c0c0b85f42b6df0377fdbffb12ab2615.tar.bz2
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.
Diffstat (limited to 'ftplugin')
-rw-r--r--ftplugin/mail.vim5
1 files changed, 5 insertions, 0 deletions
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