Skip to content

A Vim/Neovim plugin to automatically upload files via rsync or sftp to a remote server when you write the contents of a buffer to disk.

License

Notifications You must be signed in to change notification settings

gorillamoe/AutoRemoteSync.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AutoRemoteSync.nvim

A Vim/Neovim plugin to automatically upload files via rsync or sftp to a remote server when you write the contents of a buffer to disk.

Only works with ssh-agent public key authentication and already unlocked key.

You need to have a .AutoRemoteSync.json configuration file in the current working directory of Vim/Neovim.

An example .AutoRemoteSync.json file would look like this:

{
	"type": "rsync",
        "remote": {
                "host": "example.com",
                "user": "root",
                "path": "/var/www/html"
        },
        "verbose": true
}

To enable the uploading of files on bufwrite, you need to call AutoRemoteSync#Enable() like so:

:call AutoRemoteSync#Enable()<CR>

To disable it again, call AutoRemoteSync#Disable() like so:

:call AutoRemoteSync#Disable()<CR>

About

A Vim/Neovim plugin to automatically upload files via rsync or sftp to a remote server when you write the contents of a buffer to disk.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published