aboutsummaryrefslogtreecommitdiff
path: root/vim/after
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-07-12 22:23:12 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-07-12 22:23:12 +1200
commit473cc12cf68f9f63bd0d31b9ab9f17a49f2ea4fe (patch)
treef73bf7f40e4bf66828de197de57111c09ed68677 /vim/after
parentae3cae3a612ddf1a74b4d82c1b2f0441b37b1b6a (diff)
downloaddotfiles-473cc12cf68f9f63bd0d31b9ab9f17a49f2ea4fe.tar.gz
dotfiles-473cc12cf68f9f63bd0d31b9ab9f17a49f2ea4fe.zip
Check for 'spell' feature in ftplugins
Diffstat (limited to 'vim/after')
-rw-r--r--vim/after/ftplugin/markdown.vim2
-rw-r--r--vim/after/ftplugin/text.vim2
2 files changed, 2 insertions, 2 deletions
diff --git a/vim/after/ftplugin/markdown.vim b/vim/after/ftplugin/markdown.vim
index d2cf8918..d13bba8f 100644
--- a/vim/after/ftplugin/markdown.vim
+++ b/vim/after/ftplugin/markdown.vim
@@ -4,7 +4,7 @@ if &filetype !=# 'markdown' || v:version < 700
endif
" Spellcheck documents we're actually editing (not just viewing)
-if &modifiable && !&readonly
+if has('spell') && &modifiable && !&readonly
setlocal spell
let b:undo_ftplugin .= '|setlocal spell<'
endif
diff --git a/vim/after/ftplugin/text.vim b/vim/after/ftplugin/text.vim
index 67948706..8341f72d 100644
--- a/vim/after/ftplugin/text.vim
+++ b/vim/after/ftplugin/text.vim
@@ -4,7 +4,7 @@ if &filetype !=# 'text' || v:version < 700
endif
" Spellcheck documents we're actually editing (not just viewing)
-if &modifiable && !&readonly
+if has('spell') && &modifiable && !&readonly
setlocal spell
let b:undo_ftplugin .= '|setlocal spell<'
endif