From ade176cf6016bc909437ad242fb817f3d056688e Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Tue, 18 Jun 2019 13:16:19 +1200 Subject: Don't spellcheck stuff that isn't actually HTML --- vim/after/ftplugin/html.vim | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'vim/after') diff --git a/vim/after/ftplugin/html.vim b/vim/after/ftplugin/html.vim index 93845a80..d9c0149c 100644 --- a/vim/after/ftplugin/html.vim +++ b/vim/after/ftplugin/html.vim @@ -1,5 +1,6 @@ -" Spellcheck documents we're actually editing (not just viewing) -if &modifiable && !&readonly +" Spellcheck documents we're actually editing (not just viewing), as long as +" they're actually HTML buffers and not just dotting this in +if &modifiable && !&readonly && &filetype ==# 'html' setlocal spell let b:undo_ftplugin .= '|setlocal spell<' endif -- cgit v1.2.3