Trigger User autocmd when plugin is loaded on demand (#231)

This commit is contained in:
Junegunn Choi
2015-05-20 01:37:14 +09:00
parent 179fa7bb82
commit 7ace0c42db
3 changed files with 22 additions and 0 deletions

View File

@@ -388,6 +388,9 @@ function! s:lod(names, types)
for dir in a:types
call s:source(rtp, dir.'/**/*.vim')
endfor
if exists('#User#'.name)
execute 'doautocmd User' name
endif
endfor
endfunction