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:
parent
6246ad284c
commit
b082ae3847
1 changed files with 2 additions and 2 deletions
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
|
||||||
|
|
Loading…
Reference in a new issue