How save your .vimrc to remote storage like other IDEs, it's a problem for me. I didn't find any vim plugin meet my needs, so be inspired by terminus-sync-config, I write a plugin to do that. Currently only support gist, but it's extensible.
Feature
After configurate your gist id and local filepath and remote filename mapping, you can open your .vimrc, then use :PushConfig and :PullConfig to upload/donwload .vimrc.
Of course, It's support all text file.
Plugin
https://github.com/Me1onRind/EscSync
There is more detail in plugin's README.MD.
Top comments (2)
Alternative (simpler?) methods:
Method 1: Git Repository
If you have a dotfiles git repo, you can check in your
.vimrcto your repo:Then you can pull it down from other machines:
Method 2: GitHub Gist CLI
If you use the official GitHub CLI
ghcli, you can create a GitHub Gist with your.vimrc:Future syncs will require that you know the Gist ID. You can get it with
gh gist listand then update it withgh gist editor you can do it in one-line:This will allow you to fuzzy search through you GitHub gists, select the correct gist, and update the
.vimrcfile in the gist with.vimrcfile from your machine.Method 3: Vim Plugin
If you would like to sync vimrc from within Vim, you can create a vim command:
I think method1 or method2 is not concise, I will try method3, thank you.