gorillamoe / 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.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

License:MIT License


Languages

Language:Vim Script 100.0%