aboutsummaryrefslogtreecommitdiff
path: root/vim/after/ftplugin/text.vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-07-14 01:16:10 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-07-14 01:16:10 +1200
commit7c7e86850b43d8e990c005b0bc80e684c3ea341b (patch)
tree2ed560acd9edb40132d2822341885eb6af7157e9 /vim/after/ftplugin/text.vim
parentMerge branch 'release/v1.27.0' (diff)
parentBump VERSION (diff)
downloaddotfiles-7c7e86850b43d8e990c005b0bc80e684c3ea341b.tar.gz
dotfiles-7c7e86850b43d8e990c005b0bc80e684c3ea341b.zip
Merge branch 'release/v1.28.0'v1.28.0
* release/v1.28.0: Bump VERSION Upgrade diff_prune.vim ftplugin Replace mail.vim quoting mappings Upgrade put_blank_lines.vim plugin Remove :nohlsearch from vimrc Move to after headers when writing new mail Rename and refine reload_vimrc_filetype.vim Remove visual mode space/backspace remap Move .vimrc reloading stuff into custom plugin Add missing angle bracket for Vim ftplugin undo Remove bell disabling in Vim Simplify 'shortmess' settings Disable 'spellcapcheck' for README.md files Check for 'spell' feature in ftplugins Add ftplugin for tmux
Diffstat (limited to 'vim/after/ftplugin/text.vim')
-rw-r--r--vim/after/ftplugin/text.vim2
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