From 7f1ec7b12be6d15f60fc9c0441cee5f2edbc304e Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Fri, 4 Jul 2014 14:20:48 +0900 Subject: [PATCH] Load ftplugins while avoiding extraneous FileType events (#24, #25) --- plug.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plug.vim b/plug.vim index 8843522..779c2ee 100644 --- a/plug.vim +++ b/plug.vim @@ -212,7 +212,7 @@ function! s:lod_ft(pat, names) call s:lod(g:plugs[name], ['plugin', 'after']) endfor execute 'autocmd! PlugLOD FileType ' . a:pat - let &l:filetype = &l:filetype + silent! doautocmd filetypeplugin FileType endfunction function! s:lod_cmd(cmd, bang, l1, l2, args, plug)