Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/gorillamoe/autoremotesync.nvim
- Owner: gorillamoe
- License: mit
- Created: 2020-09-11T11:10:09.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2020-09-11T11:17:43.000Z (about 4 years ago)
- Last Synced: 2024-10-12T13:09:58.388Z (about 1 month ago)
- Topics: neovim, neovim-plugin, sftp, sftp-client, sftp-upload, vim, vim-plugin, vim-plugins, vimscript
- Language: Vim script
- Homepage:
- Size: 25.4 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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()
```