eshion / vim-sync

Automatic sync SFTP,FTP,... for buffers in vim
67 stars 22 forks source link

Can you give example of your configuration? #7

Open vicheanak opened 8 years ago

vicheanak commented 8 years ago

!/bin/sh

if [ "upload" == $1 ];then ncftpput -m -u login_name -p login_password -P 21 remote_host remote_path/$2 dirname $0/$2/$3 elif [ 'download' == $1 ];then ncftpget -u login_name -p login_password -P 21 remote_host dirname $0/$2 remote_path/$2/$3 fi

username: spider password:12345 remote_host: ftp.mysite.com remote_path: /hello/world

thanks

peidong commented 8 years ago

Same problem here. I am getting confused about how to use this plugin.

Thanks!

FoushWare commented 7 years ago

i can't use this plugin it always give me ./.sync: 2: [: upload: unexpected operator ./.sync: 4: [: download: unexpected operator