From 05b8bbc938bdeac4a5ee2d3ae5cf7a7f05e822d3 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Fri, 1 Jan 2021 22:30:41 +0100 Subject: Fix loading for vim 8 packages, closes #613 --- plugin/polyglot.vim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'plugin') 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 -- cgit v1.2.3