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 ?

bumped to the homepage by Community 2 days ago

This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.

  • Did my answer solve the problem? If so please accept it (plus upvote it if you feel it warrants that). If not I'd like to hear what I missed. – B Layer Jul 26 at 5:39
0

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, privacy policy and cookie policy

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