summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2020-10-25 20:40:49 +0100
committerAdam Stankiewicz <sheerun@sher.pl>2020-10-25 20:40:49 +0100
commitba3fe9e1ae6b2198a152cfa6a357cadc8c04dd14 (patch)
tree3ec9469de02bb6881a425cd86b884348e81a5565
parent45a7512dea0599efaf96e8a2cad3fac7be61cf5d (diff)
downloadvim-polyglot-ba3fe9e1ae6b2198a152cfa6a357cadc8c04dd14.tar.gz
vim-polyglot-ba3fe9e1ae6b2198a152cfa6a357cadc8c04dd14.zip
Fix loading when vim8 packages are used
Diffstat (limited to '')
-rw-r--r--plugin/polyglot.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugin/polyglot.vim b/plugin/polyglot.vim
index c0639057..bfd9c1a0 100644
--- a/plugin/polyglot.vim
+++ b/plugin/polyglot.vim
@@ -17,7 +17,7 @@ endif
" and (mostly comments) from https://github.com/sheerun/vimrc
"
" Only settings that matter for proper editing are left
-if !has_key(g:polyglot_is_disabled, 'sensible')
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'sensible') == -1
" Allow backspace in insert mode.
if &backspace == ""
set backspace=indent,eol,start