mirror of
https://github.com/junegunn/vim-plug.git
synced 2025-12-09 02:14:46 +08:00
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:
4
plug.vim
4
plug.vim
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user