Add saving and loading of plug snapshots

This commit is contained in:
ViViDboarder 2021-08-24 09:15:25 -07:00
parent 41ef5dc30f
commit 75261eb20a
1 changed files with 8 additions and 0 deletions

View File

@ -129,3 +129,11 @@ Plug 'pdurbin/vim-tsv'
" Themes
Plug 'altercation/vim-colors-solarized'
Plug 'vim-scripts/wombat256.vim'
" Saving and loading specific versions of plugins
call s:source_rc('plug-snapshot.rc.vim')
function! s:save_snapshot()
let l:f_path = fnameescape(expand('~/.vim/rc/plug-snapshot.rc.vim'))
execute 'PlugSnapshot!' . l:f_path
endfunction
command! SavePlugSnapshot call s:save_snapshot()