Aman Jain wrote:
> Hi,
>
> I am using Vim 7.2 on windows.
> I tried to open a remote file using ":Nread 
> scp://a...@lnx-server//ws/aman/test.c"
>
> But I am getting this error...
>
> C:\WINDOWS\system32\cmd.exe /c "c:\\aman\\sw\\pscp.exe" -q -batch
> "a...@lnx-server:/ws/aman/test.c" "C:\DOCUME~1\aman\LOCALS~1\Temp
> \VIA217.c"
> The filename, directory name, or volume label syntax is incorrect.
> shell returned 1
> Hit any key to close this window...
>
> The problem seems to be that the argument to pscp.exe i.e
> usern...@server:/path is surrounded by quotes.
> If I manually try to copy this file to a temporary location, it works
> fine.
>
> Now, I found people talking about removing single quotes from
> netrw.vim, but unfortunately that's for vim 7.0 (http://vim.wikia.com/
> wiki/Using_PuTTY_pscp_with_Vim)
>   
It looks like you're using the cmd.exe shell.  You might try

  :set shq=

and see if that fixes the problem.  If it does, presumably something is 
setting your shell quoting character.  To find out more about it,

 :verbose set shq?

should tell you the current value and where it was last changed.

Regards,
Chip Campbell


--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to