You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've finally found out that netrw replaces colon with slash in path to a temporary file and inserts slash at the beginning of the path. Consequently, the content of remote file cannot be copied to local temporary copy over scp on windors.
Path to temporary file (tmpfile) is modified here:
let tmpfile_get =substitute(tr(tmpfile, '\', '/'), '^\(\a\):[/\\]\(.*\)$', '/\1/\2', '')
else
I have no idea when the path substitution helps but it may be really annoying when you use scp utility and its directory is added to PATH environmental variable.
letg:netrw_scp_cmd='scpg3.exe -q'" Tectia Client
Workaround
It works when you undo substitutions in temporary file path.
Insert this line in autoload/netrw.vim file in if statement after substitution.
let tmpfile_get = tmpfile
but it's probably better to modify the condition in if statement...
The text was updated successfully, but these errors were encountered:
Encountered this exact issue on Windows using gVim, LKI's solution worked for me. Is there a way to solve this without editing autoload/netrw.vim? For example, is there a way to apply this hotfix from my user's vim configuration so I can put it under version control?
Hi,
I've finally found out that
netrw
replaces colon with slash in path to a temporary file and inserts slash at the beginning of the path. Consequently, the content of remote file cannot be copied to local temporary copy overscp
on windors.Path to temporary file (
tmpfile
) is modified here:vim/runtime/autoload/netrw.vim
Lines 2101 to 2103 in 7f1664e
I have no idea when the path substitution helps but it may be really annoying when you use
scp
utility and its directory is added toPATH
environmental variable.Workaround
It works when you undo substitutions in temporary file path.
Insert this line in
autoload/netrw.vim
file inif
statement after substitution.but it's probably better to modify the condition in
if
statement...The text was updated successfully, but these errors were encountered: