aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-06-14 19:44:46 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-06-14 19:44:46 +1200
commite3036969e337b2a351dc4f5e0b4bd57c0e6a7243 (patch)
treeb41906d2039246be08a960a21dbe4916766a958f
parenta7e32d502a4999acd0f4a8100ec9c662f754a559 (diff)
downloaddotfiles-e3036969e337b2a351dc4f5e0b4bd57c0e6a7243.tar.gz
Add missing b:undo_ftplugin commands for ft=mail
-rw-r--r--vim/after/ftplugin/mail.vim3
1 files changed, 3 insertions, 0 deletions
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