netrw.vim

Network oriented reading, writing, and browsing.

Netrw supports reading and writing files across networks.  One may use urls for filenames or one may use netrw’s Nread and Nwrite commands. Netrw as provided here supports remote and local directory browsing, and supports  editing files across the network using a variety of methods.

# REMOTE EDITING

:e dav://machine[:port]/path    
:e fetch://[user@]machine/path
:e ftp://[user@]machine[[:#]port]/path
:e http://[user@]machine/path
:e rcp://[user@]machine/path
:e rsync://[user@]machine[:port]/path
:e scp://[user@]machine[[:#]port]/path
:e sftp://[user@]machine/path

# REMOTE READING

:Nread ?
:Nread "machine:path"
:Nread "dav://machine[:port]/path"
:Nread "fetch://[user@]machine/path"
:Nread "ftp://[user@]machine[[:#]port]/path"
:Nread "http://[user@]machine/path"
:Nread "rcp://[user@]machine/path"
:Nread "rsync://[user@]machine[:port]/path"
:Nread "scp://[user@]machine[[:#]port]/path"
:Nread "sftp://[user@]machine/path"

# REMOTE WRITING

:Nwrite ?
:Nwrite "machine:path"
:Nwrite "machine path"
:Nwrite "dav://machine[:port]/path"
:Nwrite "ftp://[user@]machine[[:#]port]/path"
:Nwrite "rcp://[user@]machine/path"
:Nwrite "rsync://[user@]machine[:port]/path"
:Nwrite "scp://[user@]machine[[:#]port]/path"
:Nwrite "sftp://[user@]machine/path"

http: not supported!

# REMOTE DIRECTORY BROWSING

:e [protocol]://[user]@hostname/path/
:Nread [protocol]://[user]@hostname/path/

# LOCAL DIRECTORY BROWSING

:e /some/path/to/a/directory

Netrw supports browsing both local and remote directories.  For remote directory browsing, one must include a trailing slash (/) on the path!

For remote directory browsing, the [protocol]://[user]@hostname/path/ is user-directory relative.  If you want to specify a full path, use another slash before the path: [protocol]://[user]@hostname//path/.