Home

Awesome

vim-arsync :octopus:

vim plugin for asynchronous synchronisation of remote files and local files using rsync

Main features

Installation

Dependencies

Using vim-plug

Place this in your .vimrc:

Plug 'kenn7/vim-arsync'

" vim-arsync depedencies
Plug 'prabirshrestha/async.vim'

... then run the following in Vim:

:source %
:PlugInstall

Using Packer

use {'kenn7/vim-arsync',
    requires = {
        {'prabirshrestha/async.vim'}
    }
}

... then run the following in Vim:

:source %
:PackerSync

Configuration

Create a .vim-arsync file on the root of your project that contains the following:

remote_host     example.com
remote_user    john
remote_port    22
remote_passwd  secret 
remote_path     ~/temp/
local_path    /home/ken/temp/vuetest/
ignore_path     ["build/","test/"]
ignore_dotfiles 1
auto_sync_up    0
remote_or_local remote
sleep_before_sync 0

Required fields are:

Optional fields are:

NOTE:

Usage

If auto_sync_up is set to 1, the plugin will automatically launch the :ARsyncUP command everytime a buffer is saved.

Setting rsync_flags to include -ul, for example, will use rsync's 'update' feature and will also copy over symlinks. Check out rsync's man page to see all the options it supports.

Commands

Commands can be mapped to keyboard shortcuts enhance operations

TODO

Acknowledgements

This plugin was inspired by vim-hsftp but vim-arsync offers more (rsync, ignore, async...).

This plugins uses the async.vim library for async operation with vim and neovim.

Similar projects