From 75261eb20ab2fb249672385082897b0ddbc88e1d Mon Sep 17 00:00:00 2001 From: ViViDboarder Date: Tue, 24 Aug 2021 09:15:25 -0700 Subject: [PATCH] Add saving and loading of plug snapshots --- vim/rc/plugins.rc.vim | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/vim/rc/plugins.rc.vim b/vim/rc/plugins.rc.vim index 4615d6a..fa838f8 100644 --- a/vim/rc/plugins.rc.vim +++ b/vim/rc/plugins.rc.vim @@ -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()