summaryrefslogtreecommitdiffstats
path: root/plugin
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2021-01-01 22:30:41 +0100
committerAdam Stankiewicz <sheerun@sher.pl>2021-01-01 22:30:41 +0100
commit05b8bbc938bdeac4a5ee2d3ae5cf7a7f05e822d3 (patch)
treec01457f2798bbbeaf313ac343315aec5a2aa3859 /plugin
parentf3b646fd6f6070072d9b4ec958815b74a8a333f2 (diff)
downloadvim-polyglot-05b8bbc938bdeac4a5ee2d3ae5cf7a7f05e822d3.tar.gz
vim-polyglot-05b8bbc938bdeac4a5ee2d3ae5cf7a7f05e822d3.zip
Fix loading for vim 8 packages, closes #613
Diffstat (limited to 'plugin')
-rw-r--r--plugin/polyglot.vim4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugin/polyglot.vim b/plugin/polyglot.vim
index bfd9c1a0..50060973 100644
--- a/plugin/polyglot.vim
+++ b/plugin/polyglot.vim
@@ -1,3 +1,5 @@
+call polyglot#init#init()
+
" Turn on filetype plugins (:help filetype-plugin).
if has('autocmd') && !(exists("did_load_filetypes") && exists("did_indent_on"))
filetype plugin indent on
@@ -17,7 +19,7 @@ endif
" and (mostly comments) from https://github.com/sheerun/vimrc
"
" Only settings that matter for proper editing are left
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'sensible') == -1
+if !has_key(g:polyglot_is_disabled, 'sensible')
" Allow backspace in insert mode.
if &backspace == ""
set backspace=indent,eol,start