hesselbom / vim-hsftp

Vim: Upload and download files through sftp
38 stars 16 forks source link

upload on save? #14

Closed pyaf closed 5 years ago

pyaf commented 5 years ago

Hi, I really appreciate your effort for vim-hsftp plugin, I really like it. Does it have any feature of uploading file on save?

kolosseo commented 5 years ago

Hi, I really appreciate your effort for vim-hsftp plugin, I really like it. Does it have any feature of uploading file on save?

pyaf, I just published a fork who does exactly this: https://github.com/kolosseo/vim-easy-sync

pyaf commented 5 years ago

@kolosseo Thannk you so much!, will check it out soon.

hozza commented 5 years ago

@pyaf an auto upload feature should be implemented shortly when pull-request #15 is merged (coming soon!).

hozza commented 5 years ago

@kolosseo it looks like your project fork has moved on quite a bit from vim-hsftp in recent years - but if you do have improvements you'd like to contribute feel free to submit them as a pull-request!

kolosseo commented 5 years ago

@hozza yes, I moved a bit forward to use rsync also, but my project is actually not complete.

Anyway, to add the auto upload on save, should work by simply adding this line at the end of the script:

autocmd BufWritePost * :call H_UploadFile()
hozza commented 5 years ago

@kolosseo thanks! I've got a PR with a similar solution - too be merged soon!