call vimrc#git#use('https://github.com/Shougo/dpp.vim') let g:vimrc#dpp_base = '/tmp/dpp' if dpp#min#load_state(g:vimrc#dpp_base) autocmd User Dpp:makeStatePost quit! source $VIMDIR/conf/makestate.vim finish endif filetype plugin indent on autocmd FileType * syntax on " adhoc hook let s:hook_file = '/tmp/inline.vim/' .. ($VIMDIR .. 'dpp_hook.vim')->substitute('/', '_', 'g') if getftype(s:hook_file) ==# 'file' execute 'source' s:hook_file finish else let s:sokutei = v:false let s:inline = s:sokutei ? ['let s:jikan = reltime()'] : [] for s:plugin in dpp#_plugins->values() if s:plugin.sourced && has_key(s:plugin, 'hook_source') call add(s:inline, s:plugin.hook_source->trim()) if s:sokutei call add(s:inline, printf('echomsg "hook_source %s " .. reltimestr(reltime(s:jikan))', s:plugin.name)) endif endif endfor call mkdir('/tmp/inline.vim', 'p') call writefile(s:inline->join("\n")->split("\n"), s:hook_file) execute 'source' s:hook_file endif