2005-11-23 21:25:05 +00:00
|
|
|
*pi_netrw.txt* For Vim version 7.0. Last change: Aug 31, 2005
|
2004-06-13 20:20:40 +00:00
|
|
|
|
|
|
|
|
2005-11-23 21:25:05 +00:00
|
|
|
VIM REFERENCE MANUAL by Charles E. Campbell, Jr.
|
2005-09-29 18:26:07 +00:00
|
|
|
|
2004-06-20 12:51:53 +00:00
|
|
|
*dav* *http* *network* *rcp* *scp*
|
|
|
|
*fetch* *netrw* *Nread* *rsync* *sftp*
|
|
|
|
*ftp* *netrw.vim* *Nwrite* *netrw-file*
|
2004-06-13 20:20:40 +00:00
|
|
|
|
|
|
|
==============================================================================
|
|
|
|
0. Contents *netrw-contents*
|
|
|
|
|
2005-08-01 21:58:57 +00:00
|
|
|
1. Netrw Reference......................................|netrw-ref|
|
2005-08-16 23:01:50 +00:00
|
|
|
CONTROLLING EXTERNAL APPLICTIONS...................|netrw-externapp|
|
|
|
|
READING............................................|netrw-read|
|
|
|
|
WRITING............................................|netrw-write|
|
|
|
|
DIRECTORY LISTING..................................|netrw-dirlist|
|
|
|
|
CHANGING THE USERID AND PASSWORD...................|netrw-chgup|
|
|
|
|
VARIABLES..........................................|netrw-variables|
|
|
|
|
PATHS..............................................|netrw-path|
|
2005-08-01 21:58:57 +00:00
|
|
|
2. Network-Oriented File Transfer.......................|netrw-xfer|
|
|
|
|
NETRC..............................................|netrw-netrc|
|
|
|
|
PASSWORD...........................................|netrw-passwd|
|
|
|
|
3. Activation...........................................|netrw-activate|
|
|
|
|
4. Transparent File Transfer............................|netrw-transparent|
|
|
|
|
5. Ex Commands..........................................|netrw-ex|
|
|
|
|
6. Variables and Options................................|netrw-var|
|
2005-11-23 21:25:05 +00:00
|
|
|
7. Directory Browser....................................|netrw-browse| {{{1
|
2005-08-01 21:58:57 +00:00
|
|
|
Maps...............................................|netrw-maps|
|
|
|
|
Exploring..........................................|netrw-explore-cmds|
|
|
|
|
Quick Reference Commands Table.....................|netrw-browse-cmds|
|
|
|
|
Netrw Browser Variables............................|netrw-browse-var|
|
|
|
|
Introduction To Directory Browsing.................|netrw-browse-intro|
|
|
|
|
Directory Exploring Commands.......................|netrw-explore|
|
|
|
|
Refreshing The Listing.............................|netrw-ctrl-l|
|
|
|
|
Going Up...........................................|netrw--|
|
|
|
|
Browsing...........................................|netrw-cr|
|
2005-09-10 19:22:57 +00:00
|
|
|
Obtaining A File...................................|netrw-O|
|
|
|
|
Thin, Long, and Wide Listings......................|netrw-i|
|
2005-08-01 21:58:57 +00:00
|
|
|
Making A New Directory.............................|netrw-d|
|
|
|
|
Deleting Files Or Directories......................|netrw-delete|
|
|
|
|
Renaming Files Or Directories......................|netrw-move|
|
2005-09-29 18:26:07 +00:00
|
|
|
Hiding Files Or Directories........................|netrw-a|
|
2005-08-01 21:58:57 +00:00
|
|
|
Edit File Or Directory Hiding List.................|netrw-h|
|
|
|
|
Browsing With A Horizontally Split Window..........|netrw-o|
|
|
|
|
Preview Window.....................................|netrw-p|
|
|
|
|
Selecting Sorting Style............................|netrw-s|
|
|
|
|
Editing The Sorting Sequence.......................|netrw-S|
|
|
|
|
Reversing Sorting Order............................|netrw-r|
|
|
|
|
Changing To A Predecessor Directory................|netrw-u|
|
|
|
|
Changing To A Successor Directory..................|netrw-U|
|
|
|
|
Browsing With A Vertically Split Window............|netrw-v|
|
|
|
|
Customizing Browsing With A User Function..........|netrw-x|
|
|
|
|
Making The Browsing Directory The Current Directory|netrw-c|
|
2005-09-10 19:22:57 +00:00
|
|
|
Bookmarking A Directory............................|netrw-b| |netrw-Nb|
|
|
|
|
Changing To A Bookmarked Directory.................|netrw-B| |netrw-NB|
|
2005-08-01 21:58:57 +00:00
|
|
|
Listing Bookmarks And History......................|netrw-q|
|
2005-09-10 19:22:57 +00:00
|
|
|
Improving Directory Browsing.......................|netrw-listhack| }}}1
|
2005-08-01 21:58:57 +00:00
|
|
|
8. Problems and Fixes...................................|netrw-problems|
|
|
|
|
9. Debugging............................................|netrw-debug|
|
|
|
|
10. History..............................................|netrw-history|
|
|
|
|
11. Credits..............................................|netrw-credits|
|
2004-06-13 20:20:40 +00:00
|
|
|
|
2005-08-16 23:01:50 +00:00
|
|
|
The Netrw plugin is generally sourced automatically as it is a
|
|
|
|
|standard-plugin|. That said, to make use of netrw, one must
|
|
|
|
have plugins available which can be done with the following
|
|
|
|
two lines in your <.vimrc>:
|
2004-06-13 20:20:40 +00:00
|
|
|
|
2004-06-20 12:51:53 +00:00
|
|
|
set nocp " 'compatible' is not set
|
|
|
|
filetype plugin on " plugins are enabled
|
2004-06-13 20:20:40 +00:00
|
|
|
|
|
|
|
You can avoid loading this plugin by setting the "loaded_netrw" variable
|
|
|
|
in your <.vimrc> file: >
|
|
|
|
|
|
|
|
:let loaded_netrw = 1
|
|
|
|
|
|
|
|
{Vi does not have any of this}
|
|
|
|
|
|
|
|
==============================================================================
|
|
|
|
1. Netrw Reference *netrw-ref*
|
|
|
|
|
2005-08-16 23:01:50 +00:00
|
|
|
CONTROLLING EXTERNAL APPLICTIONS *netrw-externapp*
|
|
|
|
|
|
|
|
Protocol Variable Default Value
|
|
|
|
-------- ---------------- -------------
|
|
|
|
dav: *g:netrw_dav_cmd* = "cadaver"
|
|
|
|
fetch: *g:netrw_fetch_cmd* = "fetch -o"
|
|
|
|
ftp: *g:netrw_ftp_cmd* = "ftp"
|
|
|
|
http: *g:netrw_http_cmd* = "fetch -o" if fetch is available
|
|
|
|
http: g:netrw_http_cmd = "wget -q -O" If wget is available
|
|
|
|
rcp: *g:netrw_rcp_cmd* = "rcp"
|
|
|
|
rsync: *g:netrw_rsync_cmd* = "rsync -a"
|
|
|
|
scp: *g:netrw_scp_cmd* = "scp -q"
|
|
|
|
sftp: *g:netrw_sftp_cmd* = "sftp"
|
|
|
|
|
|
|
|
READING *netrw-read* *netrw-nread*
|
2004-06-13 20:20:40 +00:00
|
|
|
:Nread ? give help
|
2004-09-02 19:12:26 +00:00
|
|
|
:Nread "machine:path" uses rcp
|
2005-08-16 23:01:50 +00:00
|
|
|
:Nread "machine path" uses ftp w/ <.netrc>
|
2004-09-02 19:12:26 +00:00
|
|
|
:Nread "machine id password path" uses ftp
|
|
|
|
:Nread "dav://machine[:port]/path" uses cadaver
|
|
|
|
:Nread "fetch://[user@]machine/path" uses fetch
|
2005-08-16 23:01:50 +00:00
|
|
|
:Nread "ftp://[user@]machine[[:#]port]/path" uses ftp w/ <.netrc>
|
2004-09-02 19:12:26 +00:00
|
|
|
:Nread "http://[user@]machine/path" uses http uses wget
|
|
|
|
:Nread "rcp://[user@]machine/path" uses rcp
|
|
|
|
:Nread "rsync://[user@]machine[:port]/path" uses rsync
|
|
|
|
:Nread "scp://[user@]machine[[:#]port]/path" uses scp
|
|
|
|
:Nread "sftp://[user@]machine/path" uses sftp
|
|
|
|
|
2005-08-16 23:01:50 +00:00
|
|
|
WRITING *netrw-write* *netrw-nwrite*
|
2004-06-20 12:51:53 +00:00
|
|
|
:Nwrite ? give help
|
2004-09-02 19:12:26 +00:00
|
|
|
:Nwrite "machine:path" uses rcp
|
2005-08-16 23:01:50 +00:00
|
|
|
:Nwrite "machine path" uses ftp w/ <.netrc>
|
2004-09-02 19:12:26 +00:00
|
|
|
:Nwrite "machine id password path" uses ftp
|
|
|
|
:Nwrite "dav://machine[:port]/path" uses cadaver
|
2005-08-16 23:01:50 +00:00
|
|
|
:Nwrite "ftp://[user@]machine[[:#]port]/path" uses ftp w/ <.netrc>
|
2004-09-02 19:12:26 +00:00
|
|
|
:Nwrite "rcp://[user@]machine/path" uses rcp
|
|
|
|
:Nwrite "rsync://[user@]machine[:port]/path" uses rsync
|
|
|
|
:Nwrite "scp://[user@]machine[[:#]port]/path" uses scp
|
|
|
|
:Nwrite "sftp://[user@]machine/path" uses sftp
|
2004-06-13 20:20:40 +00:00
|
|
|
http: not supported!
|
|
|
|
|
2005-08-16 23:01:50 +00:00
|
|
|
DIRECTORY LISTING *netrw-dirlist*
|
2004-06-20 12:51:53 +00:00
|
|
|
:Nread [protocol]://[user]@hostname/path/
|
|
|
|
|
2005-08-16 23:01:50 +00:00
|
|
|
CHANGING USERID AND PASSWORD *netrw-chgup*
|
2004-06-13 20:20:40 +00:00
|
|
|
Attempts to use ftp will prompt you for a user-id and a password.
|
|
|
|
These will be saved in g:netrw_uid and g:netrw_passwd Subsequent uses
|
|
|
|
of ftp will re-use those. If you need to use a different user id
|
|
|
|
and/or password, you'll want to call NetUserPass() first.
|
|
|
|
|
|
|
|
:NetUserPass [uid [password]] -- prompts as needed
|
|
|
|
:call NetUserPass() -- prompts for uid and password
|
|
|
|
:call NetUserPass("uid") -- prompts for password
|
|
|
|
:call NetUserPass("uid","password") -- sets global uid and password
|
|
|
|
|
2005-08-16 23:01:50 +00:00
|
|
|
VARIABLES *netrw-variables*
|
|
|
|
*b:netrw_lastfile* last file Network-read/written retained on a per-buffer
|
|
|
|
basis (supports plain :Nw )
|
2004-09-02 19:12:26 +00:00
|
|
|
|
2005-08-16 23:01:50 +00:00
|
|
|
*s:netrw_line* during :Nw/NetWrite, holds current line number
|
|
|
|
*s:netrw_col* during :Nw/NetWrite, holds current column number
|
|
|
|
s:netrw_line and s:netrw_col are used to
|
|
|
|
restore the cursor position on writes
|
|
|
|
|
|
|
|
*g:netrw_ftp* if it doesn't exist, use default ftp
|
|
|
|
=0 use default ftp (uid password)
|
|
|
|
=1 use alternate ftp method (user uid password)
|
|
|
|
If you're having trouble with ftp, try changing the
|
|
|
|
value of this variable to see if the alternate ftp
|
|
|
|
method works for your setup.
|
|
|
|
|
|
|
|
*g:netrw_ftpmode* ="binary" (default)
|
|
|
|
="ascii"
|
|
|
|
|
|
|
|
*g:netrw_ignorenetrc* =0 (default)
|
|
|
|
=1 If you have a <.netrc> file but it doesn't work and
|
|
|
|
you want it ignored, then set this variable as shown.
|
|
|
|
|
|
|
|
*g:netrw_uid* (ftp) user-id, retained on a per-session basis
|
|
|
|
*g:netrw_passwd* (ftp) password, retained on a per-session basis
|
|
|
|
|
|
|
|
*g:netrw_win95ftp* =1 if using Win95, will remove four trailing blank
|
|
|
|
lines that o/s's ftp "provides" on transfers
|
|
|
|
=0 force normal ftp behavior (no trailing line removal)
|
|
|
|
|
|
|
|
*g:netrw_cygwin* =1 assume scp under windows is from cygwin. Also
|
|
|
|
permits network browsing to use ls with time and
|
|
|
|
size sorting (default if windows)
|
|
|
|
=0 assume Windows' scp accepts windows-style paths
|
|
|
|
Network browsing uses dir instead of ls
|
|
|
|
This option is ignored if you're using unix
|
|
|
|
|
|
|
|
*g:netrw_use_nt_rcp* =0 don't use the rcp of WinNT, Win2000 and WinXP
|
|
|
|
=1 use WinNT's rcp in binary mode (default)
|
|
|
|
|
|
|
|
PATHS *netrw-path*
|
|
|
|
|
|
|
|
Paths to files are generally user-directory relative for most protocols.
|
|
|
|
It is possible that some protocol will make paths relative to some
|
|
|
|
associated directory, however.
|
|
|
|
>
|
|
|
|
example: vim scp://user@host/somefile
|
|
|
|
example: vim scp://user@host/subdir1/subdir2/somefile
|
|
|
|
<
|
|
|
|
where "somefile" is the "user"'s home directory. If you wish to get a
|
|
|
|
file using root-relative paths, use the full path:
|
|
|
|
>
|
|
|
|
example: vim scp://user@host//somefile
|
|
|
|
example: vim scp://user@host//subdir1/subdir2/somefile
|
|
|
|
<
|
2004-06-13 20:20:40 +00:00
|
|
|
|
|
|
|
==============================================================================
|
|
|
|
2. Network-Oriented File Transfer *netrw-xfer*
|
|
|
|
|
|
|
|
Network-oriented file transfer under Vim is implemented by a VimL-based script
|
2005-11-23 21:25:05 +00:00
|
|
|
(<netrw.vim>) using plugin techniques. It currently supports both reading
|
|
|
|
and writing across networks using rcp, scp, ftp or ftp+<.netrc>, scp, fetch,
|
2004-06-13 20:20:40 +00:00
|
|
|
dav/cadaver, rsync, or sftp.
|
|
|
|
|
|
|
|
http is currently supported read-only via use of wget or fetch.
|
|
|
|
|
|
|
|
<netrw.vim> is a standard plugin which acts as glue between Vim and the
|
|
|
|
various file transfer programs. It uses autocommand events (BufReadCmd,
|
|
|
|
FileReadCmd, BufWriteCmd) to intercept reads/writes with url-like filenames. >
|
|
|
|
|
|
|
|
ex. vim ftp://hostname/path/to/file
|
|
|
|
<
|
2005-11-23 21:25:05 +00:00
|
|
|
The characters preceding the colon specify the protocol to use;
|
|
|
|
in the example, its ftp. The <netrw.vim> script then formulates
|
|
|
|
a command or a series of commands (typically ftp) which it issues
|
|
|
|
to an external program (ftp, scp, etc) which does the actual file
|
|
|
|
transfer/protocol. Files are read from/written to a temporary file
|
|
|
|
(under Unix/Linux, /tmp/...) which the <netrw.vim> script will
|
|
|
|
clean up.
|
|
|
|
|
|
|
|
One may modify any protocol's implementing external application
|
|
|
|
by setting a variable (ex. scp uses the variable g:netrw_scp_cmd,
|
|
|
|
which is defaulted to "scp -q").
|
2004-06-13 20:20:40 +00:00
|
|
|
|
|
|
|
Ftp, an old protocol, seems to be blessed by numerous implementations.
|
2005-11-23 21:25:05 +00:00
|
|
|
Unfortunately, some implementations are noisy (ie., add junk to the end
|
|
|
|
of the file). Thus, concerned users may decide to write a NetReadFixup()
|
|
|
|
function that will clean up after reading with their ftp. Some Unix systems
|
|
|
|
(ie., FreeBSD) provide a utility called "fetch" which uses the ftp protocol
|
|
|
|
but is not noisy and more convenient, actually, for <netrw.vim> to use.
|
2004-06-13 20:20:40 +00:00
|
|
|
Consequently, if "fetch" is executable, it will be used to do reads for
|
|
|
|
ftp://... (and http://...) . See |netrw-var| for more about this.
|
|
|
|
|
|
|
|
For rcp, scp, sftp, and http, one may use network-oriented file transfers
|
2005-08-01 21:58:57 +00:00
|
|
|
transparently; ie.
|
2004-06-13 20:20:40 +00:00
|
|
|
>
|
|
|
|
vim rcp://[user@]machine/path
|
|
|
|
vim scp://[user@]machine/path
|
|
|
|
<
|
|
|
|
If your ftp supports <.netrc>, then it too can be just as transparently used
|
|
|
|
if the needed triad of machine name, user id, and password are present in
|
|
|
|
that file. Your ftp must be able to use the <.netrc> file on its own, however.
|
|
|
|
>
|
|
|
|
vim ftp://[user@]machine[[:#]portnumber]/path
|
|
|
|
<
|
|
|
|
However, ftp will often need to query the user for the userid and password.
|
2005-08-01 21:58:57 +00:00
|
|
|
The latter will be done "silently"; ie. asterisks will show up instead of
|
2004-06-13 20:20:40 +00:00
|
|
|
the actually-typed-in password. Netrw will retain the userid and password
|
|
|
|
for subsequent read/writes from the most recent transfer so subsequent
|
|
|
|
transfers (read/write) to or from that machine will take place without
|
|
|
|
additional prompting.
|
|
|
|
|
|
|
|
*netrw-urls*
|
|
|
|
+=================================+============================+============+
|
2004-06-20 12:51:53 +00:00
|
|
|
| Reading | Writing | Uses |
|
2004-06-13 20:20:40 +00:00
|
|
|
+=================================+============================+============+
|
2004-06-20 12:51:53 +00:00
|
|
|
| DAV: | | |
|
|
|
|
| dav://host/path | | cadaver |
|
|
|
|
| :Nread dav://host/path | :Nwrite dav://host/path | cadaver |
|
2004-06-13 20:20:40 +00:00
|
|
|
+---------------------------------+----------------------------+------------+
|
2004-06-20 12:51:53 +00:00
|
|
|
| FETCH: | | |
|
|
|
|
| fetch://[user@]host/path | | |
|
|
|
|
| fetch://[user@]host:http/path | Not Available | fetch |
|
|
|
|
| :Nread fetch://[user@]host/path| | |
|
2004-06-13 20:20:40 +00:00
|
|
|
+---------------------------------+----------------------------+------------+
|
2004-06-20 12:51:53 +00:00
|
|
|
| FILE: | | |
|
|
|
|
| file:///* | file:///* | |
|
|
|
|
| file://localhost/* | file://localhost/* | |
|
2004-06-13 20:20:40 +00:00
|
|
|
+---------------------------------+----------------------------+------------+
|
2004-06-20 12:51:53 +00:00
|
|
|
| FTP: (*3) | (*3) | |
|
|
|
|
| ftp://[user@]host/path | ftp://[user@]host/path | ftp (*2) |
|
|
|
|
| :Nread ftp://host/path | :Nwrite ftp://host/path | ftp+.netrc |
|
|
|
|
| :Nread host path | :Nwrite host path | ftp+.netrc |
|
|
|
|
| :Nread host uid pass path | :Nwrite host uid pass path | ftp |
|
2004-06-13 20:20:40 +00:00
|
|
|
+---------------------------------+----------------------------+------------+
|
2004-06-20 12:51:53 +00:00
|
|
|
| HTTP: wget is executable: (*4) | | |
|
|
|
|
| http://[user@]host/path | Not Available | wget |
|
2004-06-13 20:20:40 +00:00
|
|
|
+---------------------------------+----------------------------+------------+
|
2004-06-20 12:51:53 +00:00
|
|
|
| HTTP: fetch is executable (*4) | | |
|
|
|
|
| http://[user@]host/path | Not Available | fetch |
|
2004-06-13 20:20:40 +00:00
|
|
|
+---------------------------------+----------------------------+------------+
|
2004-06-20 12:51:53 +00:00
|
|
|
| RCP: | | |
|
|
|
|
| rcp://[user@]host/path | rcp://[user@]host/path | rcp |
|
2004-06-13 20:20:40 +00:00
|
|
|
+---------------------------------+----------------------------+------------+
|
2004-06-20 12:51:53 +00:00
|
|
|
| RSYNC: | | |
|
|
|
|
| rsync://[user@]host/path | rsync://[user@]host/path | rsync |
|
|
|
|
| :Nread rsync://host/path | :Nwrite rsync://host/path | rsync |
|
|
|
|
| :Nread rcp://host/path | :Nwrite rcp://host/path | rcp |
|
2004-06-13 20:20:40 +00:00
|
|
|
+---------------------------------+----------------------------+------------+
|
2004-06-20 12:51:53 +00:00
|
|
|
| SCP: | | |
|
|
|
|
| scp://[user@]host/path | scp://[user@]host/path | scp |
|
|
|
|
| :Nread scp://host/path | :Nwrite scp://host/path | scp (*1) |
|
2004-06-13 20:20:40 +00:00
|
|
|
+---------------------------------+----------------------------+------------+
|
2004-06-20 12:51:53 +00:00
|
|
|
| SFTP: | | |
|
|
|
|
| sftp://[user@]host/path | sftp://[user@]host/path | sftp |
|
|
|
|
| :Nread sftp://host/path | :Nwrite sftp://host/path | sftp (*1) |
|
2004-06-13 20:20:40 +00:00
|
|
|
+=================================+============================+============+
|
|
|
|
|
|
|
|
(*1) For an absolute path use scp://machine//path.
|
|
|
|
|
|
|
|
(*2) if <.netrc> is present, it is assumed that it will
|
|
|
|
work with your ftp client. Otherwise the script will
|
2004-06-20 12:51:53 +00:00
|
|
|
prompt for user-id and pasword.
|
2004-06-13 20:20:40 +00:00
|
|
|
|
2004-06-20 12:51:53 +00:00
|
|
|
(*3) for ftp, "machine" may be machine#port or machine:port
|
2004-06-13 20:20:40 +00:00
|
|
|
if a different port is needed than the standard ftp port
|
|
|
|
|
|
|
|
(*4) for http:..., if wget is available it will be used. Otherwise,
|
|
|
|
if fetch is available it will be used.
|
|
|
|
|
|
|
|
Both the :Nread and the :Nwrite ex-commands can accept multiple filenames.
|
|
|
|
|
|
|
|
|
|
|
|
NETRC *netrw-netrc*
|
|
|
|
|
|
|
|
The typical syntax for lines in a <.netrc> file is given as shown below.
|
|
|
|
Ftp under Unix usually support <.netrc>; Windows' ftp usually doesn't.
|
|
|
|
>
|
|
|
|
machine {full machine name} login {user-id} password "{password}"
|
|
|
|
default login {user-id} password "{password}"
|
|
|
|
|
|
|
|
Your ftp client must handle the use of <.netrc> on its own, but if the
|
|
|
|
<.netrc> file exists, an ftp transfer will not ask for the user-id or
|
|
|
|
password.
|
|
|
|
|
|
|
|
Note:
|
|
|
|
Since this file contains passwords, make very sure nobody else can
|
|
|
|
read this file! Most programs will refuse to use a .netrc that is
|
|
|
|
readable for others. Don't forget that the system administrator can
|
|
|
|
still read the file!
|
|
|
|
|
|
|
|
|
|
|
|
PASSWORD *netrw-passwd*
|
|
|
|
|
|
|
|
The script attempts to get passwords for ftp invisibly using |inputsecret()|,
|
|
|
|
a built-in Vim function. See |netrw-uidpass| for how to change the password
|
|
|
|
after one has set it.
|
|
|
|
|
2005-11-23 21:25:05 +00:00
|
|
|
Unfortunately there doesn't appear to be a way for netrw to feed a password
|
|
|
|
to scp. Thus every transfer via scp will require re-entry of the password.
|
2004-06-13 20:20:40 +00:00
|
|
|
|
|
|
|
|
|
|
|
==============================================================================
|
|
|
|
3. Activation *netrw-activate*
|
|
|
|
|
|
|
|
Network-oriented file transfers are available by default whenever
|
|
|
|
|'nocompatible'| mode is enabled. The <netrw.vim> file resides in your
|
2005-11-23 21:25:05 +00:00
|
|
|
system's vim-plugin directory and is sourced automatically whenever you
|
|
|
|
bring up vim.
|
|
|
|
|
2004-06-13 20:20:40 +00:00
|
|
|
|
|
|
|
==============================================================================
|
|
|
|
4. Transparent File Transfer *netrw-transparent*
|
|
|
|
|
|
|
|
Transparent file transfers occur whenever a regular file read or write
|
|
|
|
(invoked via an |:autocmd| for |BufReadCmd| or |BufWriteCmd| events) is made.
|
2005-11-23 21:25:05 +00:00
|
|
|
Thus one may use files across networks as if they were local. >
|
2004-06-13 20:20:40 +00:00
|
|
|
|
|
|
|
vim ftp://[user@]machine/path
|
|
|
|
...
|
|
|
|
:wq
|
|
|
|
|
|
|
|
|
|
|
|
==============================================================================
|
|
|
|
5. Ex Commands *netrw-ex*
|
|
|
|
|
|
|
|
The usual read/write commands are supported. There are also a couple of
|
|
|
|
additional commands available.
|
|
|
|
|
|
|
|
:[range]Nw Write the specified lines to the current
|
|
|
|
file as specified in b:netrw_lastfile.
|
|
|
|
|
|
|
|
:[range]Nw {netfile} [{netfile}]...
|
|
|
|
Write the specified lines to the {netfile}.
|
|
|
|
|
2005-11-23 21:25:05 +00:00
|
|
|
:Nread
|
|
|
|
Read the specified lines into the current
|
2004-06-13 20:20:40 +00:00
|
|
|
buffer from the file specified in
|
|
|
|
b:netrw_lastfile.
|
|
|
|
|
|
|
|
:Nread {netfile} {netfile}...
|
|
|
|
Read the {netfile} after the current line.
|
|
|
|
|
2005-09-29 18:26:07 +00:00
|
|
|
*netrw-uidpass*
|
2004-06-13 20:20:40 +00:00
|
|
|
:call NetUserPass()
|
|
|
|
If b:netrw_uid and b:netrw_passwd don't exist,
|
|
|
|
this function query the user for them.
|
|
|
|
|
|
|
|
:call NetUserPass("userid")
|
|
|
|
This call will set the b:netrw_uid and, if
|
|
|
|
the password doesn't exist, will query the user for it.
|
|
|
|
|
|
|
|
:call NetUserPass("userid","passwd")
|
|
|
|
This call will set both the b:netrw_uid and b:netrw_passwd.
|
|
|
|
The user-id and password are used by ftp transfers. One may
|
|
|
|
effectively remove the user-id and password by using ""
|
|
|
|
strings.
|
|
|
|
|
2005-08-16 23:01:50 +00:00
|
|
|
:NetrwSettings This command is desribed in |netrw-settings| -- used to
|
|
|
|
display netrw settings and change netrw behavior
|
|
|
|
|
2004-06-13 20:20:40 +00:00
|
|
|
|
|
|
|
==============================================================================
|
2004-06-20 12:51:53 +00:00
|
|
|
6. Variables and Options *netrw-options* *netrw-var*
|
2004-06-13 20:20:40 +00:00
|
|
|
|
|
|
|
The script <netrw.vim> uses several variables which can affect <netrw.vim>'s
|
|
|
|
behavior. These variables typically may be set in the user's <.vimrc> file:
|
2005-11-23 21:25:05 +00:00
|
|
|
>
|
|
|
|
-------------
|
|
|
|
Netrw Options
|
|
|
|
-------------
|
2004-06-20 12:51:53 +00:00
|
|
|
Option Meaning
|
|
|
|
-------------- -----------------------------------------------
|
|
|
|
<
|
|
|
|
b:netrw_col Holds current cursor position (during NetWrite)
|
|
|
|
g:netrw_cygwin =1 assume scp under windows is from cygwin
|
|
|
|
(default/windows)
|
|
|
|
=0 assume scp under windows accepts windows
|
|
|
|
style paths (default/else)
|
|
|
|
g:netrw_ftp =0 use default ftp (uid password)
|
|
|
|
g:netrw_ftpmode ="binary" (default)
|
|
|
|
="ascii" (your choice)
|
|
|
|
g:netrw_ignorenetrc =1 (default)
|
|
|
|
if you have a <.netrc> file but you don't
|
2004-06-13 20:20:40 +00:00
|
|
|
want it used, then set this variable. Its
|
|
|
|
mere existence is enough to cause <.netrc>
|
|
|
|
to be ignored.
|
2004-06-20 12:51:53 +00:00
|
|
|
b:netrw_lastfile Holds latest method/machine/path.
|
|
|
|
b:netrw_line Holds current line number (during NetWrite)
|
|
|
|
g:netrw_passwd Holds current password for ftp.
|
|
|
|
g:netrw_silent =0 transfers done normally
|
|
|
|
=1 transfers done silently
|
|
|
|
g:netrw_uid Holds current user-id for ftp.
|
2005-09-29 18:26:07 +00:00
|
|
|
=1 use alternate ftp (user uid password)
|
2004-06-20 12:51:53 +00:00
|
|
|
(see |netrw-options|)
|
|
|
|
g:netrw_use_nt_rcp =0 don't use WinNT/2K/XP's rcp (default)
|
|
|
|
=1 use WinNT/2K/XP's rcp, binary mode
|
|
|
|
g:netrw_win95ftp =0 use unix-style ftp even if win95/98/ME/etc
|
|
|
|
=1 use default method to do ftp >
|
|
|
|
-----------------------------------------------------------------------
|
|
|
|
<
|
2004-06-13 20:20:40 +00:00
|
|
|
The script will also make use of the following variables internally, albeit
|
|
|
|
temporarily.
|
2004-06-20 12:51:53 +00:00
|
|
|
>
|
|
|
|
-------------------
|
|
|
|
Temporary Variables
|
|
|
|
-------------------
|
|
|
|
Variable Meaning
|
|
|
|
-------- ------------------------------------
|
|
|
|
<
|
2004-06-13 20:20:40 +00:00
|
|
|
g:netrw_method Index indicating rcp/ftp+.netrc/ftp
|
|
|
|
g:netrw_machine Holds machine name parsed from input
|
2004-06-20 12:51:53 +00:00
|
|
|
g:netrw_fname Holds filename being accessed >
|
|
|
|
------------------------------------------------------------
|
|
|
|
<
|
2004-06-13 20:20:40 +00:00
|
|
|
*netrw-protocol*
|
2004-06-20 12:51:53 +00:00
|
|
|
|
|
|
|
Netrw supports a number of protocols. These protocols are invoked using the
|
|
|
|
variables listed below, and may be modified by the user.
|
2004-06-13 20:20:40 +00:00
|
|
|
>
|
|
|
|
------------------------
|
2004-06-20 12:51:53 +00:00
|
|
|
Protocol Control Options
|
2004-06-13 20:20:40 +00:00
|
|
|
------------------------
|
2004-06-20 12:51:53 +00:00
|
|
|
Option Type Setting Meaning
|
|
|
|
--------- -------- -------------- ---------------------------
|
|
|
|
<
|
|
|
|
netrw_ftp variable =doesn't exist userid set by "user userid"
|
|
|
|
=0 userid set by "user userid"
|
|
|
|
=1 userid set by "userid"
|
|
|
|
NetReadFixup function =doesn't exist no change
|
|
|
|
=exists Allows user to have files
|
|
|
|
read via ftp automatically
|
|
|
|
transformed however they wish
|
|
|
|
by NetReadFixup()
|
2004-06-13 20:20:40 +00:00
|
|
|
g:netrw_dav_cmd variable ="cadaver"
|
|
|
|
g:netrw_fetch_cmd variable ="fetch -o"
|
|
|
|
g:netrw_ftp_cmd variable ="ftp"
|
|
|
|
g:netrw_http_cmd variable ="fetch -o" else if fetch is executable
|
|
|
|
g:netrw_http_cmd variable ="wget -O" if wget is executable
|
2004-06-20 12:51:53 +00:00
|
|
|
g:netrw_list_cmd variable ="ssh HOSTNAME ls -Fa"
|
2004-06-13 20:20:40 +00:00
|
|
|
g:netrw_rcp_cmd variable ="rcp"
|
|
|
|
g:netrw_rsync_cmd variable ="rsync -a"
|
|
|
|
g:netrw_scp_cmd variable ="scp -q"
|
2004-06-20 12:51:53 +00:00
|
|
|
g:netrw_sftp_cmd variable ="sftp" >
|
|
|
|
-------------------------------------------------------------------------
|
2004-06-13 20:20:40 +00:00
|
|
|
<
|
2004-07-02 15:38:35 +00:00
|
|
|
*netrw-ftp*
|
2005-11-23 21:25:05 +00:00
|
|
|
The first two options both help with certain ftp's that give trouble otherwise.
|
|
|
|
In order to best understand how to use these options if ftp is giving you
|
|
|
|
troubles, a bit of discussion follows on how netrw does ftp reads.
|
2004-06-13 20:20:40 +00:00
|
|
|
|
2005-11-23 21:25:05 +00:00
|
|
|
The g:netrw_..._cmd variables specify the external program to use handle
|
|
|
|
the associated protocol (rcp, ftp, etc), plus any options.
|
2004-06-13 20:20:40 +00:00
|
|
|
|
2004-06-20 12:51:53 +00:00
|
|
|
The g:netrw_list_cmd's HOSTNAME entry will be changed via substitution with
|
|
|
|
whatever the current request is for a hostname.
|
|
|
|
|
|
|
|
For ftp, netrw typically builds up lines of one of the following formats in a
|
2004-06-13 20:20:40 +00:00
|
|
|
temporary file:
|
|
|
|
>
|
|
|
|
IF g:netrw_ftp !exists or is not 1 IF g:netrw_ftp exists and is 1
|
|
|
|
---------------------------------- ------------------------------
|
2004-06-20 12:51:53 +00:00
|
|
|
<
|
|
|
|
open machine [port] open machine [port]
|
|
|
|
user userid password userid password
|
|
|
|
[g:netrw_ftpmode] password
|
|
|
|
get filename tempfile [g:netrw_ftpmode]
|
|
|
|
get filename tempfile >
|
|
|
|
---------------------------------------------------------------------
|
2004-06-13 20:20:40 +00:00
|
|
|
<
|
|
|
|
Netrw then executes the lines above by use of a filter:
|
|
|
|
>
|
|
|
|
:%! {g:netrw_ftp_cmd} -i [-n]
|
|
|
|
<
|
|
|
|
|
|
|
|
where
|
|
|
|
g:netrw_ftp_cmd is usually "ftp",
|
|
|
|
-i tells ftp not to be interactive
|
|
|
|
-n means don't use netrc and is used for Method #3 (ftp w/o <.netrc>)
|
|
|
|
|
|
|
|
If <.netrc> exists it will be used to avoid having to query the user for
|
2004-06-20 12:51:53 +00:00
|
|
|
userid and password. The transferred file is put into a temporary file.
|
2004-06-13 20:20:40 +00:00
|
|
|
The temporary file is then read into the main editing session window that
|
|
|
|
requested it and the temporary file deleted.
|
|
|
|
|
2005-11-23 21:25:05 +00:00
|
|
|
If your ftp doesn't accept the "user" command and immediately just demands
|
|
|
|
a userid, then try putting "let netrw_ftp=1" in your <.vimrc>.
|
2004-06-13 20:20:40 +00:00
|
|
|
|
2004-07-02 15:38:35 +00:00
|
|
|
*netrw-cadaver*
|
|
|
|
To handle the SSL certificate dialog for untrusted servers, one may pull
|
|
|
|
down the certificate and place it into /usr/ssl/cert.pem. This operation
|
|
|
|
renders the server treatment as "trusted".
|
|
|
|
|
2005-08-01 21:58:57 +00:00
|
|
|
*netrw-fixup* *netreadfixup*
|
2004-06-13 20:20:40 +00:00
|
|
|
If your ftp for whatever reason generates unwanted lines (such as AUTH
|
|
|
|
messages) you may write a NetReadFixup(tmpfile) function:
|
|
|
|
>
|
|
|
|
function! NetReadFixup(method,line1,line2)
|
|
|
|
" a:line1: first new line in current file
|
|
|
|
" a:line2: last new line in current file
|
|
|
|
if a:method == 1 "rcp
|
|
|
|
elseif a:method == 2 "ftp + <.netrc>
|
|
|
|
elseif a:method == 3 "ftp + machine,uid,password,filename
|
|
|
|
elseif a:method == 4 "scp
|
|
|
|
elseif a:method == 5 "http/wget
|
|
|
|
elseif a:method == 6 "dav/cadaver
|
|
|
|
elseif a:method == 7 "rsync
|
|
|
|
elseif a:method == 8 "fetch
|
|
|
|
elseif a:method == 9 "sftp
|
2004-06-20 12:51:53 +00:00
|
|
|
else " complain
|
2004-06-13 20:20:40 +00:00
|
|
|
endif
|
|
|
|
endfunction
|
|
|
|
>
|
2005-11-23 21:25:05 +00:00
|
|
|
The NetReadFixup() function will be called if it exists and thus allows
|
|
|
|
you to customize your reading process. As a further example, <netrw.vim>
|
|
|
|
contains just such a function to handle Windows 95 ftp. For whatever
|
|
|
|
reason, Windows 95's ftp dumps four blank lines at the end of a transfer,
|
|
|
|
and so it is desirable to automate their removal. Here's some code taken
|
|
|
|
from <netrw.vim> itself:
|
2004-06-13 20:20:40 +00:00
|
|
|
>
|
|
|
|
if has("win95") && g:netrw_win95ftp
|
2004-06-20 12:51:53 +00:00
|
|
|
fun! NetReadFixup(method, line1, line2)
|
2004-06-13 20:20:40 +00:00
|
|
|
if method == 3 " ftp (no <.netrc>)
|
2004-06-20 12:51:53 +00:00
|
|
|
let fourblanklines= line2 - 3
|
|
|
|
silent fourblanklines.",".line2."g/^\s*/d"
|
2004-06-13 20:20:40 +00:00
|
|
|
endif
|
|
|
|
endfunction
|
|
|
|
endif
|
|
|
|
>
|
|
|
|
|
|
|
|
==============================================================================
|
2005-11-23 21:25:05 +00:00
|
|
|
7. Directory Browser *netrw-browse* *netrw-dir* *netrw-list* *netrw-help*
|
2005-08-01 21:58:57 +00:00
|
|
|
|
|
|
|
MAPS *netrw-maps*
|
|
|
|
?................Help.......................................|netrw-help|
|
|
|
|
<cr>.............Browsing...................................|netrw-cr|
|
|
|
|
<del>............Deleting Files or Directories..............|netrw-delete|
|
|
|
|
-................Going Up...................................|netrw--|
|
|
|
|
a................Hiding Files or Directories................|netrw-a|
|
|
|
|
b................Bookmarking a Directory....................|netrw-b|
|
|
|
|
B................Changing to a Bookmarked Directory.........|netrw-B|
|
|
|
|
c................Make Browsing Directory The Current Dir....|netrw-c|
|
|
|
|
d................Make A New Directory.......................|netrw-d|
|
|
|
|
D................Deleting Files or Directories..............|netrw-D|
|
|
|
|
<c-h>............Edit File/Directory Hiding List............|netrw-h|
|
|
|
|
i................Long Listing...............................|netrw-i|
|
|
|
|
<c-l>............Refreshing the Listing.....................|netrw-ctrl-l|
|
|
|
|
o................Browsing with a Horizontal Split...........|netrw-o|
|
|
|
|
p................Preview Window.............................|netrw-p|
|
|
|
|
q................Listing Bookmarks and History..............|netrw-q|
|
|
|
|
r................Reversing Sorting Order....................|netrw-r|
|
|
|
|
R................Renaming Files or Directories..............|netrw-R|
|
|
|
|
s................Selecting Sorting Style....................|netrw-s|
|
|
|
|
S................Editing the Sorting Sequence...............|netrw-S|
|
|
|
|
u................Changing to a Predecessor Directory........|netrw-u|
|
|
|
|
U................Changing to a Successor Directory..........|netrw-U|
|
|
|
|
v................Browsing with a Vertical Split.............|netrw-v|
|
|
|
|
x................Customizing Browsing.......................|netrw-x|
|
|
|
|
|
|
|
|
COMMANDS *netrw-explore-cmds*
|
2005-08-11 20:09:58 +00:00
|
|
|
:Explore[!] [dir] Explore directory of current file........|netrw-explore|
|
|
|
|
:Sexplore[!] [dir] Split & Explore directory ...............|netrw-explore|
|
|
|
|
:Hexplore[!] [dir] Horizontal Split & Explore...............|netrw-explore|
|
|
|
|
:Vexplore[!] [dir] Vertical Split & Explore.................|netrw-explore|
|
|
|
|
:Pexplore[!] [dir] Vertical Split & Explore.................|netrw-explore|
|
|
|
|
:Nexplore[!] [dir] Vertical Split & Explore.................|netrw-explore|
|
2005-08-16 23:01:50 +00:00
|
|
|
:NetrwSettings.............................................|netrw-settings|
|
2004-07-29 08:43:53 +00:00
|
|
|
|
|
|
|
QUICK REFERENCE COMMANDS TABLE *netrw-browse-cmds*
|
2004-06-30 16:16:41 +00:00
|
|
|
>
|
2004-07-10 09:47:34 +00:00
|
|
|
------- -----------
|
2004-06-30 16:16:41 +00:00
|
|
|
Command Explanation
|
|
|
|
------- -----------
|
2004-09-13 20:26:32 +00:00
|
|
|
< ? Causes Netrw to issue help
|
2004-06-30 16:16:41 +00:00
|
|
|
<cr> Netrw will enter the directory or read the file
|
|
|
|
<del> Netrw will attempt to remove the file/directory
|
2004-09-02 19:12:26 +00:00
|
|
|
d Make a directory
|
2004-06-30 16:16:41 +00:00
|
|
|
D Netrw will attempt to remove the file(s)/directory(ies)
|
|
|
|
R Netrw will attempt to rename the file(s)/directory(ies)
|
|
|
|
- Makes Netrw go up one directory
|
2004-09-13 20:26:32 +00:00
|
|
|
a Toggles between normal display,
|
|
|
|
hiding (suppress display of files matching g:netrw_list_hide)
|
|
|
|
showing (display only files which match g:netrw_list_hide)
|
2004-09-02 19:12:26 +00:00
|
|
|
c Make current browsing directory the current directory
|
|
|
|
<c-h> Edit file hiding list
|
2004-07-10 09:47:34 +00:00
|
|
|
i Toggles between long and short listing
|
2004-09-02 19:12:26 +00:00
|
|
|
<c-l> Causes Netrw to refresh the directory listing
|
2004-06-30 16:16:41 +00:00
|
|
|
o Enter the file/directory under the cursor in a new browser
|
|
|
|
window. A horizontal split is used.
|
2005-08-05 21:35:02 +00:00
|
|
|
p Preview the file
|
2004-07-02 15:38:35 +00:00
|
|
|
r Reverse sorting order
|
|
|
|
s Select sorting style: by name, time, or file size
|
2004-06-30 16:16:41 +00:00
|
|
|
v Enter the file/directory under the cursor in a new browser
|
|
|
|
window. A vertical split is used.
|
|
|
|
x Apply a function to a file.
|
2004-09-13 20:26:32 +00:00
|
|
|
|
2004-07-29 08:43:53 +00:00
|
|
|
NETRW BROWSER VARIABLES *netrw-browse-var*
|
2004-06-30 16:16:41 +00:00
|
|
|
>
|
2005-08-16 23:01:50 +00:00
|
|
|
--- -----------
|
|
|
|
Var Explanation
|
|
|
|
--- -----------
|
|
|
|
< *g:netrw_alto* change from above splitting to below splitting
|
|
|
|
by setting this variable (see |netrw-o|)
|
|
|
|
default: =0
|
|
|
|
|
|
|
|
*g:netrw_altv* change from left splitting to right splitting
|
|
|
|
by setting this variable (see |netrw-v|)
|
|
|
|
default: =0
|
|
|
|
|
|
|
|
*g:netrw_ftp_browse_reject* ftp can produce a number of errors and warnings
|
|
|
|
that can show up as "directories" and "files"
|
|
|
|
in the listing. This pattern is used to
|
|
|
|
remove such embedded messages. By default its
|
|
|
|
value is:
|
|
|
|
'^total\s\+\d\+$\|
|
|
|
|
^Trying\s\+\d\+.*$\|
|
|
|
|
^KERBEROS_V\d rejected\|
|
|
|
|
^Security extensions not\|
|
|
|
|
No such file\|
|
|
|
|
: connect to address [0-9a-fA-F:]*
|
|
|
|
: No route to host$'
|
|
|
|
|
2005-11-23 21:25:05 +00:00
|
|
|
*g:netrw_ssh_browse_reject* ssh can sometimes produce unwanted lines,
|
|
|
|
messages, banners, and whatnot that one doesn't
|
|
|
|
want masquerading as "directories" and "files".
|
|
|
|
Use this pattern to remove such embedded
|
|
|
|
messages. By default its value is:
|
|
|
|
'^total\s\+\d\+$'
|
2005-08-01 21:58:57 +00:00
|
|
|
|
2005-08-16 23:01:50 +00:00
|
|
|
*g:netrw_keepdir* =1 (default) keep current directory immune from
|
|
|
|
the browsing directory.
|
|
|
|
=0 keep the current directory the same as the
|
|
|
|
browsing directory.
|
|
|
|
The current browsing directory is contained in
|
|
|
|
b:netrw_curdir
|
2005-08-01 21:58:57 +00:00
|
|
|
|
2005-08-16 23:01:50 +00:00
|
|
|
*g:netrw_list_cmd* command for listing remote directories
|
|
|
|
default: (if ssh is executable)
|
|
|
|
"ssh HOSTNAME ls -FLa"
|
2005-08-01 21:58:57 +00:00
|
|
|
|
2005-08-16 23:01:50 +00:00
|
|
|
*g:netrw_longlist* if =1, then long listing will be default
|
2005-08-01 21:58:57 +00:00
|
|
|
|
2005-11-23 21:25:05 +00:00
|
|
|
*g:netrw_ftp_list_cmd* options for passing along to ftp for directory
|
|
|
|
listing. Defaults:
|
|
|
|
unix or g:netrw_cygwin set: : "ls -lF"
|
|
|
|
otherwise "dir"
|
|
|
|
|
2005-08-16 23:01:50 +00:00
|
|
|
*g:netrw_list_hide* comma separated pattern list for hiding files
|
|
|
|
default: ""
|
2005-08-01 21:58:57 +00:00
|
|
|
|
2005-08-16 23:01:50 +00:00
|
|
|
*g:netrw_local_mkdir* command for making a local directory
|
2005-11-23 21:25:05 +00:00
|
|
|
default: "ssh HOSTNAME mkdir"
|
2005-08-01 21:58:57 +00:00
|
|
|
|
2005-08-16 23:01:50 +00:00
|
|
|
*g:netrw_local_rmdir* remove directory command (rmdir)
|
|
|
|
default: "rmdir"
|
2005-08-01 21:58:57 +00:00
|
|
|
|
2005-08-16 23:01:50 +00:00
|
|
|
*g:netrw_maxfilenamelen* =32 by default, selected so as to make long
|
|
|
|
listings fit on 80 column displays.
|
|
|
|
If your screen is wider, and you have file
|
|
|
|
or directory names longer than 32 bytes,
|
|
|
|
you may set this option to keep listings
|
|
|
|
columnar.
|
2005-08-01 21:58:57 +00:00
|
|
|
|
2005-08-16 23:01:50 +00:00
|
|
|
*g:netrw_mkdir_cmd* command for making a remote directory
|
|
|
|
default: "ssh HOSTNAME mkdir"
|
2005-08-01 21:58:57 +00:00
|
|
|
|
2005-08-16 23:01:50 +00:00
|
|
|
*g:netrw_rm_cmd* command for removing files
|
|
|
|
default: "ssh HOSTNAME rm"
|
2005-08-01 21:58:57 +00:00
|
|
|
|
2005-08-16 23:01:50 +00:00
|
|
|
*g:netrw_rmdir_cmd* command for removing directories
|
|
|
|
default: "ssh HOSTNAME rmdir"
|
2005-08-01 21:58:57 +00:00
|
|
|
|
2005-08-16 23:01:50 +00:00
|
|
|
*g:netrw_rmf_cmd* command for removing softlinks
|
|
|
|
default: "ssh HOSTNAME rm -f"
|
2005-08-01 21:58:57 +00:00
|
|
|
|
2005-11-23 21:25:05 +00:00
|
|
|
*g:netrw_hide* if true, the hiding list is used
|
|
|
|
default: =0
|
|
|
|
|
2005-08-16 23:01:50 +00:00
|
|
|
*g:netrw_sort_by* sort by "name", "time", or "size"
|
|
|
|
default: "name"
|
2005-08-01 21:58:57 +00:00
|
|
|
|
2005-08-16 23:01:50 +00:00
|
|
|
*g:netrw_sort_direction* sorting direction: "normal" or "reverse"
|
|
|
|
default: "normal"
|
2005-08-01 21:58:57 +00:00
|
|
|
|
2005-08-16 23:01:50 +00:00
|
|
|
*g:netrw_sort_sequence* when sorting by name, first sort by the
|
|
|
|
comma-separated pattern sequence
|
|
|
|
default: '[\/]$,*,\.bak$,\.o$,\.h$,
|
|
|
|
\.info$,\.swp$,\.obj$'
|
2005-08-01 21:58:57 +00:00
|
|
|
|
2005-08-16 23:01:50 +00:00
|
|
|
*g:netrw_timefmt* specify format string to strftime() (%c)
|
|
|
|
default: "%c"
|
2005-08-01 21:58:57 +00:00
|
|
|
|
2005-08-16 23:01:50 +00:00
|
|
|
*g:netrw_winsize* specify initial size of new o/v windows
|
|
|
|
default: ""
|
2004-09-13 20:26:32 +00:00
|
|
|
|
2005-08-01 21:58:57 +00:00
|
|
|
INTRODUCTION TO DIRECTORY BROWSING *netrw-browse-intro*
|
2004-09-02 19:12:26 +00:00
|
|
|
|
|
|
|
Netrw supports the browsing of directories on the local system and on remote
|
2005-11-23 21:25:05 +00:00
|
|
|
hosts, including generating listing directories, entering directories, editing
|
2004-09-02 19:12:26 +00:00
|
|
|
files therein, deleting files/directories, making new directories, and moving
|
|
|
|
(renaming) files and directories. The Netrw browser generally implements the
|
|
|
|
previous explorer maps and commands for remote directories, although details
|
|
|
|
(such as pertinent global variable names) necessarily differ.
|
2004-07-02 15:38:35 +00:00
|
|
|
|
2004-09-02 19:12:26 +00:00
|
|
|
The Netrw remote file and directory browser handles two protocols: ssh and
|
|
|
|
ftp. The protocol in the url, if it is ftp, will cause netrw to use ftp
|
|
|
|
in its remote browsing. Any other protocol will be used for file transfers,
|
|
|
|
but otherwise the ssh protocol will be used to do remote directory browsing.
|
2004-06-20 12:51:53 +00:00
|
|
|
|
2005-11-23 21:25:05 +00:00
|
|
|
To enter the netrw directory browser, simply attempt to read a "file" with a
|
2004-06-30 16:16:41 +00:00
|
|
|
trailing slash and it will be interpreted as a request to list a directory:
|
2004-06-20 12:51:53 +00:00
|
|
|
|
|
|
|
vim [protocol]://[user@]hostname/path/
|
|
|
|
|
2005-11-23 21:25:05 +00:00
|
|
|
If you'd like to avoid entering the password in for directory listings, scp,
|
|
|
|
ssh interaction, etc, see |netrw-listhack|.
|
2004-07-02 15:38:35 +00:00
|
|
|
|
2005-08-08 22:00:59 +00:00
|
|
|
*netrw-explore* *netrw-pexplore*
|
|
|
|
*netrw-hexplore* *netrw-sexplore*
|
|
|
|
DIRECTORY EXPLORING COMMANDS *netrw-nexplore* *netrw-vexplore*
|
2005-08-01 21:58:57 +00:00
|
|
|
|
2005-08-11 20:09:58 +00:00
|
|
|
:Explore[!] [dir]... Explore directory of current file *:Explore*
|
|
|
|
:Sexplore[!] [dir]... Split&Explore directory of current file *:Sexplore*
|
|
|
|
:Hexplore[!] [dir]... Horizontal Split & Explore *:Hexplore*
|
|
|
|
:Vexplore[!] [dir]... Vertical Split & Explore *:Vexplore*
|
|
|
|
|
|
|
|
Used with :Explore **/pattern :
|
|
|
|
:Nexplore............. go to next matching file *:Nexplore*
|
|
|
|
:Pexplore............. go to previous matching file *:Pexplore*
|
|
|
|
|
|
|
|
:Explore will open the local-directory browser on the current file's
|
|
|
|
directory (or on directory [dir] if specified). The window will be
|
|
|
|
split only if the file has been modified, otherwise the browsing
|
|
|
|
window will take over that window. Normally the splitting is taken
|
|
|
|
horizontally.
|
|
|
|
:Explore! is like :Explore, but will use vertical splitting.
|
|
|
|
:Sexplore will always split the window before invoking the local-directory
|
|
|
|
browser. As with Explore, the splitting is normally done
|
|
|
|
horizontally.
|
|
|
|
:Sexplore! [dir] is like :Sexplore, but the splitting will be done vertically.
|
|
|
|
:Hexplore [dir] does an :Explore with |:belowright| horizontal splitting.
|
|
|
|
:Hexplore! [dir] does an :Explore with |:aboveleft| horizontal splitting.
|
|
|
|
:Vexplore [dir] does an :Explore with |:leftabove| vertical splitting.
|
|
|
|
:Vexplore! [dir] does an :Explore with |:rightbelow| vertical splitting.
|
|
|
|
|
|
|
|
By default, these commands use the current file's directory. However, one
|
|
|
|
may explicitly provide a directory (path) to use.
|
2005-08-01 21:58:57 +00:00
|
|
|
|
2005-08-08 22:00:59 +00:00
|
|
|
(Following needs v7.0 or later) *netrw-starstar*
|
2005-11-23 21:25:05 +00:00
|
|
|
When Explore, Sexplore, Hexplore, or Vexplore are used like
|
2005-08-08 22:00:59 +00:00
|
|
|
>
|
|
|
|
:Explore **/filename_pattern
|
|
|
|
<
|
|
|
|
netrw will attempt to find a (sub)directory which matches the filename
|
|
|
|
pattern. Internally, it produces a list of files which match the pattern
|
|
|
|
and their paths; to that extent it resembles the Unix operation:
|
|
|
|
>
|
|
|
|
find $(pwd) -name "$1" -exec "echo" "{}" ";" 2> /dev/null
|
|
|
|
<
|
|
|
|
The directory display is updated to show the subdirectory containing a
|
|
|
|
matching file. One may then proceed to the next (or previous) matching files'
|
|
|
|
directories by using Nexplore or Pexplore, respectively. If your console or
|
|
|
|
gui produces recognizable shift-up or shift-down sequences, then you'll likely
|
2005-11-23 21:25:05 +00:00
|
|
|
find the following mappings convenient:
|
2005-08-05 21:35:02 +00:00
|
|
|
|
|
|
|
<s-down> == Nexplore, and
|
|
|
|
<s-up> == Pexplore.
|
|
|
|
|
2005-08-08 22:00:59 +00:00
|
|
|
As an example, consider
|
|
|
|
>
|
2005-08-05 21:35:02 +00:00
|
|
|
:Explore **/*.c
|
|
|
|
:Nexplore
|
|
|
|
:Nexplore
|
|
|
|
:Pexplore
|
|
|
|
<
|
2005-08-08 22:00:59 +00:00
|
|
|
The status line will show, on the right hand side of the status line, a
|
|
|
|
message like "Match 3 of 20".
|
|
|
|
|
2005-08-01 21:58:57 +00:00
|
|
|
|
2004-09-02 19:12:26 +00:00
|
|
|
REFRESHING THE LISTING *netrw-ctrl-l*
|
2004-07-02 15:38:35 +00:00
|
|
|
|
2004-09-02 19:12:26 +00:00
|
|
|
To refresh either a local or remote directory listing, press ctrl-l (<c-l>) or
|
|
|
|
hit the <cr> when atop the ./ directory entry in the listing. One may also
|
|
|
|
refresh a local directory by using ":e .".
|
2004-07-02 15:38:35 +00:00
|
|
|
|
|
|
|
|
|
|
|
GOING UP *netrw--*
|
|
|
|
|
2005-11-23 21:25:05 +00:00
|
|
|
To go up a directory, press - or his the <cr> when atop the ../ directory
|
2004-07-02 15:38:35 +00:00
|
|
|
entry in the listing.
|
|
|
|
|
2005-11-23 21:25:05 +00:00
|
|
|
Netrw will modify the command in |g:netrw_list_cmd| to perform the directory
|
|
|
|
listing operation. By default the command is:
|
2004-06-20 12:51:53 +00:00
|
|
|
|
2004-06-30 16:16:41 +00:00
|
|
|
ssh HOSTNAME ls -FLa
|
2004-06-20 12:51:53 +00:00
|
|
|
|
2004-09-02 19:12:26 +00:00
|
|
|
where the HOSTNAME becomes the [user@]hostname as requested by the attempt to
|
|
|
|
read. Naturally, the user may override this command with whatever is
|
|
|
|
preferred. The NetList function which implements remote directory browsing
|
|
|
|
expects that directories will be flagged by a trailing slash.
|
2004-06-20 12:51:53 +00:00
|
|
|
|
2004-07-02 15:38:35 +00:00
|
|
|
|
2004-07-10 09:47:34 +00:00
|
|
|
BROWSING *netrw-cr*
|
2004-07-02 15:38:35 +00:00
|
|
|
|
2004-06-20 12:51:53 +00:00
|
|
|
Browsing is simple: move the cursor onto a file or directory of interest.
|
2004-06-30 16:16:41 +00:00
|
|
|
Hitting the <cr> (the return key) will select the file or directory.
|
|
|
|
Directories will themselves be listed, and files will be opened using the
|
2005-11-23 21:25:05 +00:00
|
|
|
protocol given in the original read request.
|
2005-09-10 19:22:57 +00:00
|
|
|
|
|
|
|
|
|
|
|
OBTAINING A FILE *netrw-O*
|
|
|
|
|
|
|
|
When browsing a remote directory, one may obtain a file under the cursor (ie.
|
|
|
|
get a copy on your local machine, but not edit it) by pressing the O key.
|
|
|
|
Only ftp and scp are supported for this operation (but since these two are
|
2005-11-23 21:25:05 +00:00
|
|
|
available for browsing, that shouldn't be a problem).
|
2005-09-10 19:22:57 +00:00
|
|
|
|
2004-06-30 16:16:41 +00:00
|
|
|
|
2005-09-10 19:22:57 +00:00
|
|
|
THIN, LONG, AND WIDE LISTINGS *netrw-i*
|
2005-08-01 21:58:57 +00:00
|
|
|
|
2005-09-10 19:22:57 +00:00
|
|
|
The "i" map cycles between the thin, long, and wide listing formats.
|
2004-07-10 09:47:34 +00:00
|
|
|
|
|
|
|
The short listing format gives just the files' and directories' names.
|
2005-09-10 19:22:57 +00:00
|
|
|
|
2004-07-10 09:47:34 +00:00
|
|
|
The long listing is either based on the "ls" command via ssh for remote
|
2005-11-23 21:25:05 +00:00
|
|
|
directories or displays the filename, file size (in bytes), and the
|
|
|
|
time and date of last modification for local directories.
|
2005-09-10 19:22:57 +00:00
|
|
|
|
2005-11-23 21:25:05 +00:00
|
|
|
The wide listing format has a multi-column display of the various
|
|
|
|
files in the netrw current directory, rather like the Unix "ls" presents.
|
|
|
|
In this mode the "b" and "B" maps are not available; instead, use
|
|
|
|
Nb (|netrw-Nb|) and NB (|netrw-NB|).
|
2004-06-30 16:16:41 +00:00
|
|
|
|
2004-07-10 09:47:34 +00:00
|
|
|
|
2004-09-02 19:12:26 +00:00
|
|
|
MAKING A NEW DIRECTORY *netrw-d*
|
2004-07-10 09:47:34 +00:00
|
|
|
|
2005-11-23 21:25:05 +00:00
|
|
|
With the "d" map one may make a new directory either remotely (which
|
|
|
|
depends on the global variable g:netrw_mkdir_cmd) or locally (which depends on
|
|
|
|
the global variable g:netrw_local_mkdir). Netrw will issue a request for the
|
|
|
|
new directory's name. A bare <CR> at that point will abort the making of the
|
2004-07-10 09:47:34 +00:00
|
|
|
directory. Attempts to make a local directory that already exists (as either
|
|
|
|
a file or a directory) will be detected, reported on, and ignored.
|
|
|
|
|
2005-08-01 21:58:57 +00:00
|
|
|
|
2004-07-29 08:43:53 +00:00
|
|
|
DELETING FILES OR DIRECTORIES *netrw-delete* *netrw-D*
|
2004-06-30 16:16:41 +00:00
|
|
|
|
2004-07-02 15:38:35 +00:00
|
|
|
Deleting/removing files and directories involves moving the cursor to the
|
2005-11-23 21:25:05 +00:00
|
|
|
file/directory to be deleted and pressing "D". Directories must be empty first
|
|
|
|
before they can be successfully removed. If the directory is a softlink to a
|
|
|
|
directory, then netrw will make two requests to remove the directory before
|
|
|
|
succeeding. Netrw will ask for confirmation before doing the removal(s).
|
|
|
|
You may select a range of lines with the "V" command (visual selection),
|
|
|
|
and then pressing "D".
|
2004-07-02 15:38:35 +00:00
|
|
|
|
|
|
|
The g:netrw_rm_cmd, g:netrw_rmf_cmd, and g:netrw_rmdir_cmd variables are used
|
|
|
|
to control the attempts to remove files and directories. The g:netrw_rm_cmd
|
|
|
|
is used with files, and its default value is:
|
2004-06-30 16:16:41 +00:00
|
|
|
|
|
|
|
g:netrw_rm_cmd: ssh HOSTNAME rm
|
|
|
|
|
2004-07-02 15:38:35 +00:00
|
|
|
The g:netrw_rmdir_cmd variable is used to support the removal of directories.
|
|
|
|
Its default value is:
|
2004-06-30 16:16:41 +00:00
|
|
|
|
|
|
|
g:netrw_rmdir_cmd: ssh HOSTNAME rmdir
|
|
|
|
|
|
|
|
If removing a directory fails with g:netrw_rmdir_cmd, netrw then will attempt
|
2004-07-02 15:38:35 +00:00
|
|
|
to remove it again using the g:netrw_rmf_cmd variable. Its default value is:
|
2004-06-30 16:16:41 +00:00
|
|
|
|
|
|
|
g:netrw_rmf_cmd: ssh HOSTNAME rm -f
|
|
|
|
|
|
|
|
|
2004-07-10 09:47:34 +00:00
|
|
|
RENAMING FILES OR DIRECTORIES *netrw-move* *netrw-rename* *netrw-R*
|
2004-06-30 16:16:41 +00:00
|
|
|
|
|
|
|
Renaming/moving files and directories involves moving the cursor to the
|
|
|
|
file/directory to be moved (renamed) and pressing "R". You will then be
|
|
|
|
queried for where you want the file/directory to be moved. You may select a
|
|
|
|
range of lines with the "V" command (visual selection), and then pressing "R".
|
|
|
|
|
2004-07-02 15:38:35 +00:00
|
|
|
The g:netrw_rename_cmd variable is used to implement renaming. By default its
|
2004-06-30 16:16:41 +00:00
|
|
|
value is:
|
|
|
|
|
|
|
|
ssh HOSTNAME mv
|
|
|
|
|
2004-07-29 08:43:53 +00:00
|
|
|
One may rename a block of files and directories by selecting them with
|
|
|
|
the V (|linewise-visual|).
|
2004-07-02 15:38:35 +00:00
|
|
|
|
2004-09-02 19:12:26 +00:00
|
|
|
|
2005-09-29 18:26:07 +00:00
|
|
|
HIDING FILES OR DIRECTORIES *netrw-a*
|
2004-07-02 15:38:35 +00:00
|
|
|
|
2005-11-23 21:25:05 +00:00
|
|
|
Netrw's browsing facility allows one to use the hiding list in one of
|
|
|
|
three ways: ignore it, hide files which match, and show only those files
|
|
|
|
which match. The "a" map allows the user to cycle about these three ways.
|
2004-07-10 09:47:34 +00:00
|
|
|
|
2005-11-23 21:25:05 +00:00
|
|
|
The g:netrw_list_hide variable holds a comma delimited list of patterns
|
|
|
|
(ex. \.obj) which specify the hiding list. (also see |netrw-h|) To
|
|
|
|
set the hiding list, use the <c-h> map. As an example, to hide files
|
|
|
|
which begin with a ".", one may use the <c-h> map to set the hiding
|
|
|
|
list to '^\..*' (or one may put let g:netrw_list_hide= '^\..*' in
|
|
|
|
one's <.vimrc>). One may then use the "a" key to show all files,
|
|
|
|
hide matching files, or to show only the matching files.
|
2004-07-02 15:38:35 +00:00
|
|
|
|
2005-08-01 21:58:57 +00:00
|
|
|
|
|
|
|
EDIT FILE OR DIRECTORY HIDING LIST *netrw-h* *netrw-edithide*
|
2004-07-02 15:38:35 +00:00
|
|
|
|
2004-09-02 19:12:26 +00:00
|
|
|
The "<ctrl-h>" map brings up a requestor allowing the user to change the
|
2004-07-29 08:43:53 +00:00
|
|
|
file/directory hiding list. The hiding list consists of one or more patterns
|
|
|
|
delimited by commas. Files and/or directories satisfying these patterns will
|
2005-11-23 21:25:05 +00:00
|
|
|
either be hidden (ie. not shown) or be the only ones displayed (see |netrw-a|).
|
2004-07-02 15:38:35 +00:00
|
|
|
|
|
|
|
|
2005-08-01 21:58:57 +00:00
|
|
|
BROWSING WITH A HORIZONTALLY SPLIT WINDOW *netrw-o* *netrw-horiz*
|
2004-07-02 15:38:35 +00:00
|
|
|
|
2004-07-29 08:43:53 +00:00
|
|
|
Normally one enters a file or directory using the <cr>. However, the "o" map
|
|
|
|
allows one to open a new window to hold the new directory listing or file. A
|
2004-09-13 20:26:32 +00:00
|
|
|
horizontal split is used. (for vertical splitting, see |netrw-v|)
|
|
|
|
|
2005-11-23 21:25:05 +00:00
|
|
|
Normally, the o key splits the window horizontally with the new window
|
|
|
|
and cursor at the top. To change to splitting the window horizontally
|
|
|
|
with the new window and cursor at the bottom, have
|
2004-09-13 20:26:32 +00:00
|
|
|
|
|
|
|
let g:netrw_alto = 1
|
|
|
|
|
|
|
|
in your <.vimrc>.
|
|
|
|
|
2005-08-01 21:58:57 +00:00
|
|
|
|
|
|
|
PREVIEW WINDOW *netrw-p* *netrw-preview*
|
2004-09-13 20:26:32 +00:00
|
|
|
|
2005-11-23 21:25:05 +00:00
|
|
|
One may use a preview window (currently only for local browsing) by using
|
|
|
|
the "p" key when the cursor is atop the desired filename to be previewed.
|
2004-07-02 15:38:35 +00:00
|
|
|
|
|
|
|
|
2005-08-01 21:58:57 +00:00
|
|
|
SELECTING SORTING STYLE *netrw-s* *netrw-sort*
|
2004-07-02 15:38:35 +00:00
|
|
|
|
2005-11-23 21:25:05 +00:00
|
|
|
One may select the sorting style by name, time, or (file) size. The
|
|
|
|
"s" map allows one to circulate amongst the three choices; the directory
|
|
|
|
listing will automatically be refreshed to reflect the selected style.
|
2004-07-02 15:38:35 +00:00
|
|
|
|
|
|
|
|
2005-08-01 21:58:57 +00:00
|
|
|
EDITING THE SORTING SEQUENCE *netrw-S* *netrw-sortsequence*
|
2004-09-02 19:12:26 +00:00
|
|
|
|
2005-11-23 21:25:05 +00:00
|
|
|
When "Sorted by" is name, one may specify priority via the sorting
|
|
|
|
sequence (g:netrw_sort_sequence). The sorting sequence typically
|
|
|
|
prioritizes the name-listing by suffix, although any pattern will do.
|
|
|
|
Patterns are delimited by commas. The default sorting sequence is:
|
2004-09-02 19:12:26 +00:00
|
|
|
>
|
2005-08-11 20:09:58 +00:00
|
|
|
[\/]$,*,\.bak$,\.o$,\.h$,\.info$,\.swp$,\.obj$
|
2004-09-02 19:12:26 +00:00
|
|
|
<
|
2005-11-23 21:25:05 +00:00
|
|
|
The lone * is where all filenames not covered by one of the other
|
|
|
|
patterns will end up. One may change the sorting sequence by modifying
|
|
|
|
the g:netrw_sort_sequence variable (either manually or in your <.vimrc>)
|
|
|
|
or by using the "S" map.
|
2004-09-02 19:12:26 +00:00
|
|
|
|
|
|
|
|
2005-08-01 21:58:57 +00:00
|
|
|
REVERSING SORTING ORDER *netrw-r* *netrw-reverse*
|
2004-07-02 15:38:35 +00:00
|
|
|
|
|
|
|
One may toggle between normal and reverse sorting order by pressing the
|
|
|
|
"r" key.
|
|
|
|
|
|
|
|
|
2005-08-01 21:58:57 +00:00
|
|
|
CHANGING TO A PREDECESSOR DIRECTORY *netrw-u* *netrw-updir*
|
2004-12-09 21:34:53 +00:00
|
|
|
|
|
|
|
Every time you change to a new directory (new for the current session),
|
|
|
|
netrw will save the directory in a recently-visited directory history
|
|
|
|
list (unless g:netrw_dirhistmax is zero; by default, its ten). With the
|
|
|
|
"u" map, one can change to an earlier directory (predecessor). To do
|
|
|
|
the opposite, see |netrw-U|.
|
|
|
|
|
|
|
|
|
2005-08-01 21:58:57 +00:00
|
|
|
CHANGING TO A SUCCESSOR DIRECTORY *netrw-U* *netrw-downdir*
|
2004-12-09 21:34:53 +00:00
|
|
|
|
|
|
|
With the "U" map, one can change to a later directory (successor).
|
|
|
|
This map is the opposite of the "u" map. (see |netrw-u|) Use the
|
|
|
|
q map to list both the bookmarks and history. (see |netrw-q|)
|
|
|
|
|
|
|
|
|
2004-07-02 15:38:35 +00:00
|
|
|
BROWSING WITH A VERTICALLY SPLIT WINDOW *netrw-v*
|
|
|
|
|
2005-11-23 21:25:05 +00:00
|
|
|
Normally one enters a file or directory using the <cr>. However, the "v"
|
|
|
|
map allows one to open a new window to hold the new directory listing or
|
|
|
|
file. A vertical split is used. (for horizontal splitting, see |netrw-o|)
|
2004-09-13 20:26:32 +00:00
|
|
|
|
2005-11-23 21:25:05 +00:00
|
|
|
Normally, the v key splits the window vertically with the new window
|
|
|
|
and cursor at the left. To change to splitting the window vertically
|
|
|
|
with the new window and cursor at the right, have
|
2004-09-13 20:26:32 +00:00
|
|
|
|
|
|
|
let g:netrw_altv = 1
|
|
|
|
|
|
|
|
in your <.vimrc>.
|
2004-07-02 15:38:35 +00:00
|
|
|
|
|
|
|
|
2005-09-29 18:26:07 +00:00
|
|
|
CUSTOMIZING BROWSING WITH A USER FUNCTION *netrw-x* *netrw-handler*
|
2004-07-02 15:38:35 +00:00
|
|
|
|
|
|
|
One may "enter" a file with a special handler, thereby firing up a browser or
|
2005-08-16 23:01:50 +00:00
|
|
|
other application, for example, on a file by hitting the "x" key. The special
|
|
|
|
handler varies:
|
|
|
|
|
|
|
|
* for Windows 32 or 64, the url and FileProtocolHandler dlls are used.
|
|
|
|
* for KDE (with kfmclient): kfmclient is used.
|
|
|
|
* for Gnome (with gnome-open): gnome-open is used.
|
2005-11-23 21:25:05 +00:00
|
|
|
* otherwise the NetrwFileHandler plugin is used.
|
2004-07-02 15:38:35 +00:00
|
|
|
|
2005-08-16 23:01:50 +00:00
|
|
|
The file's suffix is used by these various approaches to determine an
|
2005-11-23 21:25:05 +00:00
|
|
|
appropriate application to use to "handle" these files. Such things
|
|
|
|
as OpenOffice (*.sfx), visualization (*.jpg, *.gif, etc), and PostScript
|
|
|
|
(*.ps, *.eps) can be handled.
|
2005-08-16 23:01:50 +00:00
|
|
|
|
2005-11-23 21:25:05 +00:00
|
|
|
The NetrwFileHandler applies a user-defined function to a file, based on its
|
2004-07-02 15:38:35 +00:00
|
|
|
extension. Of course, the handler function must exist for it to be called!
|
|
|
|
>
|
|
|
|
Ex. mypgm.html x ->
|
2005-11-23 21:25:05 +00:00
|
|
|
NetrwFileHandler_html("scp://user@host/some/path/mypgm.html")
|
2004-07-02 15:38:35 +00:00
|
|
|
<
|
2005-11-23 21:25:05 +00:00
|
|
|
See the <plugin/NetrwFileHandlers.vim> for an example of how to handle an html
|
2004-07-02 15:38:35 +00:00
|
|
|
file with mozilla.
|
|
|
|
|
2005-11-23 21:25:05 +00:00
|
|
|
One may write custom NetrwFileHandlers; please look at the
|
|
|
|
plugin/NetrwFileHandlers.vim script for examples. If its likely to be
|
2005-08-16 23:01:50 +00:00
|
|
|
generally useful, please feel free to forward a copy to me for future
|
|
|
|
inclusion in the distribution.
|
|
|
|
|
2004-07-02 15:38:35 +00:00
|
|
|
|
2004-10-07 21:02:47 +00:00
|
|
|
MAKING THE BROWSING DIRECTORY THE CURRENT DIRECTORY *netrw-c* *netrw-curdir*
|
2004-09-02 19:12:26 +00:00
|
|
|
|
2004-10-07 21:02:47 +00:00
|
|
|
By default, g:netrw_keepdir is 1. This setting means that the current
|
|
|
|
directory will not track the browsing directory. However, setting
|
|
|
|
g:netrw_keepdir to 0 (say, in your <.vimrc>) will tell netrw to have the
|
|
|
|
currently browsed directory be the current directory.
|
2004-09-02 19:12:26 +00:00
|
|
|
|
2004-10-07 21:02:47 +00:00
|
|
|
With the default setting for g:netrw_keepdir, in order to make the two
|
2005-11-23 21:25:05 +00:00
|
|
|
directories the same, use the "c" map (just type c). That map will set
|
|
|
|
the current directory to the current browsing directory.
|
2004-09-02 19:12:26 +00:00
|
|
|
|
2004-10-07 21:02:47 +00:00
|
|
|
|
|
|
|
BOOKMARKING A DIRECTORY *netrw-b* *netrw-bookmark* *netrw-bookmarks*
|
2005-09-10 19:22:57 +00:00
|
|
|
*netrw-Nb*
|
2005-08-05 21:35:02 +00:00
|
|
|
One may easily "bookmark" a directory by using >
|
2004-09-02 19:12:26 +00:00
|
|
|
|
|
|
|
{cnt}b
|
2005-08-05 21:35:02 +00:00
|
|
|
<
|
2004-10-07 21:02:47 +00:00
|
|
|
Any count may be used. One may use viminfo's "!" option to retain bookmarks
|
2004-12-09 21:34:53 +00:00
|
|
|
between vim sessions. See |netrw-B| for how to return to a bookmark and
|
|
|
|
|netrw-q| for how to list them.
|
2004-09-02 19:12:26 +00:00
|
|
|
|
2005-09-10 19:22:57 +00:00
|
|
|
When wide listing is in use (see |netrw-i|), then the b map is not available;
|
|
|
|
instead, use {cnt}Nb.
|
|
|
|
|
2004-09-02 19:12:26 +00:00
|
|
|
|
2005-09-10 19:22:57 +00:00
|
|
|
CHANGING TO A BOOKMARKED DIRECTORY *netrw-NB* *netrw-B*
|
2004-09-02 19:12:26 +00:00
|
|
|
|
|
|
|
To change directory back to a bookmarked directory, use
|
|
|
|
|
|
|
|
{cnt}B
|
|
|
|
|
2005-11-23 21:25:05 +00:00
|
|
|
Any count may be used to reference any of the bookmarks. See |netrw-b|
|
|
|
|
for how to bookmark a directory and |netrw-q| for how to list them.
|
2005-09-10 19:22:57 +00:00
|
|
|
|
|
|
|
When wide listing is in use (see |netrw-i|), then the B map is not available;
|
|
|
|
instead, use {cnt}NB.
|
2004-09-02 19:12:26 +00:00
|
|
|
|
|
|
|
|
2005-08-01 21:58:57 +00:00
|
|
|
LISTING BOOKMARKS AND HISTORY *netrw-q* *netrw-listbookmark*
|
2004-09-02 19:12:26 +00:00
|
|
|
|
2004-12-09 21:34:53 +00:00
|
|
|
Pressing "q" will list the bookmarked directories and directory traversal
|
|
|
|
history (query). (see |netrw-b|, |netrw-B|, |netrw-u|, and |netrw-U|)
|
2004-09-02 19:12:26 +00:00
|
|
|
|
|
|
|
|
2005-09-10 19:22:57 +00:00
|
|
|
IMPROVING DIRECTORY BROWSING *netrw-listhack*
|
2004-07-02 15:38:35 +00:00
|
|
|
|
|
|
|
Especially with the remote directory browser, constantly entering the password
|
|
|
|
is tedious.
|
|
|
|
|
2004-06-30 16:16:41 +00:00
|
|
|
For Linux/Unix systems, I suggest looking into
|
|
|
|
|
|
|
|
http://hacks.oreilly.com/pub/h/66
|
|
|
|
|
|
|
|
It gives a tip for setting up password-less use of ssh and scp, and discusses
|
|
|
|
the associated security issues.
|
2004-06-20 12:51:53 +00:00
|
|
|
|
|
|
|
|
2005-08-16 23:01:50 +00:00
|
|
|
NETRW SETTINGS *netrw-settings*
|
|
|
|
|
|
|
|
With the NetrwSettings.vim plugin, >
|
|
|
|
:NetrwSettings
|
|
|
|
will bring up a window with the many variables that netrw uses for its
|
2005-11-23 21:25:05 +00:00
|
|
|
settings. You may change any of their values; when you save the file,
|
|
|
|
the settings therein will be used. One may also press "?" on any of
|
|
|
|
the lines for help on what each of the variables do.
|
2005-08-16 23:01:50 +00:00
|
|
|
|
|
|
|
|
2004-06-20 12:51:53 +00:00
|
|
|
==============================================================================
|
2004-09-13 20:26:32 +00:00
|
|
|
8. Problems and Fixes *netrw-problems*
|
|
|
|
|
|
|
|
(This section is likely to grow as I get feedback)
|
|
|
|
(also see |netrw-debug|)
|
2005-08-11 20:09:58 +00:00
|
|
|
*netrw-p1*
|
2004-09-13 20:26:32 +00:00
|
|
|
P1. I use windows 95, and my ftp dumps four blank lines at the
|
|
|
|
end of every read.
|
|
|
|
|
|
|
|
See |netrw-fixup|, and put the following into your
|
|
|
|
<.vimrc> file:
|
|
|
|
|
|
|
|
let g:netrw_win95ftp= 1
|
2005-08-08 22:00:59 +00:00
|
|
|
|
2005-08-11 20:09:58 +00:00
|
|
|
*netrw-p2*
|
2004-09-13 20:26:32 +00:00
|
|
|
P2. I use windows, and my network browsing with ftp doesn't sort by
|
|
|
|
time or size
|
|
|
|
|
|
|
|
Windows' ftp has a minimal support for ls (ie. it doesn't
|
|
|
|
accept sorting options). It doesn't support the -F which
|
|
|
|
gives an explanatory character (ABC/ for "ABC is a directory").
|
|
|
|
Netrw uses dir to get its short and long listings. If you
|
|
|
|
think your ftp does support a full-up ls, put the following
|
|
|
|
into your <.vimrc>:
|
|
|
|
|
|
|
|
let g:netrw_ftp_list_cmd= "ls -lF"
|
|
|
|
|
|
|
|
Alternatively, if you have cygwin on your Windows box, put
|
|
|
|
into your <.vimrc>:
|
|
|
|
|
|
|
|
let g:netrw_cygwin= 1
|
|
|
|
|
2005-08-11 20:09:58 +00:00
|
|
|
*netrw-p3*
|
2004-09-13 20:26:32 +00:00
|
|
|
P3. I tried rcp://user@host/ (or protocol other than ftp) and netrw
|
|
|
|
used ssh! That wasn't what I asked for...
|
|
|
|
|
|
|
|
Netrw has two methods for browsing remote directories: ssh
|
|
|
|
and ftp. Unless you specify ftp specifically, ssh is used.
|
|
|
|
When it comes time to do download a file (not just a directory
|
|
|
|
listing), netrw will use the given protocol to do so.
|
|
|
|
|
2005-08-11 20:09:58 +00:00
|
|
|
*netrw-p4*
|
2004-09-13 20:26:32 +00:00
|
|
|
P4. I would like long listings to be the default.
|
|
|
|
|
2004-10-07 21:02:47 +00:00
|
|
|
let g:netrw_longlist=1
|
|
|
|
|
|
|
|
Check out |netrw-browse-var| for more customizations that
|
|
|
|
you can set.
|
2004-09-13 20:26:32 +00:00
|
|
|
|
2005-08-11 20:09:58 +00:00
|
|
|
*netrw-p5*
|
2004-09-13 20:26:32 +00:00
|
|
|
P5. My times come up oddly in local browsing
|
|
|
|
|
|
|
|
Does your system's strftime() accept the "%c" to yield dates
|
|
|
|
such as "Sun Apr 27 11:49:23 1997"? If not, do a "man strftime"
|
|
|
|
and find out what option should be used. Then put it into
|
|
|
|
your <.vimrc>:
|
|
|
|
let g:netrw_timefmt= "%X" (where X is the option)
|
|
|
|
|
2005-08-11 20:09:58 +00:00
|
|
|
*netrw-p6*
|
2004-10-07 21:02:47 +00:00
|
|
|
P6. I want my current directory to track my browsing.
|
|
|
|
How do I do that?
|
2004-09-13 20:26:32 +00:00
|
|
|
|
2004-10-07 21:02:47 +00:00
|
|
|
let g:netrw_keepdir= 0
|
2005-08-08 22:00:59 +00:00
|
|
|
|
2004-09-13 20:26:32 +00:00
|
|
|
|
|
|
|
==============================================================================
|
|
|
|
9. Debugging *netrw-debug*
|
2004-06-13 20:20:40 +00:00
|
|
|
|
|
|
|
The <netrw.vim> script is typically available as:
|
2005-08-11 20:09:58 +00:00
|
|
|
>
|
2004-06-13 20:20:40 +00:00
|
|
|
/usr/local/share/vim/vim6x/plugin/netrw.vim
|
2005-08-11 20:09:58 +00:00
|
|
|
< -or- >
|
|
|
|
/usr/local/share/vim/vim7x/plugin/netrw.vim
|
|
|
|
<
|
2004-06-13 20:20:40 +00:00
|
|
|
which is loaded automatically at startup (assuming :set nocp).
|
|
|
|
|
|
|
|
1. Get the <Decho.vim> script, available as:
|
|
|
|
|
2005-09-29 18:26:07 +00:00
|
|
|
http://mysite.verizon.net/astronaut/vim/index.html#vimlinks_scripts
|
|
|
|
as "Decho, a vimL debugging aid"
|
2004-06-13 20:20:40 +00:00
|
|
|
or
|
2005-09-29 18:26:07 +00:00
|
|
|
http://vim.sourceforge.net/scripts/script.php?script_id=120
|
2004-06-13 20:20:40 +00:00
|
|
|
|
2004-09-02 19:12:26 +00:00
|
|
|
and put it into your local plugin directory.
|
2005-08-08 22:00:59 +00:00
|
|
|
|
2004-09-02 19:12:26 +00:00
|
|
|
2. <Decho.vim> itself needs the <cecutil.vim> script, so you'll need
|
|
|
|
to put it into your .vim/plugin, too. You may obtain it from:
|
|
|
|
|
|
|
|
http://mysite.verizon.net/astronaut/vim/index.html#VimFuncs
|
|
|
|
as "DrC's Utilities"
|
2004-06-13 20:20:40 +00:00
|
|
|
|
2004-09-02 19:12:26 +00:00
|
|
|
3. Edit the <netrw.vim> file by typing:
|
2004-06-13 20:20:40 +00:00
|
|
|
|
2004-09-02 19:12:26 +00:00
|
|
|
vim netrw.vim
|
2004-06-13 20:20:40 +00:00
|
|
|
:DechoOn
|
2004-09-02 19:12:26 +00:00
|
|
|
:wq
|
|
|
|
|
|
|
|
To restore to normal non-debugging behavior, edit <netrw.vim>
|
|
|
|
by typing
|
|
|
|
|
|
|
|
vim netrw.vim
|
|
|
|
:DechoOff
|
|
|
|
:wq
|
2004-06-13 20:20:40 +00:00
|
|
|
|
2004-09-02 19:12:26 +00:00
|
|
|
This command, provided by <Decho.vim>, will comment out all
|
|
|
|
Decho-debugging statements (Dfunc(), Dret(), Decho(), Dredir()).
|
2004-06-13 20:20:40 +00:00
|
|
|
|
2004-09-02 19:12:26 +00:00
|
|
|
4. Then bring up vim and attempt a transfer. A set of messages
|
2004-06-13 20:20:40 +00:00
|
|
|
should appear concerning the steps that <netrw.vim> took in
|
|
|
|
attempting to read/write your file over the network. Please
|
|
|
|
send that information to <netrw.vim>'s maintainer,
|
|
|
|
|
2004-12-09 21:34:53 +00:00
|
|
|
NdrOchip at ScampbellPfamily.AbizM - NOSPAM
|
2004-06-13 20:20:40 +00:00
|
|
|
|
|
|
|
==============================================================================
|
2004-09-13 20:26:32 +00:00
|
|
|
10. History *netrw-history*
|
|
|
|
|
2005-09-29 18:26:07 +00:00
|
|
|
v67: * Passwords which contain blanks will now be surrounded by
|
|
|
|
double-quotes automatically (Yongwei)
|
2005-09-10 19:22:57 +00:00
|
|
|
v66: * Netrw now seems to work with a few more Windows situations
|
|
|
|
* O now obtains a file: remote browsing file -> local copy,
|
|
|
|
locally browsing file -> current directory (see :pwd)
|
|
|
|
* i now cycles between thin, long, and wide listing styles
|
|
|
|
* NB and Nb are maps that are always available; corresponding
|
|
|
|
B and b maps are only available when not using wide listing
|
|
|
|
in order to allow them to be used for motions
|
|
|
|
v65: * Browser functions now use NetOptionSave/Restore; in particular,
|
2005-08-19 20:40:30 +00:00
|
|
|
netrw now works around the report setting
|
2005-09-10 19:22:57 +00:00
|
|
|
v64: * Bugfix - browsing a "/" directory (Unix) yielded buffers
|
2005-08-19 20:40:30 +00:00
|
|
|
named "[Scratch]" instead of "/"
|
|
|
|
* Bugfix - remote browsing with ftp was omitting the ./ and ../
|
2005-08-16 23:01:50 +00:00
|
|
|
v63: * netrw now takes advantage of autoload (and requires 7.0)
|
|
|
|
* Bugfix - using r (to reverse sort) working again
|
|
|
|
v62: * Bugfix - spaces allowed again in directory names with
|
|
|
|
g:netrw_keepdir=0. In fact, I've tested netrw (again)
|
|
|
|
with most ANSI punctuation marks for directory names.
|
|
|
|
* Bugfix - NetrwSettings gave errors when g:netrw_silent
|
|
|
|
had not be set.
|
2005-08-12 19:59:19 +00:00
|
|
|
v61: * document upgrade -- netrw variable-based settings all should
|
|
|
|
have tags. Supports NetrwSettings command.
|
|
|
|
* several important variables are window-oriented. Netrw has
|
|
|
|
to transfer these across a window split. See s:BufWinVars()
|
|
|
|
and s:UseBufWinVars().
|
2005-08-11 20:09:58 +00:00
|
|
|
v60: * when using the i map to switch between long and short listings,
|
|
|
|
netrw will now keep cursor on same line
|
|
|
|
* "Match # of #" now uses status line
|
|
|
|
* :Explore **/*.c will now work from a non-netrw-browser window
|
|
|
|
* :Explore **/patterns can now be run in separate browser windows
|
|
|
|
* active banner (hit <cr> will cause various things to happen)
|
2005-08-08 22:00:59 +00:00
|
|
|
v59: * bugfix -- another keepalt work-around installed (for vim6.3)
|
|
|
|
* "Match # of #" for Explore **/pattern matches
|
2005-08-05 21:35:02 +00:00
|
|
|
v58: * Explore and relatives can now handle **/somefilepattern (v7)
|
|
|
|
* Nexplore and Pexplore introduced (v7). shift-down and shift-up
|
|
|
|
cursor keys will invoke Nexplore and Pexplore, respectively.
|
|
|
|
* bug fixed with o and v
|
|
|
|
* autochdir only worked around for vim when it has been
|
|
|
|
compiled with either |+netbeans_intg| or |+sun_workshop|
|
|
|
|
* Under Windows, all directories and files were being preceded
|
|
|
|
with a "/" when local browsing. Fixed.
|
|
|
|
* When: syntax highlighting is off, laststatus=2, and remote
|
|
|
|
browsing is used, sometimes the laststatus highlighting
|
|
|
|
bleeds into the entire display. Work around - do an extra
|
|
|
|
redraw in that case.
|
|
|
|
* Bugfix: when g:netrw_keepdir=0, due to re-use of buffers,
|
|
|
|
netrw didn't change the directory when it should've
|
|
|
|
* Bugfix: D and R commands work again
|
2005-08-04 21:29:45 +00:00
|
|
|
v57: * Explore and relatives can now handle RO files
|
|
|
|
* reverse sort restored with vim7's sort command
|
|
|
|
* g:netrw_keepdir now being used to keep the current directory
|
|
|
|
unchanged as intended (sense change)
|
|
|
|
* vim 6.3 still supported
|
2005-08-01 21:58:57 +00:00
|
|
|
v56: * LocalBrowse now saves autochdir setting, unsets it, and
|
|
|
|
restores it before returning.
|
|
|
|
* using vim's rename() instead of system + local_rename variable
|
2005-08-04 21:29:45 +00:00
|
|
|
* avoids changing directory when g:netrw_keepdir is false
|
2005-08-01 21:58:57 +00:00
|
|
|
v55: * -bar used with :Explore :Sexplore etc to allow multiple
|
|
|
|
commands to be separated by |s
|
|
|
|
* browser listings now use the "nowrap" option
|
|
|
|
* browser: some unuseful error messages now suppressed
|
|
|
|
v54: * For backwards compatibility, Explore and Sexplore have been
|
|
|
|
implemented. In addition, Hexplore and Vexplore commands
|
|
|
|
are available, too.
|
|
|
|
* <amatch> used instead of <afile> in the transparency
|
|
|
|
support (BufReadCmd, FileReadCmd, FileWriteCmd)
|
|
|
|
* ***netrw*** prepended to various error messages netrw may emit
|
|
|
|
* g:netrw_port used instead of b:netrw_port for scp
|
|
|
|
* any leading [:#] is removed from port numbers
|
|
|
|
v53: * backslashes as well as slashes placed in various patterns
|
|
|
|
(ex. g:netrw_sort_sequence) to better support Windows
|
2004-12-09 21:34:53 +00:00
|
|
|
v52: * nonumber'ing now set for browsing buffers
|
|
|
|
* when the hiding list hid all files, error messages ensued. Fixed
|
|
|
|
* when browsing, swf is set, but directory is not set, when netrw
|
|
|
|
was attempting to restore options, vim wanted to save a swapfile
|
|
|
|
to a local directory using an url-style path. Fixed
|
|
|
|
v51: * cygwin detection now automated (using windows and &shell is bash)
|
|
|
|
* customizable browser "file" rejection patterns
|
|
|
|
* directory history
|
|
|
|
* :[range]w url now supported (ie. netrw has a FileWriteCmd event)
|
|
|
|
* error messages have a "Press <cr> to continue" to allow them
|
|
|
|
to be seen
|
|
|
|
* directory browser displays no longer bother the swapfile
|
|
|
|
* u/U commands to go up and down the history stack
|
|
|
|
* history stack may be saved with viminfo with its "!" option
|
|
|
|
* bugfixes associated with unwanted [No Files] entries
|
2004-10-07 21:02:47 +00:00
|
|
|
v50: * directories now displayed using buftype=nofile; should keep the
|
|
|
|
directory names as-is
|
|
|
|
* attempts to remove empty "[No File]" buffers leftover
|
|
|
|
from :file ..name.. commands
|
|
|
|
* bugfix: a "caps-lock" editing difficulty left in v49 was fixed
|
|
|
|
* syntax highlighting for "Showing:" the hiding list included
|
|
|
|
* bookmarks can now be retained if "!" is in the viminfo option
|
2004-12-09 21:34:53 +00:00
|
|
|
v49: * will use ftp for http://.../ browsing v48:
|
|
|
|
* One may use ftp to do remote host file browsing
|
2004-09-13 20:26:32 +00:00
|
|
|
* (windows and !cygwin) remote browsing with ftp can now use
|
|
|
|
the "dir" command internally to provide listings
|
|
|
|
* g:netrw_keepdir now allows one to keep the initial current
|
2004-10-07 21:02:47 +00:00
|
|
|
directory as the current directory (normally the local file
|
|
|
|
browser makes the currently viewed directory the current
|
|
|
|
directory)
|
2004-09-13 20:26:32 +00:00
|
|
|
* g:netrw_alto and g:netrw_altv now support alternate placement
|
|
|
|
of windows started with o or v
|
|
|
|
* Nread ? and Nwrite ? now uses echomsg (instead of echo) so
|
|
|
|
:messages can repeat showing the help
|
|
|
|
* bugfix: avoids problems with partial matches of directory names
|
|
|
|
to prior buffers with longer names
|
2004-10-07 21:02:47 +00:00
|
|
|
* one can suppress error messages with g:netrw_quiet ctrl-h used
|
|
|
|
* instead of <Leader>h for editing hiding list one may edit the
|
|
|
|
* sorting sequence with the S map now allows confirmation of
|
|
|
|
* deletion with [y(es) n(o) a(ll) q(uit)] the "x" map now handles
|
|
|
|
* special file viewing with:
|
|
|
|
(windows) rundll32 url.dll (gnome) gnome-open (kde)
|
|
|
|
kfmclient If none of these are on the executable path, then
|
2005-11-23 21:25:05 +00:00
|
|
|
NetrwFileHandlers.vim is used.
|
2004-09-13 20:26:32 +00:00
|
|
|
* directory bookmarking during both local and remote browsing
|
|
|
|
implemented
|
|
|
|
* one may view all, use the hiding list to suppress, or use the
|
2004-10-07 21:02:47 +00:00
|
|
|
hiding list to show-only remote and local file/directory
|
|
|
|
listings
|
|
|
|
* improved unusual file and directory name handling preview
|
|
|
|
* window support
|
2004-12-09 21:34:53 +00:00
|
|
|
v47: * now handles local directory browsing.
|
|
|
|
v46: * now handles remote directory browsing
|
|
|
|
* g:netrw_silent (if 1) will cause all transfers to be silent
|
2004-10-07 21:02:47 +00:00
|
|
|
v45: * made the [user@]hostname:path form a bit more restrictive to
|
|
|
|
better handle errors in using protocols (e.g. scp:usr@host:file
|
|
|
|
was being recognized as an rcp request) v44: * changed from
|
|
|
|
"rsync -a" to just "rsync"
|
2004-06-20 12:51:53 +00:00
|
|
|
* somehow an editing error messed up the test to recognize
|
|
|
|
use of the fetch method for NetRead.
|
|
|
|
* more debugging statements included
|
2004-10-07 21:02:47 +00:00
|
|
|
v43: * moved "Explanation" comments to <pi_netrw.txt> help file as
|
|
|
|
"Network Reference" (|netrw-ref|)
|
2004-06-20 12:51:53 +00:00
|
|
|
* <netrw.vim> now uses Dfunc() Decho() and Dret() for debugging
|
|
|
|
* removed superfluous NetRestorePosn() calls
|
2004-10-07 21:02:47 +00:00
|
|
|
v42: * now does BufReadPre and BufReadPost events on file:///* and
|
|
|
|
file://localhost/* v41: * installed file:///* and
|
|
|
|
file://localhost/* handling v40: * prevents redraw when a
|
|
|
|
protocol error occurs so that the user may see it v39: * sftp
|
|
|
|
support v38: * Now uses NetRestorePosn() calls with
|
|
|
|
Nread/Nwrite commands
|
2004-06-20 12:51:53 +00:00
|
|
|
* Temporary files now removed via bwipe! instead of bwipe
|
2004-10-07 21:02:47 +00:00
|
|
|
(thanks to Dave Roberts) v37: * Claar's modifications which
|
|
|
|
test if ftp is successful, otherwise give an error message
|
2004-06-20 12:51:53 +00:00
|
|
|
* After a read, the alternate file was pointing to the temp file.
|
|
|
|
The temp file buffer is now wiped out.
|
|
|
|
* removed silent from transfer methods so user can see what's
|
|
|
|
happening
|
2004-06-13 20:20:40 +00:00
|
|
|
|
|
|
|
|
|
|
|
==============================================================================
|
2004-09-13 20:26:32 +00:00
|
|
|
11. Credits *netrw-credits*
|
2004-06-13 20:20:40 +00:00
|
|
|
|
|
|
|
Vim editor by Bram Moolenaar (Thanks, Bram!)
|
|
|
|
dav support by C Campbell
|
|
|
|
fetch support by Bram Moolenaar and C Campbell
|
2005-09-29 18:26:07 +00:00
|
|
|
ftp support by C Campbell <NdrOchip@ScampbellPfamily.AbizM>
|
2004-06-13 20:20:40 +00:00
|
|
|
http support by Bram Moolenaar <bram@moolenaar.net>
|
|
|
|
rcp
|
|
|
|
rsync support by C Campbell (suggested by Erik Warendorph)
|
|
|
|
scp support by raf <raf@comdyn.com.au>
|
|
|
|
sftp support by C Campbell
|
|
|
|
|
|
|
|
inputsecret(), BufReadCmd, BufWriteCmd contributed by C Campbell
|
|
|
|
|
|
|
|
Jérôme Augé -- also using new buffer method with ftp+.netrc
|
2005-09-29 18:26:07 +00:00
|
|
|
Bram Moolenaar -- obviously vim itself, :e and v:cmdarg use,
|
|
|
|
fetch,...
|
2004-06-13 20:20:40 +00:00
|
|
|
Yasuhiro Matsumoto -- pointing out undo+0r problem and a solution
|
|
|
|
Erik Warendorph -- for several suggestions (g:netrw_..._cmd
|
|
|
|
variables, rsync etc)
|
2005-09-29 18:26:07 +00:00
|
|
|
Doug Claar -- modifications to test for success with ftp
|
|
|
|
operation
|
2004-06-13 20:20:40 +00:00
|
|
|
|
|
|
|
==============================================================================
|
2005-08-01 21:58:57 +00:00
|
|
|
vim:tw=78:ts=8:ft=help:norl:fdm=marker
|