aboutsummaryrefslogtreecommitdiff
path: root/vim/after
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-06-05 12:21:06 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-06-05 12:21:06 +1200
commit485039af392f4a3159f8b48c502f9177bd7a3438 (patch)
treef00260bc99e4367b513dd1424b00745539917c5b /vim/after
parent17c2c026ff22bc7fea85241558b96bcaa435f36d (diff)
downloaddotfiles-485039af392f4a3159f8b48c502f9177bd7a3438.tar.gz
dotfiles-485039af392f4a3159f8b48c502f9177bd7a3438.zip
Spellcheck mail
Diffstat (limited to 'vim/after')
-rw-r--r--vim/after/ftplugin/mail.vim6
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