X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/34997613f623002a61f0d058789dfeabbbc0174b..fa4e58b4f9e3f920b69c6b116700fa6af13d4ce6:/.vim/after/ftplugin/mail.vim diff --git a/.vim/after/ftplugin/mail.vim b/.vim/after/ftplugin/mail.vim index 2ecfa74..8801197 100644 --- a/.vim/after/ftplugin/mail.vim +++ b/.vim/after/ftplugin/mail.vim @@ -1,8 +1,12 @@ setlocal textwidth=68 setlocal formatoptions-=o setlocal formatoptions-=r +setlocal formatoptions-=l setlocal formatoptions+=a setlocal formatoptions+=w +setlocal formatoptions+=n + +setlocal comments=n:> "setlocal spell @@ -190,3 +194,5 @@ fun! DelegateCompletion(next) return "\x10" endif endfun + +autocmd BufWritePost exe 'write ' . fnameescape((exists('$TMPDIR') ? expand('$TMPDIR') : '/tmp') . '/mail.backup.' . strftime('%Y-%m-%d-%H%M%S'))