1
0
Fork 0
mirror of synced 2024-12-26 00:33:20 -05:00

Copy sources_non_forked contents to cache folder if cache folder does not exist yet

This commit is contained in:
Wu Tingfeng 2022-11-21 23:38:49 +08:00
parent 378168c979
commit 51f8a2a9a3
No known key found for this signature in database

View file

@ -10,6 +10,9 @@
"""""""""""""""""""""""""""""" """"""""""""""""""""""""""""""
let s:vim_runtime = expand('<sfile>:p:h')."/.." let s:vim_runtime = expand('<sfile>:p:h')."/.."
call pathogen#infect(s:vim_runtime.'/sources_forked/{}') call pathogen#infect(s:vim_runtime.'/sources_forked/{}')
if !isdirectory(s:vim_runtime.'/sources_non_forked_cache')
call system("cp -r " . s:vim_runtime.'/sources_non_forked' . " " . s:vim_runtime.'/sources_non_forked_cache')
endif
call pathogen#infect(s:vim_runtime.'/sources_non_forked_cache/{}') call pathogen#infect(s:vim_runtime.'/sources_non_forked_cache/{}')
call pathogen#infect(s:vim_runtime.'/my_plugins/{}') call pathogen#infect(s:vim_runtime.'/my_plugins/{}')
call pathogen#helptags() call pathogen#helptags()