From 47f997529d8b9ec09d6d7f8c3db34c7a402d4347 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sun, 19 May 2019 17:21:50 +1200 Subject: Start spell-checking HTML --- vim/after/ftplugin/html.vim | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'vim') 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' -- cgit v1.2.3