~gpanders/dotfiles

925a7bc911c0f7ba01bc27b3643824324e294ef7 — Greg Anders 1 year, 11 months ago 1d18f96
Enable spell checking in mail files

Also disable highlighting trailing whitespace
1 files changed, 5 insertions(+), 4 deletions(-)

M vim/.vim/after/ftplugin/mail.vim
M vim/.vim/after/ftplugin/mail.vim => vim/.vim/after/ftplugin/mail.vim +5 -4
@@ 5,10 5,12 @@
setlocal formatoptions+=wa
setlocal wrapmargin=0
setlocal nonumber
setlocal digraph
setlocal nolist
setlocal spell
let b:undo_ftplugin .= '|setl fo< wm< nu< list< spell<'

syntax clear TrailingWhitespace
let b:highlight_trailing_whitespace = 0
let b:undo_ftplugin .= '|unlet! b:highlight_trailing_whitespace'

" See https://en.wikipedia.org/wiki/Posting_style
if !exists('g:mail_posting_style')


@@ 28,5 30,4 @@ augroup mail
        endif
    endif
augroup END

let b:undo_ftplugin .= '|setl fo< wm< nu< dg< list<|au! mail * <buffer>'
let b:undo_ftplugin .= '|au! mail * <buffer>'