Thursday, March 4, 2010

Re: Vim with ssh

On Mar 4, 11:01 pm, Charles Campbell <Charles.E.Campb...@nasa.gov>
wrote:
> mikeyaowrote:
> > 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 mike...@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://mike...@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

I'm glad to collect this tip in help file. :)

--
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: