Browse Source

Check the actual value g:did_load_filetypes (#1176)

This resolves the issue described in #1175.
Karl Yngve Lervåg 3 years ago
parent
commit
be55ec46b5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      plug.vim

+ 1 - 1
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