Thursday, March 4, 2010

Re: Vim with ssh

mikeyao wrote:
> I solved problem.
>
> If you want to use vim via ssh depend on putty under windows, it must
> combine pscp/psftp with plink. pscp/psftp used to connect, plink used
> to execute command on server, for example: list files and directory in
> 'ls'.
>
> This is my settings:
>
> '' list files, it's the key setting, if you haven't set, you will get
> blank buffer
> let g:netrw_list_cmd = "plink mikeyao@192.168.1.102 ls -Fa"
> " if you haven't add putty directory in system path, you should
> specify scp/sftp command
> "let g:netrw_sftp_cmd = "d:\\dev\\putty\\PSFTP.exe"
> "let g:netrw_scp_cmd = "d:\\dev\\putty\\PSCP.exe"
> set dir=C:\vim-temp
>
> usage:
> :e scp://mikeyao@192.168.1.102/htdocs/
> The last character must be a slash to mean you want to get files list.
>
>
Hello -- do you mind if I put an edited version of this into netrw's help?

Regards,
Chip Campbell

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments:

Post a Comment