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
This commit is contained in:
Junegunn Choi 2016-03-03 10:41:04 +09:00
parent 6246ad284c
commit b082ae3847

View file

@ -425,8 +425,8 @@ function! s:lod(names, types, ...)
for dir in a:types for dir in a:types
call s:source(rtp, dir.'/**/*.vim') call s:source(rtp, dir.'/**/*.vim')
endfor endfor
for file in a:000 for pat in a:000
call s:source(rtp, file) execute 'runtime' pat
endfor endfor
if exists('#User#'.name) if exists('#User#'.name)
execute 'doautocmd User' name execute 'doautocmd User' name