diff options
Diffstat (limited to '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 |