diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-18 13:16:19 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-18 13:16:19 +1200 |
commit | ade176cf6016bc909437ad242fb817f3d056688e (patch) | |
tree | 34924824d79a6912b7c7cd8ef7b46399d9990b2e /vim/after | |
parent | Have Vim respect POSIXLY_CORRECT (diff) | |
download | dotfiles-ade176cf6016bc909437ad242fb817f3d056688e.tar.gz dotfiles-ade176cf6016bc909437ad242fb817f3d056688e.zip |
Don't spellcheck stuff that isn't actually HTML
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 |