diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2020-06-04 09:33:00 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2020-06-04 09:33:00 +1200 |
commit | 17af4c920db1b3d50ee267e750c15ed52018f183 (patch) | |
tree | aa2278ec23f5c76106777b9a26a65a3794dd846d | |
parent | Merge branch 'hotfix/v9.16.2' into develop (diff) | |
download | dotfiles-17af4c920db1b3d50ee267e750c15ed52018f183.tar.gz dotfiles-17af4c920db1b3d50ee267e750c15ed52018f183.zip |
Add workaround for bad map settings in mail.vim
-rw-r--r-- | vim/after/ftplugin/mail.vim | 10 | ||||
-rw-r--r-- | vim/ftplugin/mail.vim | 15 |
2 files changed, 25 insertions, 0 deletions
diff --git a/vim/after/ftplugin/mail.vim b/vim/after/ftplugin/mail.vim index 1ed5a71f..4c07bac3 100644 --- a/vim/after/ftplugin/mail.vim +++ b/vim/after/ftplugin/mail.vim @@ -1,3 +1,13 @@ +" Restore global value for no_mail_maps that we set in +" ~/.vim/ftplugin/mail.vim to work around the bad maps set in +" $VIMRUNTIME/ftplugin/mail.vim +" +if exists('b:no_mail_maps') + let no_mail_maps = b:no_mail_maps +elseif exists('no_mail_maps') + unlet no_mail_maps +endif + " Don't append spaces after quote chars, for strict compliance with " format=flowed let b:quote_space = 0 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 |