From be55ec46b5ab031805487a9c3e895db57f53010b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karl=20Yngve=20Lerv=C3=A5g?= <karl.yngve@lervag.net> Date: Thu, 21 Apr 2022 15:54:02 +0200 Subject: [PATCH] Check the actual value g:did_load_filetypes (#1176) This resolves the issue described in #1175. --- plug.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plug.vim b/plug.vim index 46416b8..e664b26 100644 --- a/plug.vim +++ b/plug.vim @@ -352,7 +352,7 @@ function! plug#end() endif let lod = { 'ft': {}, 'map': {}, 'cmd': {} } - if exists('g:did_load_filetypes') + if get(g:, 'did_load_filetypes', 0) filetype off endif for name in g:plugs_order