Created
January 24, 2023 14:31
-
-
Save sdkks/75d1d08ebba3591449a1406654dc063e to your computer and use it in GitHub Desktop.
Backup Vim Plugin State for "Plug"
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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