aboutsummaryrefslogtreecommitdiff
path: root/vim/after/ftplugin/text.vim
diff options
context:
space:
mode:
Diffstat (limited to 'vim/after/ftplugin/text.vim')
-rw-r--r--vim/after/ftplugin/text.vim5
1 files changed, 2 insertions, 3 deletions
diff --git a/vim/after/ftplugin/text.vim b/vim/after/ftplugin/text.vim
index 0ca72122..67948706 100644
--- a/vim/after/ftplugin/text.vim
+++ b/vim/after/ftplugin/text.vim
@@ -1,11 +1,10 @@
" Extra configuration for text files
-if &filetype != 'text' || &compatible || v:version < 700
+if &filetype !=# 'text' || v:version < 700
finish
endif
" Spellcheck documents we're actually editing (not just viewing)
if &modifiable && !&readonly
setlocal spell
- let b:undo_ftplugin = b:undo_ftplugin
- \ . '|setlocal spell<'
+ let b:undo_ftplugin .= '|setlocal spell<'
endif