Wednesday, August 29, 2018

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

On Tue, Aug 28, 2018 at 09:22:04PM +0200, Oliver Graute wrote:
> Hello list,
>
> I tried to open a remote file in Vim with this command:
>
> :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'am using vim 8.0 with netrw v156
> Some hints howto fix this?

I guess this has nothing to do with vim, but is in the way Windows
translates and interprets your scp command.

when using (g)vim in Windows, just use the proper command for that
environment ('pscp' ?), so it doesn't need to be translated.

the "oot" error output indeed is somewhat strange...

//meine

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

Post a Comment