No need for filetype off unless g:did_load_filetypes exists

Reference: https://github.com/tpope/vim-pathogen/pull/26
This commit is contained in:
Junegunn Choi 2016-10-28 00:11:45 +09:00
parent 2fa2761b99
commit 1f4e3eb063
No known key found for this signature in database
GPG key ID: 254BC280FEF9C627

View file

@ -203,7 +203,9 @@ function! plug#end()
endif
let lod = { 'ft': {}, 'map': {}, 'cmd': {} }
filetype off
if exists('g:did_load_filetypes')
filetype off
endif
for name in g:plugs_order
if !has_key(g:plugs, name)
continue