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

This commit is contained in:
Junegunn Choi committed 2015-05-20 01:38:05 +09:00
1 parent 179fa7bb82
commit 7ace0c42db
3 files changed
+22

No files matched your search

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