diff options
Diffstat (limited to 'vim/after')
-rw-r--r-- | vim/after/ftplugin/html.vim | 5 |
1 files changed, 3 insertions, 2 deletions
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 |