Wednesday, August 29, 2018

Re: Opening remote file with scp and netrw on Windows 7

* Oliver Graute (oliver.graute@gmail.com) wrote:
> :e scp://root@192.168.1.229:2222//home/root/output.log
>
> on Linux this is working fine. But on Windows 7 just a command line
> window is opening with this Error message:
>
> C:\Windows\system32\cmd.exe -c "pscp -q -P 2222 "root@192.168.1.229:/home/root/output.log" "C:\Users\OGR\AppData\Local\Temp\VIA3B61.log""
>
> The command "oot" is either misspelled or could not be found.
> shell returned 1
>
> Hit any key to close this window...
I also experienced this problem before on Windows, but it works pretty fine on my BSD, mac or Linux box. When I tried it on Windows with the isolated Vim, it failed. I then switched and tried it again under Cygwin on Windows, this time it worked fine. I believe that without installing wget, curl or something similar on the system or environment, you will not be able to open any remote files with Vim. So IMHO, the problem you are encountering is not Vim itself, but the environment you are using.

--
Gua Chung Lim

"UNIX is basically a simple operating system,
but you have to be a genius to understand the simplicity."
-- Dennis M. Ritchie

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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: