Skip to content

Instantly share code, notes, and snippets.

@sdkks
Created January 24, 2023 14:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sdkks/75d1d08ebba3591449a1406654dc063e to your computer and use it in GitHub Desktop.
Save sdkks/75d1d08ebba3591449a1406654dc063e to your computer and use it in GitHub Desktop.
Backup Vim Plugin State for "Plug"
# vim:set ft=sh:
backup_neovim(){
/usr/local/bin/nvim -S $DOTFILES/vim/plug_snapshot.vim
}
restore_neovim(){
/usr/local/bin/nvim -S $DOTFILES/vim/nvim.lock
}
silent! PlugSnapshot
w ! tee $HOME/.dotfiles/vim/nvim.lock
q
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment