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
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