1

I can use :Explore to go through the current directory and open new files when I use vim locally. But when I use netrw to edit remote files, I cannot do it. For example, I opened a remote file with vim sftp://name@url//path/to/file.txt. I opened a file for me. But when I run :Explore, I find no tree-like folder structures showed to me. How could I go through the remote files like I did when I edit my local files ?

0

1 Answer 1

1

From netrw.vim : Network oriented reading, writing, and browsing

REMOTE DIRECTORY BROWSING
    :e [protocol]://[user]@hostname/path/
    :Nread [protocol]://[user]@hostname/path/ 

Note that these commands use directory paths only. (In your example you include a file.)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.