aboutsummaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
Diffstat (limited to 'plugin')
-rw-r--r--plugin/spellfile_local.vim4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugin/spellfile_local.vim b/plugin/spellfile_local.vim
index 0730775..be2956c 100644
--- a/plugin/spellfile_local.vim
+++ b/plugin/spellfile_local.vim
@@ -6,7 +6,7 @@
" Author: Tom Ryder <tom@sanctum.geek.nz>
" License: Same as Vim itself
"
-if exists('loaded_spellfile_local') || &compatible
+if exists('loaded_spellfile_local') || &compatible || v:version < 800
finish
endif
let loaded_spellfile_local = 1
@@ -17,4 +17,6 @@ let loaded_spellfile_local = 1
augroup spellfile_local
autocmd BufFilePost,BufNewFile,BufRead,EncodingChanged,FileType *
\ call spellfile_local#()
+ autocmd OptionSet spelllang
+ \ call spellfile_local#()
augroup END