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