Coder Social home page Coder Social logo

vim-sync's People

Contributors

camilledejoye avatar eshion avatar ruchee avatar shpontex avatar tuch avatar w169q169 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

vim-sync's Issues

Can you give example of your configuration?

!/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

Zsh problem with spaces within directory

Hi, I'm getting an error when running this script. I believe it has something to do with spaces in the current directory, but I'm not sure how to fix.

This is the error:

zsh:1: no such file or directory: /Users/maarten/Google
shell returned 127

Can you help me out?

Getting "expect: option requires..." error

When I use vim-sync and type my leader key followed by "su", I get the following error:

expect: option requires an argument -- c    
usage: expect [-div] [-c cmds] [[-f] cmdfile] [args]
shell returned 1.
Press ENTER or type command to continue

I copy-pasted the sftp code as shown into an executable .sync file and then changed "login_name" and the 1.2.3.4 IP address to my login name and the server's IP address.

Any ideas on how to fix this?

Thanks.

Error with newer versions of VIM

I have a MacBook Pro with OSX 10.9, and I came to notice your documentation is wrong.

Instead of having the configuration script for sftp

expect -c <<'END_EXPECT'

Actually, there is no needed expect at all...

With this command it will work the same:

#!/bin/sh
case "$1" in
    upload)
        cmd="put $3 /var/www/localhost/htdocs/dev1.site.org/$3"
        ;;
    download)
        cmd="get /var/www/localhost/htdocs/dev1.site.org/$3 $3"
        ;;
esac
echo "$cmd" | sftp -i /Users/myuser/.ssh/private.key [email protected] 

You can refer to: http://bit.ly/YdIzyH

rsync uploading a file to a folder that not existed on the server.

I found that something got wrong when uploading a file to a folder that not existed on the server.
just change

rsync -azcuv -e "/bin/ssh -p36000 -q" `dirname $0`/$2/$3 login_name@remote_host:/remote_path/$2/$3

to

rsync -azcuv -e "/bin/ssh -p36000 -q" `dirname $0`/$2/$3 login_name@remote_host:/remote_path/$2/

can work better~

Several errors in examples

Your shell script examples use /bin/sh as the interpreter but use bash equality checks, which break the script right from the get-go.
You also mention our .emacs file right at the end, but this is not an emacs plugin. Is it?

SFTP Configuration example?

Hello,

Can you give me configuration example of sftp?
I got confuse with current configuration example on the documentation

If I had this configuration, where should I insert it?
Host : 10.3.2.1
username : root
password : 123456
dir_location : /var/www/html/test

Thanks for your help.
Cheers

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.