From e3036969e337b2a351dc4f5e0b4bd57c0e6a7243 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Fri, 14 Jun 2019 19:44:46 +1200 Subject: Add missing b:undo_ftplugin commands for ft=mail --- vim/after/ftplugin/mail.vim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vim/after/ftplugin/mail.vim b/vim/after/ftplugin/mail.vim index 85db8c9e..f4a4c91d 100644 --- a/vim/after/ftplugin/mail.vim +++ b/vim/after/ftplugin/mail.vim @@ -1,6 +1,7 @@ " Don't append spaces after quote chars, for strict compliance with " format=flowed let b:quote_space = 0 +let b:undo_ftplugin .= '|unlet b:quote_space' " If something hasn't already moved the cursor, we'll move to an optimal point " to start writing @@ -44,6 +45,7 @@ function! s:SuggestStart() abort endfunction command! -bar -buffer SuggestStart \ call s:SuggestStart() +let b:undo_ftplugin .= '|delcommand SuggestStart' SuggestStart " Normalise quoting @@ -77,6 +79,7 @@ function! s:StrictQuote() abort endfunction command -bar -buffer StrictQuote \ call s:StrictQuote() +let b:undo_ftplugin .= '|delcommand StrictQuote' StrictQuote " Add a space to the end of wrapped lines for format-flowed mail -- cgit v1.2.3