From b082ae384778cc83cfffcb2658dbd0611fc05b4c Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Thu, 3 Mar 2016 10:41:04 +0900 Subject: [PATCH] Fix #434 - Use runtime to load syntax file during ft-based ODL A plugin may have 'after/syntax/foo.vim' without 'syntax/foo.vim'. e.g. https://github.com/pbrisbin/vim-syntax-shakespeare --- plug.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plug.vim b/plug.vim index ae8e599..db778d9 100644 --- a/plug.vim +++ b/plug.vim @@ -425,8 +425,8 @@ function! s:lod(names, types, ...) for dir in a:types call s:source(rtp, dir.'/**/*.vim') endfor - for file in a:000 - call s:source(rtp, file) + for pat in a:000 + execute 'runtime' pat endfor if exists('#User#'.name) execute 'doautocmd User' name