aboutsummaryrefslogtreecommitdiff
path: root/vim/after/ftplugin
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-06-18 13:16:19 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-06-18 13:16:19 +1200
commitade176cf6016bc909437ad242fb817f3d056688e (patch)
tree34924824d79a6912b7c7cd8ef7b46399d9990b2e /vim/after/ftplugin
parentfb68ccf09e53f0f639db243259d3a3f1db64644d (diff)
downloaddotfiles-ade176cf6016bc909437ad242fb817f3d056688e.tar.gz
dotfiles-ade176cf6016bc909437ad242fb817f3d056688e.zip
Don't spellcheck stuff that isn't actually HTML
Diffstat (limited to 'vim/after/ftplugin')
-rw-r--r--vim/after/ftplugin/html.vim5
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