aboutsummaryrefslogtreecommitdiff
path: root/vim/after/ftplugin
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-05-19 17:21:50 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-05-19 17:21:50 +1200
commit47f997529d8b9ec09d6d7f8c3db34c7a402d4347 (patch)
treeb9cdfaae06b424aed44cf6464b9fcf73e85d8548 /vim/after/ftplugin
parent02e063a3f3b687e01c1b74647507b20e07560669 (diff)
downloaddotfiles-47f997529d8b9ec09d6d7f8c3db34c7a402d4347.tar.gz
dotfiles-47f997529d8b9ec09d6d7f8c3db34c7a402d4347.zip
Start spell-checking HTML
Diffstat (limited to 'vim/after/ftplugin')
-rw-r--r--vim/after/ftplugin/html.vim6
1 files changed, 6 insertions, 0 deletions
diff --git a/vim/after/ftplugin/html.vim b/vim/after/ftplugin/html.vim
index 203e3f46..8b390528 100644
--- a/vim/after/ftplugin/html.vim
+++ b/vim/after/ftplugin/html.vim
@@ -3,6 +3,12 @@ if &filetype !=# 'html'
finish
endif
+" Spellcheck documents we're actually editing (not just viewing)
+if &modifiable && !&readonly
+ setlocal spell
+ let b:undo_ftplugin .= '|setlocal spell<'
+endif
+
" Use tidy(1) for checking
compiler tidy
let b:undo_ftplugin .= '|unlet b:current_compiler'