Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/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.
https://github.com/gorillamoe/autoremotesync.nvim

neovim neovim-plugin sftp sftp-client sftp-upload vim vim-plugin vim-plugins vimscript

Last synced: 7 days ago
JSON representation

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.

Awesome Lists containing this project

README

        

# 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:

```json
{
"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()
```

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

```
:call AutoRemoteSync#Disable()
```