diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-05 12:21:06 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-05 12:21:06 +1200 |
commit | 485039af392f4a3159f8b48c502f9177bd7a3438 (patch) | |
tree | f00260bc99e4367b513dd1424b00745539917c5b /vim/after | |
parent | Revert "Try doing without 'backspace' settings" (diff) | |
download | dotfiles-485039af392f4a3159f8b48c502f9177bd7a3438.tar.gz dotfiles-485039af392f4a3159f8b48c502f9177bd7a3438.zip |
Spellcheck mail
Diffstat (limited to 'vim/after')
-rw-r--r-- | vim/after/ftplugin/mail.vim | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/vim/after/ftplugin/mail.vim b/vim/after/ftplugin/mail.vim index 937ee40c..e84702f0 100644 --- a/vim/after/ftplugin/mail.vim +++ b/vim/after/ftplugin/mail.vim @@ -78,6 +78,12 @@ if exists('loaded_squeeze_repeat_blanks') endif +" Spellcheck documents we're actually editing (not just viewing) +if &modifiable && !&readonly + setlocal spell + let b:undo_ftplugin .= '|setlocal spell<' +endif + " Stop here if the user doesn't want ftplugin mappings if exists('no_plugin_maps') || exists('no_mail_maps') finish |