Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

<Plug>VinegarUp breaks scp directory traversing #111

Open
proever opened this issue Jul 8, 2019 · 1 comment
Open

<Plug>VinegarUp breaks scp directory traversing #111

proever opened this issue Jul 8, 2019 · 1 comment
Labels

Comments

@proever
Copy link

proever commented Jul 8, 2019

Once a remote buffer is opened in vim via, for example, vim scp://user@host/path/to/file.txt, pressing - to explore the enclosing directory no longer works.

This is due to the trailing / being stripped from the scp URL, leading to scp://user@host/path/to rather than scp://user@host/path/to/.

Typing :Explore does not cause this issue.

Interestingly, once the directory is successfully loading using :Explore, vinegar functions correctly.

@tpope tpope added the bug label Jul 11, 2019
@artem-nefedov
Copy link

This is still relevant.
Fix looks very simple: add '/' at the end after expanding '%:h'.
This makes it so netrw correctly opens directory for remote edits.
For local edits, it should make no difference.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants