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

View File

@ -129,3 +129,11 @@ Plug 'pdurbin/vim-tsv'
" Themes " Themes
Plug 'altercation/vim-colors-solarized' Plug 'altercation/vim-colors-solarized'
Plug 'vim-scripts/wombat256.vim' 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()