From 1f4e3eb0637de699e1aa1b35a8a268ab36cdd0d6 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Fri, 28 Oct 2016 00:11:45 +0900 Subject: [PATCH] No need for `filetype off` unless `g:did_load_filetypes` exists Reference: https://github.com/tpope/vim-pathogen/pull/26 --- plug.vim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plug.vim b/plug.vim index 584979a..3144144 100644 --- a/plug.vim +++ b/plug.vim @@ -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