aboutsummaryrefslogtreecommitdiff
path: root/vim/after/ftplugin/mail.vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-07-08 23:13:02 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-07-08 23:13:02 +1200
commit10c601851625784c7058f52c8d88bdb2e99b5620 (patch)
tree0934fe93216ba490c0a1f38fcee32f38cfbef57a /vim/after/ftplugin/mail.vim
parent6962622d1acc06569e0fe265522820aabfd58bee (diff)
downloaddotfiles-10c601851625784c7058f52c8d88bdb2e99b5620.tar.gz
dotfiles-10c601851625784c7058f52c8d88bdb2e99b5620.zip
Overhaul base after-ftplugins
Mostly to simplify them--remove a lot of the load-guard cruft.
Diffstat (limited to 'vim/after/ftplugin/mail.vim')
-rw-r--r--vim/after/ftplugin/mail.vim13
1 files changed, 2 insertions, 11 deletions
diff --git a/vim/after/ftplugin/mail.vim b/vim/after/ftplugin/mail.vim
index 68e9e17a..200358d8 100644
--- a/vim/after/ftplugin/mail.vim
+++ b/vim/after/ftplugin/mail.vim
@@ -1,16 +1,7 @@
-" Extra configuration for 'mail' filetypes
-if exists('b:did_ftplugin_after') || &compatible
+" Extra configuration for mail messages
+if &filetype != 'mail' || &compatible || v:version < 700
finish
endif
-if v:version < 700
- finish
-endif
-if &filetype !=# 'mail'
- finish
-endif
-let b:did_ftplugin_after = 1
-let b:undo_ftplugin = b:undo_ftplugin
- \ . '|unlet b:did_ftplugin_after'
" Add a space to the end of wrapped lines for format-flowed mail
setlocal formatoptions+=w