Skip to content

Me1onRind/EscSync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EscSync

Sync any your configuration file to remote. Currently only support gist.

Gist: https://gist.github.com
Generate github token: https://github.com/settings/tokens/new

Install

vim-plug

Plug 'Me1onRind/EscSync'

Usage

After configuration plugin, you can use vim to open the configuration file and use :PushConfig and :PullConfig command to synchronize the configuration file.

Example

Use EscSync sync .vimrc

Edit ~/.vimrc.

let g:esc_sync_github_token = "ghp_xxxxxxxxxxxxxxxxxx"
let g:esc_sync_gist_id = "8b3b26ebe17149d54487a3xxxxxxxxxx"
" let g:esc_sync_backup = 0
let g:esc_sync_files = {
    \ "~/.vimrc": {"remote_filename": ".vimrc"},
    \ "/private/tmp/": {"remote_prefix": "tmp"},
\ }

If you don't want to save your token in .vimrc, you can set it by environment variable.

EXPORT ESC_SYNC_GITHUB_TOKEN = "ghp_xxxxxxxxxxxxxxxxxx"

When you push or pull, you must use Vim to open the target file.
Sync ~/.vimrc to remote.

Sync ~/.vimrc form remote.

About

Sync your configuration to remote, such as vimrc. You can use EscSync to manage your configure of editor, shell, etc.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published