aboutsummaryrefslogtreecommitdiff
path: root/vim/ftplugin
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2020-06-04 09:33:00 +1200
committerTom Ryder <tom@sanctum.geek.nz>2020-06-04 09:33:00 +1200
commit17af4c920db1b3d50ee267e750c15ed52018f183 (patch)
treeaa2278ec23f5c76106777b9a26a65a3794dd846d /vim/ftplugin
parentMerge branch 'hotfix/v9.16.2' into develop (diff)
downloaddotfiles-17af4c920db1b3d50ee267e750c15ed52018f183.tar.gz
dotfiles-17af4c920db1b3d50ee267e750c15ed52018f183.zip
Add workaround for bad map settings in mail.vim
Diffstat (limited to 'vim/ftplugin')
-rw-r--r--vim/ftplugin/mail.vim15
1 files changed, 15 insertions, 0 deletions
diff --git a/vim/ftplugin/mail.vim b/vim/ftplugin/mail.vim
new file mode 100644
index 00000000..bc10a2ec
--- /dev/null
+++ b/vim/ftplugin/mail.vim
@@ -0,0 +1,15 @@
+" Only do this when not yet done for this buffer--but don't set the flag
+" ourselves, either; this is intended to be a prelude to
+" $VIMRUNTIME/ftplugin/mail.vim
+"
+if exists('b:did_ftplugin')
+ finish
+endif
+
+" Force no_mail_maps value on to work around loading bad maps in
+" $VIMRUNTIME/ftplugin/mail.vim
+"
+if exists('no_mail_maps')
+ let b:no_mail_maps = no_mail_maps
+endif
+let no_mail_maps = 1