I'm trying to use the netrw plugin with Vim 7 on Windows to edit files
using the scp protocol.  My scp client of choice is pscp.

The netrw help includes instructions for using pscp, but it's broken on
Windows because the netrw plugin tries to surround your hostname with
single quotes.  Here's what is sent to the command line when I try and
open a file using scp:

    C:\WINDOWS\system32\cmd.exe /c "C:\WINDOWS\system32\pscp.exe" -q
'foo.domain.com:/some/dir/file.txt' VIG3E.tmp.profile

When this command string is executed, the following error is returned:

    ssh_init: Host does not exist
    shell returned 1

When I execute this same command outside of Vim without the single quotes,
it works.

I found the following link related to this problem:

* <http://www.vim.org/tips/tip.php?tip_id=1181>

It states that this problem was introduced by Vim 7 didn't exist in
version 6.  Would this be considered a bug then?  If not, is there
anything I can do to replace the single quotes with either a) nothing at
all or b) double quotes?

Thanks in advance!

Tom Purl

Reply via email to