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) Here are the relevant lines form my netrw.vim, please suggest how to proceed: 821: exe s:netrw_silentxfer."!".g:netrw_scp_cmd.useport." ".shellescape(g:netrw_machine.":".b:netrw_fname,1)." ".shellescape (tmpfile,1) 1187: exe s:netrw_silentxfer."!".g:netrw_scp_cmd.useport." ".shellescape(tmpfile,1)." ".shellescape (g:netrw_machine.":".b:netrw_fname,1) 4820: exe s:netrw_silentxfer."!".g:netrw_scp_cmd.shellescape (useport,1)." ".filelist." ".shellescape(tgtdir,1) 5100: exe s:netrw_silentxfer."!".g:netrw_scp_cmd.shellescape (useport,1)." ".args." ".shellescape(machine.":".tgt,1) TIA Aman Jain India --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
