annotate runtime/doc/pi_netrw.txt @ 976:727ab557c58a v7.0.102

updated for version 7.0-102
author vimboss
date Thu, 14 Sep 2006 08:25:49 +0000
parents 4bac29d27e2f
children e63691e7c504
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
874
4bac29d27e2f updated for version 7.0
vimboss
parents: 857
diff changeset
1 *pi_netrw.txt* For Vim version 7.0. Last change: 2006 May 02
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2
857
b933657f7c9d updated for version 7.0g01
vimboss
parents: 856
diff changeset
3 NETRW REFERENCE MANUAL by Charles E. Campbell, Jr.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4
559
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
5
856
8cd729851562 updated for version 7.0g
vimboss
parents: 849
diff changeset
6 *dav* *http* *network* *rcp* *scp*
8cd729851562 updated for version 7.0g
vimboss
parents: 849
diff changeset
7 *fetch* *netrw* *Nread* *rsync* *sftp*
8cd729851562 updated for version 7.0g
vimboss
parents: 849
diff changeset
8 *ftp* *netrw.vim* *Nwrite* *netrw-file*
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 ==============================================================================
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 0. Contents *netrw-contents*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12
794
f19994020dad updated for version 7.0231
vimboss
parents: 766
diff changeset
13 1. Starting With Netrw..................................|netrw-start|
650
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
14 2. Netrw Reference......................................|netrw-ref|
719
82ef0c58b012 updated for version 7.0219
vimboss
parents: 650
diff changeset
15 CONTROLLING EXTERNAL APPLICATIONS..................|netrw-externapp|
482
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
16 READING............................................|netrw-read|
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
17 WRITING............................................|netrw-write|
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
18 DIRECTORY LISTING..................................|netrw-dirlist|
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
19 CHANGING THE USERID AND PASSWORD...................|netrw-chgup|
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
20 VARIABLES..........................................|netrw-variables|
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
21 PATHS..............................................|netrw-path|
650
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
22 3. Network-Oriented File Transfer.......................|netrw-xfer|
459
d9d38102399f updated for version 7.0122
vimboss
parents: 236
diff changeset
23 NETRC..............................................|netrw-netrc|
d9d38102399f updated for version 7.0122
vimboss
parents: 236
diff changeset
24 PASSWORD...........................................|netrw-passwd|
650
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
25 4. Activation...........................................|netrw-activate|
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
26 5. Transparent File Transfer............................|netrw-transparent|
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
27 6. Ex Commands..........................................|netrw-ex|
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
28 7. Variables and Options................................|netrw-var|
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
29 8. Directory Browsing...................................|netrw-browse| {{{1
459
d9d38102399f updated for version 7.0122
vimboss
parents: 236
diff changeset
30 Maps...............................................|netrw-maps|
d9d38102399f updated for version 7.0122
vimboss
parents: 236
diff changeset
31 Exploring..........................................|netrw-explore-cmds|
d9d38102399f updated for version 7.0122
vimboss
parents: 236
diff changeset
32 Quick Reference Commands Table.....................|netrw-browse-cmds|
d9d38102399f updated for version 7.0122
vimboss
parents: 236
diff changeset
33 Netrw Browser Variables............................|netrw-browse-var|
d9d38102399f updated for version 7.0122
vimboss
parents: 236
diff changeset
34 Introduction To Directory Browsing.................|netrw-browse-intro|
719
82ef0c58b012 updated for version 7.0219
vimboss
parents: 650
diff changeset
35 Netrw Browsing And Option Incompatibilities........|netrw-incompatible|
459
d9d38102399f updated for version 7.0122
vimboss
parents: 236
diff changeset
36 Directory Exploring Commands.......................|netrw-explore|
d9d38102399f updated for version 7.0122
vimboss
parents: 236
diff changeset
37 Refreshing The Listing.............................|netrw-ctrl-l|
d9d38102399f updated for version 7.0122
vimboss
parents: 236
diff changeset
38 Going Up...........................................|netrw--|
d9d38102399f updated for version 7.0122
vimboss
parents: 236
diff changeset
39 Browsing...........................................|netrw-cr|
519
d50452846776 updated for version 7.0145
vimboss
parents: 501
diff changeset
40 Obtaining A File...................................|netrw-O|
d50452846776 updated for version 7.0145
vimboss
parents: 501
diff changeset
41 Thin, Long, and Wide Listings......................|netrw-i|
459
d9d38102399f updated for version 7.0122
vimboss
parents: 236
diff changeset
42 Making A New Directory.............................|netrw-d|
719
82ef0c58b012 updated for version 7.0219
vimboss
parents: 650
diff changeset
43 Deleting Files Or Directories......................|netrw-D|
459
d9d38102399f updated for version 7.0122
vimboss
parents: 236
diff changeset
44 Renaming Files Or Directories......................|netrw-move|
534
c6296b0ad9ea updated for version 7.0151
vimboss
parents: 532
diff changeset
45 Hiding Files Or Directories........................|netrw-a|
650
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
46 Edit File Or Directory Hiding List.................|netrw-ctrl-h|
459
d9d38102399f updated for version 7.0122
vimboss
parents: 236
diff changeset
47 Browsing With A Horizontally Split Window..........|netrw-o|
d9d38102399f updated for version 7.0122
vimboss
parents: 236
diff changeset
48 Preview Window.....................................|netrw-p|
d9d38102399f updated for version 7.0122
vimboss
parents: 236
diff changeset
49 Selecting Sorting Style............................|netrw-s|
d9d38102399f updated for version 7.0122
vimboss
parents: 236
diff changeset
50 Editing The Sorting Sequence.......................|netrw-S|
d9d38102399f updated for version 7.0122
vimboss
parents: 236
diff changeset
51 Reversing Sorting Order............................|netrw-r|
d9d38102399f updated for version 7.0122
vimboss
parents: 236
diff changeset
52 Changing To A Predecessor Directory................|netrw-u|
d9d38102399f updated for version 7.0122
vimboss
parents: 236
diff changeset
53 Changing To A Successor Directory..................|netrw-U|
d9d38102399f updated for version 7.0122
vimboss
parents: 236
diff changeset
54 Browsing With A Vertically Split Window............|netrw-v|
d9d38102399f updated for version 7.0122
vimboss
parents: 236
diff changeset
55 Customizing Browsing With A User Function..........|netrw-x|
d9d38102399f updated for version 7.0122
vimboss
parents: 236
diff changeset
56 Making The Browsing Directory The Current Directory|netrw-c|
519
d50452846776 updated for version 7.0145
vimboss
parents: 501
diff changeset
57 Bookmarking A Directory............................|netrw-b| |netrw-Nb|
d50452846776 updated for version 7.0145
vimboss
parents: 501
diff changeset
58 Changing To A Bookmarked Directory.................|netrw-B| |netrw-NB|
459
d9d38102399f updated for version 7.0122
vimboss
parents: 236
diff changeset
59 Listing Bookmarks And History......................|netrw-q|
519
d50452846776 updated for version 7.0145
vimboss
parents: 501
diff changeset
60 Improving Directory Browsing.......................|netrw-listhack| }}}1
650
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
61 9. Problems and Fixes...................................|netrw-problems|
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
62 10. Debugging............................................|netrw-debug|
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
63 11. History..............................................|netrw-history|
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
64 12. Credits..............................................|netrw-credits|
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65
482
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
66 The Netrw plugin is generally sourced automatically as it is a
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
67 |standard-plugin|. That said, to make use of netrw, one must
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
68 have plugins available which can be done with the following
650
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
69 two lines in your <.vimrc>: >
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70
856
8cd729851562 updated for version 7.0g
vimboss
parents: 849
diff changeset
71 set nocp " 'compatible' is not set
8cd729851562 updated for version 7.0g
vimboss
parents: 849
diff changeset
72 filetype plugin on " plugins are enabled
650
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
73 <
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74 You can avoid loading this plugin by setting the "loaded_netrw" variable
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75 in your <.vimrc> file: >
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77 :let loaded_netrw = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79 {Vi does not have any of this}
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
80
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
81 ==============================================================================
650
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
82 1. Starting With Netrw *netrw-start*
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
83
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
84 Netrw makes reading, writing, and browsing over a network connection easy!
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
85 First, make sure that you have plugins enabled, so you'll need to have at
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
86 least the following in your <.vimrc>: (or see |netrw-activate|) >
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
87
856
8cd729851562 updated for version 7.0g
vimboss
parents: 849
diff changeset
88 set nocp " 'compatible' is not set
8cd729851562 updated for version 7.0g
vimboss
parents: 849
diff changeset
89 filetype plugin on " plugins are enabled
650
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
90 <
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
91 (see |'cp'| and |:filetype-plugin-on|)
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
92
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
93 Netrw supports "transparent" editing of files on other machines using urls
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
94 (see |netrw-transparent|). As an example of this, let's assume you have an
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
95 account on some other machine; try >
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
96
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
97 vim scp://hostname/path/to/file
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
98 <
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
99 if you have an ssh connection. Want to make ssh/scp easier to use? Check
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
100 out |netrw-listhack|!
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
101
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
102 What if you have ftp, not ssh/scp? That's easy, too; try >
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
103
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
104 vim ftp://hostname/path/to/file
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
105 <
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
106 Want to make ftp simpler to use? See if your ftp supports a file called
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
107 <.netrc> -- typically it goes in your home directory, has read/write
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
108 permissions for only the user to read (ie. not group, world, other, etc),
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
109 and has lines resembling >
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
110
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
111 machine HOSTNAME login USERID password "PASSWORD"
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
112 machine HOSTNAME login USERID password "PASSWORD"
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
113 ...
856
8cd729851562 updated for version 7.0g
vimboss
parents: 849
diff changeset
114 default login USERID password "PASSWORD"
650
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
115 <
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
116 How about browsing -- ie. you just want to look around before editing a
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
117 file. For browsing on your current host, just "edit" a directory: >
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
118
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
119 vim .
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
120 vim /home/userid/path
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
121 <
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
122 For browsing on a remote host, "edit" a directory (but make sure that
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
123 the directory name is followed by a "/"): >
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
124
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
125 vim scp://hostname/
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
126 vim ftp://hostname/path/to/dir/
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
127 <
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
128 See |netrw-browse| for more!
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
129
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
130 There's more protocols supported than scp and ftp, too: see the next
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
131 section, |netrw-externapp|.
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
132
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
133 ==============================================================================
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
134 2. Netrw Reference *netrw-ref*
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
135
719
82ef0c58b012 updated for version 7.0219
vimboss
parents: 650
diff changeset
136 CONTROLLING EXTERNAL APPLICATIONS *netrw-externapp*
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
137
482
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
138 Protocol Variable Default Value
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
139 -------- ---------------- -------------
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
140 dav: *g:netrw_dav_cmd* = "cadaver"
650
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
141 fetch: *g:netrw_fetch_cmd* = "fetch -o" if fetch is available
482
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
142 ftp: *g:netrw_ftp_cmd* = "ftp"
856
8cd729851562 updated for version 7.0g
vimboss
parents: 849
diff changeset
143 http: *g:netrw_http_cmd* = "fetch -o" if fetch is available
482
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
144 http: g:netrw_http_cmd = "wget -q -O" If wget is available
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
145 rcp: *g:netrw_rcp_cmd* = "rcp"
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
146 rsync: *g:netrw_rsync_cmd* = "rsync -a"
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
147 scp: *g:netrw_scp_cmd* = "scp -q"
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
148 sftp: *g:netrw_sftp_cmd* = "sftp"
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
149
482
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
150 READING *netrw-read* *netrw-nread*
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
151 :Nread ? give help
22
cc049b00ee70 updated for version 7.0014
vimboss
parents: 21
diff changeset
152 :Nread "machine:path" uses rcp
482
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
153 :Nread "machine path" uses ftp w/ <.netrc>
22
cc049b00ee70 updated for version 7.0014
vimboss
parents: 21
diff changeset
154 :Nread "machine id password path" uses ftp
cc049b00ee70 updated for version 7.0014
vimboss
parents: 21
diff changeset
155 :Nread "dav://machine[:port]/path" uses cadaver
cc049b00ee70 updated for version 7.0014
vimboss
parents: 21
diff changeset
156 :Nread "fetch://[user@]machine/path" uses fetch
482
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
157 :Nread "ftp://[user@]machine[[:#]port]/path" uses ftp w/ <.netrc>
22
cc049b00ee70 updated for version 7.0014
vimboss
parents: 21
diff changeset
158 :Nread "http://[user@]machine/path" uses http uses wget
cc049b00ee70 updated for version 7.0014
vimboss
parents: 21
diff changeset
159 :Nread "rcp://[user@]machine/path" uses rcp
cc049b00ee70 updated for version 7.0014
vimboss
parents: 21
diff changeset
160 :Nread "rsync://[user@]machine[:port]/path" uses rsync
cc049b00ee70 updated for version 7.0014
vimboss
parents: 21
diff changeset
161 :Nread "scp://[user@]machine[[:#]port]/path" uses scp
cc049b00ee70 updated for version 7.0014
vimboss
parents: 21
diff changeset
162 :Nread "sftp://[user@]machine/path" uses sftp
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
163
482
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
164 WRITING *netrw-write* *netrw-nwrite*
794
f19994020dad updated for version 7.0231
vimboss
parents: 766
diff changeset
165 :Nwrite ? give help
22
cc049b00ee70 updated for version 7.0014
vimboss
parents: 21
diff changeset
166 :Nwrite "machine:path" uses rcp
482
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
167 :Nwrite "machine path" uses ftp w/ <.netrc>
22
cc049b00ee70 updated for version 7.0014
vimboss
parents: 21
diff changeset
168 :Nwrite "machine id password path" uses ftp
cc049b00ee70 updated for version 7.0014
vimboss
parents: 21
diff changeset
169 :Nwrite "dav://machine[:port]/path" uses cadaver
482
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
170 :Nwrite "ftp://[user@]machine[[:#]port]/path" uses ftp w/ <.netrc>
22
cc049b00ee70 updated for version 7.0014
vimboss
parents: 21
diff changeset
171 :Nwrite "rcp://[user@]machine/path" uses rcp
cc049b00ee70 updated for version 7.0014
vimboss
parents: 21
diff changeset
172 :Nwrite "rsync://[user@]machine[:port]/path" uses rsync
cc049b00ee70 updated for version 7.0014
vimboss
parents: 21
diff changeset
173 :Nwrite "scp://[user@]machine[[:#]port]/path" uses scp
cc049b00ee70 updated for version 7.0014
vimboss
parents: 21
diff changeset
174 :Nwrite "sftp://[user@]machine/path" uses sftp
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
175 http: not supported!
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
176
482
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
177 DIRECTORY LISTING *netrw-dirlist*
9
4102fb4ea781 updated for version 7.0002
vimboss
parents: 7
diff changeset
178 :Nread [protocol]://[user]@hostname/path/
4102fb4ea781 updated for version 7.0002
vimboss
parents: 7
diff changeset
179
482
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
180 CHANGING USERID AND PASSWORD *netrw-chgup*
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
181 Attempts to use ftp will prompt you for a user-id and a password.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
182 These will be saved in g:netrw_uid and g:netrw_passwd Subsequent uses
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
183 of ftp will re-use those. If you need to use a different user id
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
184 and/or password, you'll want to call NetUserPass() first.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
185
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
186 :NetUserPass [uid [password]] -- prompts as needed
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
187 :call NetUserPass() -- prompts for uid and password
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
188 :call NetUserPass("uid") -- prompts for password
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
189 :call NetUserPass("uid","password") -- sets global uid and password
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
190
482
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
191 VARIABLES *netrw-variables*
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
192 *b:netrw_lastfile* last file Network-read/written retained on a per-buffer
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
193 basis (supports plain :Nw )
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
194
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
195 *s:netrw_line* during :Nw/NetWrite, holds current line number
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
196 *s:netrw_col* during :Nw/NetWrite, holds current column number
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
197 s:netrw_line and s:netrw_col are used to
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
198 restore the cursor position on writes
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
199
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
200 *g:netrw_ftp* if it doesn't exist, use default ftp
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
201 =0 use default ftp (uid password)
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
202 =1 use alternate ftp method (user uid password)
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
203 If you're having trouble with ftp, try changing the
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
204 value of this variable to see if the alternate ftp
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
205 method works for your setup.
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
206
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
207 *g:netrw_ftpmode* ="binary" (default)
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
208 ="ascii"
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
209
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
210 *g:netrw_ignorenetrc* =0 (default)
794
f19994020dad updated for version 7.0231
vimboss
parents: 766
diff changeset
211 =1 If you have a <.netrc> file but it doesn't work and
482
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
212 you want it ignored, then set this variable as shown.
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
213
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
214 *g:netrw_uid* (ftp) user-id, retained on a per-session basis
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
215 *g:netrw_passwd* (ftp) password, retained on a per-session basis
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
216
482
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
217 *g:netrw_win95ftp* =1 if using Win95, will remove four trailing blank
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
218 lines that o/s's ftp "provides" on transfers
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
219 =0 force normal ftp behavior (no trailing line removal)
22
cc049b00ee70 updated for version 7.0014
vimboss
parents: 21
diff changeset
220
482
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
221 *g:netrw_cygwin* =1 assume scp under windows is from cygwin. Also
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
222 permits network browsing to use ls with time and
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
223 size sorting (default if windows)
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
224 =0 assume Windows' scp accepts windows-style paths
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
225 Network browsing uses dir instead of ls
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
226 This option is ignored if you're using unix
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
227
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
228 *g:netrw_use_nt_rcp* =0 don't use the rcp of WinNT, Win2000 and WinXP
856
8cd729851562 updated for version 7.0g
vimboss
parents: 849
diff changeset
229 =1 use WinNT's rcp in binary mode (default)
22
cc049b00ee70 updated for version 7.0014
vimboss
parents: 21
diff changeset
230
482
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
231 PATHS *netrw-path*
466
7a01bd1ac566 updated for version 7.0125
vimboss
parents: 464
diff changeset
232
482
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
233 Paths to files are generally user-directory relative for most protocols.
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
234 It is possible that some protocol will make paths relative to some
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
235 associated directory, however.
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
236 >
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
237 example: vim scp://user@host/somefile
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
238 example: vim scp://user@host/subdir1/subdir2/somefile
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
239 <
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
240 where "somefile" is the "user"'s home directory. If you wish to get a
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
241 file using root-relative paths, use the full path:
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
242 >
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
243 example: vim scp://user@host//somefile
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
244 example: vim scp://user@host//subdir1/subdir2/somefile
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
245 <
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
246
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
247 ==============================================================================
650
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
248 3. Network-Oriented File Transfer *netrw-xfer*
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
249
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
250 Network-oriented file transfer under Vim is implemented by a VimL-based script
559
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
251 (<netrw.vim>) using plugin techniques. It currently supports both reading and
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
252 writing across networks using rcp, scp, ftp or ftp+<.netrc>, scp, fetch,
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
253 dav/cadaver, rsync, or sftp.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
254
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
255 http is currently supported read-only via use of wget or fetch.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
256
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
257 <netrw.vim> is a standard plugin which acts as glue between Vim and the
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
258 various file transfer programs. It uses autocommand events (BufReadCmd,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
259 FileReadCmd, BufWriteCmd) to intercept reads/writes with url-like filenames. >
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
260
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
261 ex. vim ftp://hostname/path/to/file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
262 <
559
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
263 The characters preceding the colon specify the protocol to use; in the
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
264 example, its ftp. The <netrw.vim> script then formulates a command or a
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
265 series of commands (typically ftp) which it issues to an external program
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
266 (ftp, scp, etc) which does the actual file transfer/protocol. Files are read
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
267 from/written to a temporary file (under Unix/Linux, /tmp/...) which the
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
268 <netrw.vim> script will clean up.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
269
794
f19994020dad updated for version 7.0231
vimboss
parents: 766
diff changeset
270 *netrw-putty* *netrw-pscp*
559
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
271 One may modify any protocol's implementing external application by setting a
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
272 variable (ex. scp uses the variable g:netrw_scp_cmd, which is defaulted to
794
f19994020dad updated for version 7.0231
vimboss
parents: 766
diff changeset
273 "scp -q"). As an example, consider using PuTTY: >
f19994020dad updated for version 7.0231
vimboss
parents: 766
diff changeset
274 let g:netrw_scp_cmd= '"c:\Program Files\PuTTY\pscp.exe" -q -batch'
f19994020dad updated for version 7.0231
vimboss
parents: 766
diff changeset
275 <
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
276 Ftp, an old protocol, seems to be blessed by numerous implementations.
559
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
277 Unfortunately, some implementations are noisy (ie., add junk to the end of the
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
278 file). Thus, concerned users may decide to write a NetReadFixup() function
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
279 that will clean up after reading with their ftp. Some Unix systems (ie.,
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
280 FreeBSD) provide a utility called "fetch" which uses the ftp protocol but is
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
281 not noisy and more convenient, actually, for <netrw.vim> to use.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
282 Consequently, if "fetch" is executable, it will be used to do reads for
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
283 ftp://... (and http://...) . See |netrw-var| for more about this.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
284
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
285 For rcp, scp, sftp, and http, one may use network-oriented file transfers
459
d9d38102399f updated for version 7.0122
vimboss
parents: 236
diff changeset
286 transparently; ie.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
287 >
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
288 vim rcp://[user@]machine/path
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
289 vim scp://[user@]machine/path
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
290 <
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
291 If your ftp supports <.netrc>, then it too can be just as transparently used
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
292 if the needed triad of machine name, user id, and password are present in
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
293 that file. Your ftp must be able to use the <.netrc> file on its own, however.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
294 >
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
295 vim ftp://[user@]machine[[:#]portnumber]/path
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
296 <
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
297 However, ftp will often need to query the user for the userid and password.
459
d9d38102399f updated for version 7.0122
vimboss
parents: 236
diff changeset
298 The latter will be done "silently"; ie. asterisks will show up instead of
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
299 the actually-typed-in password. Netrw will retain the userid and password
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
300 for subsequent read/writes from the most recent transfer so subsequent
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
301 transfers (read/write) to or from that machine will take place without
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
302 additional prompting.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
303
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
304 *netrw-urls*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
305 +=================================+============================+============+
856
8cd729851562 updated for version 7.0g
vimboss
parents: 849
diff changeset
306 | Reading | Writing | Uses |
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
307 +=================================+============================+============+
856
8cd729851562 updated for version 7.0g
vimboss
parents: 849
diff changeset
308 | DAV: | | |
8cd729851562 updated for version 7.0g
vimboss
parents: 849
diff changeset
309 | dav://host/path | | cadaver |
8cd729851562 updated for version 7.0g
vimboss
parents: 849
diff changeset
310 | :Nread dav://host/path | :Nwrite dav://host/path | cadaver |
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
311 +---------------------------------+----------------------------+------------+
856
8cd729851562 updated for version 7.0g
vimboss
parents: 849
diff changeset
312 | FETCH: | | |
8cd729851562 updated for version 7.0g
vimboss
parents: 849
diff changeset
313 | fetch://[user@]host/path | | |
8cd729851562 updated for version 7.0g
vimboss
parents: 849
diff changeset
314 | fetch://[user@]host:http/path | Not Available | fetch |
8cd729851562 updated for version 7.0g
vimboss
parents: 849
diff changeset
315 | :Nread fetch://[user@]host/path| | |
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
316 +---------------------------------+----------------------------+------------+
856
8cd729851562 updated for version 7.0g
vimboss
parents: 849
diff changeset
317 | FILE: | | |
8cd729851562 updated for version 7.0g
vimboss
parents: 849
diff changeset
318 | file:///* | file:///* | |
8cd729851562 updated for version 7.0g
vimboss
parents: 849
diff changeset
319 | file://localhost/* | file://localhost/* | |
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
320 +---------------------------------+----------------------------+------------+
856
8cd729851562 updated for version 7.0g
vimboss
parents: 849
diff changeset
321 | FTP: (*3) | (*3) | |
8cd729851562 updated for version 7.0g
vimboss
parents: 849
diff changeset
322 | ftp://[user@]host/path | ftp://[user@]host/path | ftp (*2) |
8cd729851562 updated for version 7.0g
vimboss
parents: 849
diff changeset
323 | :Nread ftp://host/path | :Nwrite ftp://host/path | ftp+.netrc |
8cd729851562 updated for version 7.0g
vimboss
parents: 849
diff changeset
324 | :Nread host path | :Nwrite host path | ftp+.netrc |
8cd729851562 updated for version 7.0g
vimboss
parents: 849
diff changeset
325 | :Nread host uid pass path | :Nwrite host uid pass path | ftp |
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
326 +---------------------------------+----------------------------+------------+
856
8cd729851562 updated for version 7.0g
vimboss
parents: 849
diff changeset
327 | HTTP: wget is executable: (*4) | | |
8cd729851562 updated for version 7.0g
vimboss
parents: 849
diff changeset
328 | http://[user@]host/path | Not Available | wget |
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
329 +---------------------------------+----------------------------+------------+
856
8cd729851562 updated for version 7.0g
vimboss
parents: 849
diff changeset
330 | HTTP: fetch is executable (*4) | | |
8cd729851562 updated for version 7.0g
vimboss
parents: 849
diff changeset
331 | http://[user@]host/path | Not Available | fetch |
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
332 +---------------------------------+----------------------------+------------+
856
8cd729851562 updated for version 7.0g
vimboss
parents: 849
diff changeset
333 | RCP: | | |
8cd729851562 updated for version 7.0g
vimboss
parents: 849
diff changeset
334 | rcp://[user@]host/path | rcp://[user@]host/path | rcp |
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
335 +---------------------------------+----------------------------+------------+
856
8cd729851562 updated for version 7.0g
vimboss
parents: 849
diff changeset
336 | RSYNC: | | |
8cd729851562 updated for version 7.0g
vimboss
parents: 849
diff changeset
337 | rsync://[user@]host/path | rsync://[user@]host/path | rsync |
8cd729851562 updated for version 7.0g
vimboss
parents: 849
diff changeset
338 | :Nread rsync://host/path | :Nwrite rsync://host/path | rsync |
8cd729851562 updated for version 7.0g
vimboss
parents: 849
diff changeset
339 | :Nread rcp://host/path | :Nwrite rcp://host/path | rcp |
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
340 +---------------------------------+----------------------------+------------+
856
8cd729851562 updated for version 7.0g
vimboss
parents: 849
diff changeset
341 | SCP: | | |
8cd729851562 updated for version 7.0g
vimboss
parents: 849
diff changeset
342 | scp://[user@]host/path | scp://[user@]host/path | scp |
8cd729851562 updated for version 7.0g
vimboss
parents: 849
diff changeset
343 | :Nread scp://host/path | :Nwrite scp://host/path | scp (*1) |
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
344 +---------------------------------+----------------------------+------------+
856
8cd729851562 updated for version 7.0g
vimboss
parents: 849
diff changeset
345 | SFTP: | | |
8cd729851562 updated for version 7.0g
vimboss
parents: 849
diff changeset
346 | sftp://[user@]host/path | sftp://[user@]host/path | sftp |
8cd729851562 updated for version 7.0g
vimboss
parents: 849
diff changeset
347 | :Nread sftp://host/path | :Nwrite sftp://host/path | sftp (*1) |
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
348 +=================================+============================+============+
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
349
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
350 (*1) For an absolute path use scp://machine//path.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
351
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
352 (*2) if <.netrc> is present, it is assumed that it will
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
353 work with your ftp client. Otherwise the script will
9
4102fb4ea781 updated for version 7.0002
vimboss
parents: 7
diff changeset
354 prompt for user-id and pasword.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
355
856
8cd729851562 updated for version 7.0g
vimboss
parents: 849
diff changeset
356 (*3) for ftp, "machine" may be machine#port or machine:port
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
357 if a different port is needed than the standard ftp port
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
358
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
359 (*4) for http:..., if wget is available it will be used. Otherwise,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
360 if fetch is available it will be used.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
361
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
362 Both the :Nread and the :Nwrite ex-commands can accept multiple filenames.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
363
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
364
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
365 NETRC *netrw-netrc*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
366
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
367 The typical syntax for lines in a <.netrc> file is given as shown below.
799
6beb2c667935 updated for version 7.0b
vimboss
parents: 794
diff changeset
368 Ftp under Unix usually supports <.netrc>; ftp under Windows usually doesn't.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
369 >
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
370 machine {full machine name} login {user-id} password "{password}"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
371 default login {user-id} password "{password}"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
372
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
373 Your ftp client must handle the use of <.netrc> on its own, but if the
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
374 <.netrc> file exists, an ftp transfer will not ask for the user-id or
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
375 password.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
376
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
377 Note:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
378 Since this file contains passwords, make very sure nobody else can
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
379 read this file! Most programs will refuse to use a .netrc that is
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
380 readable for others. Don't forget that the system administrator can
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
381 still read the file!
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
382
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
383
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
384 PASSWORD *netrw-passwd*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
385
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
386 The script attempts to get passwords for ftp invisibly using |inputsecret()|,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
387 a built-in Vim function. See |netrw-uidpass| for how to change the password
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
388 after one has set it.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
389
559
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
390 Unfortunately there doesn't appear to be a way for netrw to feed a password to
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
391 scp. Thus every transfer via scp will require re-entry of the password.
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
392 However, |netrw-listhack| can help with this problem.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
393
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
394
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
395 ==============================================================================
650
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
396 4. Activation *netrw-activate*
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
397
799
6beb2c667935 updated for version 7.0b
vimboss
parents: 794
diff changeset
398 Network-oriented file transfers are available by default whenever Vim's
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
399 |'nocompatible'| mode is enabled. The <netrw.vim> file resides in your
559
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
400 system's vim-plugin directory and is sourced automatically whenever you bring
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
401 up vim. I suggest that, at a minimum, you have at least the following in your
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
402 <.vimrc> customization file: >
799
6beb2c667935 updated for version 7.0b
vimboss
parents: 794
diff changeset
403
559
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
404 set nocp
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
405 if version >= 600
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
406 filetype plugin indent on
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
407 endif
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
408 <
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
409
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
410 ==============================================================================
650
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
411 5. Transparent File Transfer *netrw-transparent*
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
412
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
413 Transparent file transfers occur whenever a regular file read or write
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
414 (invoked via an |:autocmd| for |BufReadCmd| or |BufWriteCmd| events) is made.
559
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
415 Thus one may use files across networks just as simply as if they were local. >
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
416
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
417 vim ftp://[user@]machine/path
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
418 ...
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
419 :wq
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
420
559
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
421 See |netrw-activate| for more on how to encourage your vim to use plugins
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
422 such as netrw.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
423
799
6beb2c667935 updated for version 7.0b
vimboss
parents: 794
diff changeset
424
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
425 ==============================================================================
650
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
426 6. Ex Commands *netrw-ex*
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
427
799
6beb2c667935 updated for version 7.0b
vimboss
parents: 794
diff changeset
428 The usual read/write commands are supported. There are also a few
6beb2c667935 updated for version 7.0b
vimboss
parents: 794
diff changeset
429 additional commands available. Often you won't need to use Nw or
6beb2c667935 updated for version 7.0b
vimboss
parents: 794
diff changeset
430 Nread as shown in |netrw-transparent| (ie. use :e url, :r url, :w url;
6beb2c667935 updated for version 7.0b
vimboss
parents: 794
diff changeset
431 see |netrw-urls|).
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
432
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
433 :[range]Nw Write the specified lines to the current
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
434 file as specified in b:netrw_lastfile.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
435
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
436 :[range]Nw {netfile} [{netfile}]...
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
437 Write the specified lines to the {netfile}.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
438
559
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
439 :Nread Read the specified lines into the current
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
440 buffer from the file specified in
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
441 b:netrw_lastfile.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
442
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
443 :Nread {netfile} {netfile}...
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
444 Read the {netfile} after the current line.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
445
534
c6296b0ad9ea updated for version 7.0151
vimboss
parents: 532
diff changeset
446 *netrw-uidpass*
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
447 :call NetUserPass()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
448 If b:netrw_uid and b:netrw_passwd don't exist,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
449 this function query the user for them.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
450
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
451 :call NetUserPass("userid")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
452 This call will set the b:netrw_uid and, if
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
453 the password doesn't exist, will query the user for it.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
454
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
455 :call NetUserPass("userid","passwd")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
456 This call will set both the b:netrw_uid and b:netrw_passwd.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
457 The user-id and password are used by ftp transfers. One may
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
458 effectively remove the user-id and password by using ""
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
459 strings.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
460
857
b933657f7c9d updated for version 7.0g01
vimboss
parents: 856
diff changeset
461 :NetrwSettings This command is desribed in |netrw-settings| -- used to
856
8cd729851562 updated for version 7.0g
vimboss
parents: 849
diff changeset
462 display netrw settings and change netrw behavior.
482
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
463
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
464
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
465 ==============================================================================
794
f19994020dad updated for version 7.0231
vimboss
parents: 766
diff changeset
466 7. Variables and Options *netrw-options* *netrw-var*
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
467
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
468 The script <netrw.vim> uses several variables which can affect <netrw.vim>'s
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
469 behavior. These variables typically may be set in the user's <.vimrc> file:
559
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
470 (also see |netrw-settings|) >
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
471
856
8cd729851562 updated for version 7.0g
vimboss
parents: 849
diff changeset
472 -------------
8cd729851562 updated for version 7.0g
vimboss
parents: 849
diff changeset
473 Netrw Options
8cd729851562 updated for version 7.0g
vimboss
parents: 849
diff changeset
474 -------------
9
4102fb4ea781 updated for version 7.0002
vimboss
parents: 7
diff changeset
475 Option Meaning
4102fb4ea781 updated for version 7.0002
vimboss
parents: 7
diff changeset
476 -------------- -----------------------------------------------
4102fb4ea781 updated for version 7.0002
vimboss
parents: 7
diff changeset
477 <
856
8cd729851562 updated for version 7.0g
vimboss
parents: 849
diff changeset
478 b:netrw_col Holds current cursor position (during NetWrite)
8cd729851562 updated for version 7.0g
vimboss
parents: 849
diff changeset
479 g:netrw_cygwin =1 assume scp under windows is from cygwin
8cd729851562 updated for version 7.0g
vimboss
parents: 849
diff changeset
480 (default/windows)
8cd729851562 updated for version 7.0g
vimboss
parents: 849
diff changeset
481 =0 assume scp under windows accepts windows
8cd729851562 updated for version 7.0g
vimboss
parents: 849
diff changeset
482 style paths (default/else)
8cd729851562 updated for version 7.0g
vimboss
parents: 849
diff changeset
483 g:netrw_ftp =0 use default ftp (uid password)
8cd729851562 updated for version 7.0g
vimboss
parents: 849
diff changeset
484 g:netrw_ftpmode ="binary" (default)
8cd729851562 updated for version 7.0g
vimboss
parents: 849
diff changeset
485 ="ascii" (your choice)
8cd729851562 updated for version 7.0g
vimboss
parents: 849
diff changeset
486 g:netrw_ignorenetrc =1 (default)
8cd729851562 updated for version 7.0g
vimboss
parents: 849
diff changeset
487 if you have a <.netrc> file but you don't
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
488 want it used, then set this variable. Its
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
489 mere existence is enough to cause <.netrc>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
490 to be ignored.
856
8cd729851562 updated for version 7.0g
vimboss
parents: 849
diff changeset
491 b:netrw_lastfile Holds latest method/machine/path.
8cd729851562 updated for version 7.0g
vimboss
parents: 849
diff changeset
492 b:netrw_line Holds current line number (during NetWrite)
8cd729851562 updated for version 7.0g
vimboss
parents: 849
diff changeset
493 g:netrw_passwd Holds current password for ftp.
8cd729851562 updated for version 7.0g
vimboss
parents: 849
diff changeset
494 g:netrw_silent =0 transfers done normally
8cd729851562 updated for version 7.0g
vimboss
parents: 849
diff changeset
495 =1 transfers done silently
8cd729851562 updated for version 7.0g
vimboss
parents: 849
diff changeset
496 g:netrw_uid Holds current user-id for ftp.
8cd729851562 updated for version 7.0g
vimboss
parents: 849
diff changeset
497 =1 use alternate ftp (user uid password)
8cd729851562 updated for version 7.0g
vimboss
parents: 849
diff changeset
498 (see |netrw-options|)
8cd729851562 updated for version 7.0g
vimboss
parents: 849
diff changeset
499 g:netrw_use_nt_rcp =0 don't use WinNT/2K/XP's rcp (default)
8cd729851562 updated for version 7.0g
vimboss
parents: 849
diff changeset
500 =1 use WinNT/2K/XP's rcp, binary mode
8cd729851562 updated for version 7.0g
vimboss
parents: 849
diff changeset
501 g:netrw_win95ftp =0 use unix-style ftp even if win95/98/ME/etc
8cd729851562 updated for version 7.0g
vimboss
parents: 849
diff changeset
502 =1 use default method to do ftp >
9
4102fb4ea781 updated for version 7.0002
vimboss
parents: 7
diff changeset
503 -----------------------------------------------------------------------
4102fb4ea781 updated for version 7.0002
vimboss
parents: 7
diff changeset
504 <
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
505 The script will also make use of the following variables internally, albeit
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
506 temporarily.
9
4102fb4ea781 updated for version 7.0002
vimboss
parents: 7
diff changeset
507 >
4102fb4ea781 updated for version 7.0002
vimboss
parents: 7
diff changeset
508 -------------------
4102fb4ea781 updated for version 7.0002
vimboss
parents: 7
diff changeset
509 Temporary Variables
4102fb4ea781 updated for version 7.0002
vimboss
parents: 7
diff changeset
510 -------------------
4102fb4ea781 updated for version 7.0002
vimboss
parents: 7
diff changeset
511 Variable Meaning
4102fb4ea781 updated for version 7.0002
vimboss
parents: 7
diff changeset
512 -------- ------------------------------------
4102fb4ea781 updated for version 7.0002
vimboss
parents: 7
diff changeset
513 <
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
514 g:netrw_method Index indicating rcp/ftp+.netrc/ftp
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
515 g:netrw_machine Holds machine name parsed from input
9
4102fb4ea781 updated for version 7.0002
vimboss
parents: 7
diff changeset
516 g:netrw_fname Holds filename being accessed >
4102fb4ea781 updated for version 7.0002
vimboss
parents: 7
diff changeset
517 ------------------------------------------------------------
4102fb4ea781 updated for version 7.0002
vimboss
parents: 7
diff changeset
518 <
4102fb4ea781 updated for version 7.0002
vimboss
parents: 7
diff changeset
519 *netrw-protocol*
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
520
9
4102fb4ea781 updated for version 7.0002
vimboss
parents: 7
diff changeset
521 Netrw supports a number of protocols. These protocols are invoked using the
4102fb4ea781 updated for version 7.0002
vimboss
parents: 7
diff changeset
522 variables listed below, and may be modified by the user.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
523 >
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
524 ------------------------
856
8cd729851562 updated for version 7.0g
vimboss
parents: 849
diff changeset
525 Protocol Control Options
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
526 ------------------------
856
8cd729851562 updated for version 7.0g
vimboss
parents: 849
diff changeset
527 Option Type Setting Meaning
8cd729851562 updated for version 7.0g
vimboss
parents: 849
diff changeset
528 --------- -------- -------------- ---------------------------
9
4102fb4ea781 updated for version 7.0002
vimboss
parents: 7
diff changeset
529 <
856
8cd729851562 updated for version 7.0g
vimboss
parents: 849
diff changeset
530 netrw_ftp variable =doesn't exist userid set by "user userid"
8cd729851562 updated for version 7.0g
vimboss
parents: 849
diff changeset
531 =0 userid set by "user userid"
8cd729851562 updated for version 7.0g
vimboss
parents: 849
diff changeset
532 =1 userid set by "userid"
8cd729851562 updated for version 7.0g
vimboss
parents: 849
diff changeset
533 NetReadFixup function =doesn't exist no change
8cd729851562 updated for version 7.0g
vimboss
parents: 849
diff changeset
534 =exists Allows user to have files
8cd729851562 updated for version 7.0g
vimboss
parents: 849
diff changeset
535 read via ftp automatically
8cd729851562 updated for version 7.0g
vimboss
parents: 849
diff changeset
536 transformed however they wish
8cd729851562 updated for version 7.0g
vimboss
parents: 849
diff changeset
537 by NetReadFixup()
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
538 g:netrw_dav_cmd variable ="cadaver"
856
8cd729851562 updated for version 7.0g
vimboss
parents: 849
diff changeset
539 g:netrw_fetch_cmd variable ="fetch -o" if fetch is available
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
540 g:netrw_ftp_cmd variable ="ftp"
650
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
541 g:netrw_http_cmd variable ="fetch -o" if fetch is available
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
542 g:netrw_http_cmd variable ="wget -O" else if wget is available
9
4102fb4ea781 updated for version 7.0002
vimboss
parents: 7
diff changeset
543 g:netrw_list_cmd variable ="ssh HOSTNAME ls -Fa"
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
544 g:netrw_rcp_cmd variable ="rcp"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
545 g:netrw_rsync_cmd variable ="rsync -a"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
546 g:netrw_scp_cmd variable ="scp -q"
9
4102fb4ea781 updated for version 7.0002
vimboss
parents: 7
diff changeset
547 g:netrw_sftp_cmd variable ="sftp" >
4102fb4ea781 updated for version 7.0002
vimboss
parents: 7
diff changeset
548 -------------------------------------------------------------------------
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
549 <
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 11
diff changeset
550 *netrw-ftp*
650
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
551 The first two options (netrw_ftp and NetReadFixup) both help with certain
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
552 ftp's that give trouble otherwise. In order to best understand how to use
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
553 these options if ftp is giving you troubles, a bit of discussion follows on
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
554 how netrw does ftp reads.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
555
559
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
556 The g:netrw_..._cmd variables specify the external program to use handle the
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
557 associated protocol (rcp, ftp, etc), plus any options.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
558
9
4102fb4ea781 updated for version 7.0002
vimboss
parents: 7
diff changeset
559 The g:netrw_list_cmd's HOSTNAME entry will be changed via substitution with
4102fb4ea781 updated for version 7.0002
vimboss
parents: 7
diff changeset
560 whatever the current request is for a hostname.
4102fb4ea781 updated for version 7.0002
vimboss
parents: 7
diff changeset
561
4102fb4ea781 updated for version 7.0002
vimboss
parents: 7
diff changeset
562 For ftp, netrw typically builds up lines of one of the following formats in a
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
563 temporary file:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
564 >
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
565 IF g:netrw_ftp !exists or is not 1 IF g:netrw_ftp exists and is 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
566 ---------------------------------- ------------------------------
9
4102fb4ea781 updated for version 7.0002
vimboss
parents: 7
diff changeset
567 <
856
8cd729851562 updated for version 7.0g
vimboss
parents: 849
diff changeset
568 open machine [port] open machine [port]
8cd729851562 updated for version 7.0g
vimboss
parents: 849
diff changeset
569 user userid password userid password
8cd729851562 updated for version 7.0g
vimboss
parents: 849
diff changeset
570 [g:netrw_ftpmode] password
8cd729851562 updated for version 7.0g
vimboss
parents: 849
diff changeset
571 get filename tempfile [g:netrw_ftpmode]
8cd729851562 updated for version 7.0g
vimboss
parents: 849
diff changeset
572 get filename tempfile >
9
4102fb4ea781 updated for version 7.0002
vimboss
parents: 7
diff changeset
573 ---------------------------------------------------------------------
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
574 <
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
575 Netrw then executes the lines above by use of a filter:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
576 >
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
577 :%! {g:netrw_ftp_cmd} -i [-n]
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
578 <
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
579
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
580 where
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
581 g:netrw_ftp_cmd is usually "ftp",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
582 -i tells ftp not to be interactive
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
583 -n means don't use netrc and is used for Method #3 (ftp w/o <.netrc>)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
584
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
585 If <.netrc> exists it will be used to avoid having to query the user for
9
4102fb4ea781 updated for version 7.0002
vimboss
parents: 7
diff changeset
586 userid and password. The transferred file is put into a temporary file.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
587 The temporary file is then read into the main editing session window that
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
588 requested it and the temporary file deleted.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
589
559
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
590 If your ftp doesn't accept the "user" command and immediately just demands a
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
591 userid, then try putting "let netrw_ftp=1" in your <.vimrc>.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
592
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 11
diff changeset
593 *netrw-cadaver*
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 11
diff changeset
594 To handle the SSL certificate dialog for untrusted servers, one may pull
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 11
diff changeset
595 down the certificate and place it into /usr/ssl/cert.pem. This operation
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 11
diff changeset
596 renders the server treatment as "trusted".
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 11
diff changeset
597
794
f19994020dad updated for version 7.0231
vimboss
parents: 766
diff changeset
598 *netrw-fixup* *netreadfixup*
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
599 If your ftp for whatever reason generates unwanted lines (such as AUTH
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
600 messages) you may write a NetReadFixup(tmpfile) function:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
601 >
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
602 function! NetReadFixup(method,line1,line2)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
603 " a:line1: first new line in current file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
604 " a:line2: last new line in current file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
605 if a:method == 1 "rcp
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
606 elseif a:method == 2 "ftp + <.netrc>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
607 elseif a:method == 3 "ftp + machine,uid,password,filename
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
608 elseif a:method == 4 "scp
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
609 elseif a:method == 5 "http/wget
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
610 elseif a:method == 6 "dav/cadaver
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
611 elseif a:method == 7 "rsync
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
612 elseif a:method == 8 "fetch
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
613 elseif a:method == 9 "sftp
856
8cd729851562 updated for version 7.0g
vimboss
parents: 849
diff changeset
614 else " complain
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
615 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
616 endfunction
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
617 >
559
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
618 The NetReadFixup() function will be called if it exists and thus allows you to
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
619 customize your reading process. As a further example, <netrw.vim> contains
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
620 just such a function to handle Windows 95 ftp. For whatever reason, Windows
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
621 95's ftp dumps four blank lines at the end of a transfer, and so it is
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
622 desirable to automate their removal. Here's some code taken from <netrw.vim>
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
623 itself:
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
624 >
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
625 if has("win95") && g:netrw_win95ftp
9
4102fb4ea781 updated for version 7.0002
vimboss
parents: 7
diff changeset
626 fun! NetReadFixup(method, line1, line2)
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
627 if method == 3 " ftp (no <.netrc>)
856
8cd729851562 updated for version 7.0g
vimboss
parents: 849
diff changeset
628 let fourblanklines= line2 - 3
8cd729851562 updated for version 7.0g
vimboss
parents: 849
diff changeset
629 silent fourblanklines.",".line2."g/^\s*/d"
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
630 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
631 endfunction
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
632 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
633 >
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
634
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
635 ==============================================================================
650
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
636 8. Directory Browsing *netrw-browse* *netrw-dir* *netrw-list* *netrw-help*
459
d9d38102399f updated for version 7.0122
vimboss
parents: 236
diff changeset
637
794
f19994020dad updated for version 7.0231
vimboss
parents: 766
diff changeset
638 MAPS *netrw-maps*
f19994020dad updated for version 7.0231
vimboss
parents: 766
diff changeset
639 <F1>.............Help.......................................|netrw-help|
459
d9d38102399f updated for version 7.0122
vimboss
parents: 236
diff changeset
640 <cr>.............Browsing...................................|netrw-cr|
d9d38102399f updated for version 7.0122
vimboss
parents: 236
diff changeset
641 <del>............Deleting Files or Directories..............|netrw-delete|
d9d38102399f updated for version 7.0122
vimboss
parents: 236
diff changeset
642 -................Going Up...................................|netrw--|
d9d38102399f updated for version 7.0122
vimboss
parents: 236
diff changeset
643 a................Hiding Files or Directories................|netrw-a|
d9d38102399f updated for version 7.0122
vimboss
parents: 236
diff changeset
644 b................Bookmarking a Directory....................|netrw-b|
d9d38102399f updated for version 7.0122
vimboss
parents: 236
diff changeset
645 B................Changing to a Bookmarked Directory.........|netrw-B|
d9d38102399f updated for version 7.0122
vimboss
parents: 236
diff changeset
646 c................Make Browsing Directory The Current Dir....|netrw-c|
d9d38102399f updated for version 7.0122
vimboss
parents: 236
diff changeset
647 d................Make A New Directory.......................|netrw-d|
d9d38102399f updated for version 7.0122
vimboss
parents: 236
diff changeset
648 D................Deleting Files or Directories..............|netrw-D|
650
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
649 <c-h>............Edit File/Directory Hiding List............|netrw-ctrl-h|
459
d9d38102399f updated for version 7.0122
vimboss
parents: 236
diff changeset
650 i................Long Listing...............................|netrw-i|
d9d38102399f updated for version 7.0122
vimboss
parents: 236
diff changeset
651 <c-l>............Refreshing the Listing.....................|netrw-ctrl-l|
d9d38102399f updated for version 7.0122
vimboss
parents: 236
diff changeset
652 o................Browsing with a Horizontal Split...........|netrw-o|
d9d38102399f updated for version 7.0122
vimboss
parents: 236
diff changeset
653 p................Preview Window.............................|netrw-p|
d9d38102399f updated for version 7.0122
vimboss
parents: 236
diff changeset
654 q................Listing Bookmarks and History..............|netrw-q|
d9d38102399f updated for version 7.0122
vimboss
parents: 236
diff changeset
655 r................Reversing Sorting Order....................|netrw-r|
d9d38102399f updated for version 7.0122
vimboss
parents: 236
diff changeset
656 R................Renaming Files or Directories..............|netrw-R|
d9d38102399f updated for version 7.0122
vimboss
parents: 236
diff changeset
657 s................Selecting Sorting Style....................|netrw-s|
d9d38102399f updated for version 7.0122
vimboss
parents: 236
diff changeset
658 S................Editing the Sorting Sequence...............|netrw-S|
d9d38102399f updated for version 7.0122
vimboss
parents: 236
diff changeset
659 u................Changing to a Predecessor Directory........|netrw-u|
d9d38102399f updated for version 7.0122
vimboss
parents: 236
diff changeset
660 U................Changing to a Successor Directory..........|netrw-U|
d9d38102399f updated for version 7.0122
vimboss
parents: 236
diff changeset
661 v................Browsing with a Vertical Split.............|netrw-v|
d9d38102399f updated for version 7.0122
vimboss
parents: 236
diff changeset
662 x................Customizing Browsing.......................|netrw-x|
d9d38102399f updated for version 7.0122
vimboss
parents: 236
diff changeset
663
d9d38102399f updated for version 7.0122
vimboss
parents: 236
diff changeset
664 COMMANDS *netrw-explore-cmds*
477
f8b75b8f1988 updated for version 7.0128
vimboss
parents: 466
diff changeset
665 :Explore[!] [dir] Explore directory of current file........|netrw-explore|
f8b75b8f1988 updated for version 7.0128
vimboss
parents: 466
diff changeset
666 :Sexplore[!] [dir] Split & Explore directory ...............|netrw-explore|
f8b75b8f1988 updated for version 7.0128
vimboss
parents: 466
diff changeset
667 :Hexplore[!] [dir] Horizontal Split & Explore...............|netrw-explore|
f8b75b8f1988 updated for version 7.0128
vimboss
parents: 466
diff changeset
668 :Vexplore[!] [dir] Vertical Split & Explore.................|netrw-explore|
f8b75b8f1988 updated for version 7.0128
vimboss
parents: 466
diff changeset
669 :Pexplore[!] [dir] Vertical Split & Explore.................|netrw-explore|
f8b75b8f1988 updated for version 7.0128
vimboss
parents: 466
diff changeset
670 :Nexplore[!] [dir] Vertical Split & Explore.................|netrw-explore|
482
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
671 :NetrwSettings.............................................|netrw-settings|
21
db5102f7e29f updated for version 7.0013
vimboss
parents: 15
diff changeset
672
794
f19994020dad updated for version 7.0231
vimboss
parents: 766
diff changeset
673 QUICK REFERENCE COMMANDS TABLE *netrw-browse-cmds*
11
4424b47a0797 updated for version 7.0003
vimboss
parents: 9
diff changeset
674 >
857
b933657f7c9d updated for version 7.0g01
vimboss
parents: 856
diff changeset
675 ------- -----------
11
4424b47a0797 updated for version 7.0003
vimboss
parents: 9
diff changeset
676 Command Explanation
856
8cd729851562 updated for version 7.0g
vimboss
parents: 849
diff changeset
677 ------- -----------
794
f19994020dad updated for version 7.0231
vimboss
parents: 766
diff changeset
678 < <F1> Causes Netrw to issue help
650
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
679 <cr> Netrw will enter the directory or read the file |netrw-cr|
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
680 <del> Netrw will attempt to remove the file/directory |netrw-del|
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
681 - Makes Netrw go up one directory |netrw--|
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
682 a Toggles between normal display, |netrw-a|
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
683 hiding (suppress display of files matching g:netrw_list_hide)
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
684 showing (display only files which match g:netrw_list_hide)
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
685 b bookmark current directory; use Nb if compact listing
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
686 in use |netrw-b|
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
687 B go to previous bookmarked directory; use Nb if compact
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
688 listing is in use |netrw-B|
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
689 c Make current browsing directory the current directory |netrw-c|
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
690 d Make a directory |netrw-d|
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
691 D Netrw will attempt to remove the file(s)/directory(ies) |netrw-D|
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
692 <c-h> Edit file hiding list |netrw-ctrl-h|
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
693 i Toggles between long and short listing |netrw-i|
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
694 <c-l> Causes Netrw to refresh the directory listing |netrw-ctrl-l|
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
695 Nb Same as b, but always available |netrw-Nb|
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
696 NB Same as B, but always available |netrw-NB|
11
4424b47a0797 updated for version 7.0003
vimboss
parents: 9
diff changeset
697 o Enter the file/directory under the cursor in a new browser
650
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
698 window. A horizontal split is used. |netrw-o|
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
699 O Obtain a file specified by cursor |netrw-O|
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
700 p Preview the file |netrw-p|
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
701 P Browse in the previously used window |netrw-P|
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
702 r Reverse sorting order |netrw-r|
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
703 R Rename the designed file(s)/directory(ies) |netrw-R|
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
704 s Select sorting style: by name, time, or file size |netrw-s|
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
705 S Specify suffix priority for name-sorting |netrw-S|
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
706 u Change to recently-visited directory |netrw-u|
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
707 U Change to subsequently-visited directory |netrw-U|
11
4424b47a0797 updated for version 7.0003
vimboss
parents: 9
diff changeset
708 v Enter the file/directory under the cursor in a new browser
650
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
709 window. A vertical split is used. |netrw-v|
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
710 x Apply a function to a file. (special browsers) |netrw-x|
24
8ff7fd162d3c updated for version 7.0016
vimboss
parents: 22
diff changeset
711
21
db5102f7e29f updated for version 7.0013
vimboss
parents: 15
diff changeset
712 NETRW BROWSER VARIABLES *netrw-browse-var*
11
4424b47a0797 updated for version 7.0003
vimboss
parents: 9
diff changeset
713 >
482
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
714 --- -----------
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
715 Var Explanation
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
716 --- -----------
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
717 < *g:netrw_alto* change from above splitting to below splitting
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
718 by setting this variable (see |netrw-o|)
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
719 default: =0
459
d9d38102399f updated for version 7.0122
vimboss
parents: 236
diff changeset
720
482
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
721 *g:netrw_altv* change from left splitting to right splitting
794
f19994020dad updated for version 7.0231
vimboss
parents: 766
diff changeset
722 by setting this variable (see |netrw-v|)
482
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
723 default: =0
459
d9d38102399f updated for version 7.0122
vimboss
parents: 236
diff changeset
724
650
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
725 *g:netrw_browse_split* when browsing, <cr> will open the file by:
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
726 =0: re-using the same window
856
8cd729851562 updated for version 7.0g
vimboss
parents: 849
diff changeset
727 =1: horizontally splitting the window first
8cd729851562 updated for version 7.0g
vimboss
parents: 849
diff changeset
728 =2: vertically splitting the window first
719
82ef0c58b012 updated for version 7.0219
vimboss
parents: 650
diff changeset
729
650
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
730 *g:netrw_browsex_viewer* specify user's preference for a viewer: >
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
731 "kfmclient exec"
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
732 "gnome-open"
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
733 < If >
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
734 "-"
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
735 < is used, then netrwFileHandler() will look for
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
736 a script/function to handle the given
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
737 extension. (see |netrw_filehandler|).
719
82ef0c58b012 updated for version 7.0219
vimboss
parents: 650
diff changeset
738
82ef0c58b012 updated for version 7.0219
vimboss
parents: 650
diff changeset
739 *g:netrw_fastbrowse* =0: slow speed browsing, never re-use
794
f19994020dad updated for version 7.0231
vimboss
parents: 766
diff changeset
740 directory listings; always obtain
719
82ef0c58b012 updated for version 7.0219
vimboss
parents: 650
diff changeset
741 directory listings.
82ef0c58b012 updated for version 7.0219
vimboss
parents: 650
diff changeset
742 =1: medium speed browsing, re-use directory
82ef0c58b012 updated for version 7.0219
vimboss
parents: 650
diff changeset
743 listings only when remote browsing.
82ef0c58b012 updated for version 7.0219
vimboss
parents: 650
diff changeset
744 (default value)
82ef0c58b012 updated for version 7.0219
vimboss
parents: 650
diff changeset
745 =2: fast browsing, only obtains directory
82ef0c58b012 updated for version 7.0219
vimboss
parents: 650
diff changeset
746 listings when the directory hasn't been
82ef0c58b012 updated for version 7.0219
vimboss
parents: 650
diff changeset
747 seen before (or |netrw-ctrl-l| is used).
82ef0c58b012 updated for version 7.0219
vimboss
parents: 650
diff changeset
748 Fast browsing retains old directory listing
82ef0c58b012 updated for version 7.0219
vimboss
parents: 650
diff changeset
749 buffers so that they don't need to be
82ef0c58b012 updated for version 7.0219
vimboss
parents: 650
diff changeset
750 re-acquired. This feature is especially
82ef0c58b012 updated for version 7.0219
vimboss
parents: 650
diff changeset
751 important for remote browsing. However, if
82ef0c58b012 updated for version 7.0219
vimboss
parents: 650
diff changeset
752 a file is introduced or deleted into or from
82ef0c58b012 updated for version 7.0219
vimboss
parents: 650
diff changeset
753 such directories, the old directory buffer
82ef0c58b012 updated for version 7.0219
vimboss
parents: 650
diff changeset
754 becomes out-of-date. One may always refresh
82ef0c58b012 updated for version 7.0219
vimboss
parents: 650
diff changeset
755 such a directory listing with |netrw-ctrl-l|.
82ef0c58b012 updated for version 7.0219
vimboss
parents: 650
diff changeset
756 This option gives the choice of the trade-off
82ef0c58b012 updated for version 7.0219
vimboss
parents: 650
diff changeset
757 between accuracy and speed to the user.
82ef0c58b012 updated for version 7.0219
vimboss
parents: 650
diff changeset
758
482
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
759 *g:netrw_ftp_browse_reject* ftp can produce a number of errors and warnings
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
760 that can show up as "directories" and "files"
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
761 in the listing. This pattern is used to
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
762 remove such embedded messages. By default its
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
763 value is:
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
764 '^total\s\+\d\+$\|
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
765 ^Trying\s\+\d\+.*$\|
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
766 ^KERBEROS_V\d rejected\|
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
767 ^Security extensions not\|
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
768 No such file\|
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
769 : connect to address [0-9a-fA-F:]*
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
770 : No route to host$'
459
d9d38102399f updated for version 7.0122
vimboss
parents: 236
diff changeset
771
559
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
772 *g:netrw_ftp_list_cmd* options for passing along to ftp for directory
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
773 listing. Defaults:
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
774 unix or g:netrw_cygwin set: : "ls -lF"
856
8cd729851562 updated for version 7.0g
vimboss
parents: 849
diff changeset
775 otherwise "dir"
559
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
776
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
777 *g:netrw_hide* if true, the hiding list is used
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
778 default: =0
459
d9d38102399f updated for version 7.0122
vimboss
parents: 236
diff changeset
779
482
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
780 *g:netrw_keepdir* =1 (default) keep current directory immune from
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
781 the browsing directory.
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
782 =0 keep the current directory the same as the
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
783 browsing directory.
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
784 The current browsing directory is contained in
839
1f3b1021f002 updated for version 7.0e05
vimboss
parents: 834
diff changeset
785 b:netrw_curdir (also see |netrw-c|)
459
d9d38102399f updated for version 7.0122
vimboss
parents: 236
diff changeset
786
482
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
787 *g:netrw_list_cmd* command for listing remote directories
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
788 default: (if ssh is executable)
856
8cd729851562 updated for version 7.0g
vimboss
parents: 849
diff changeset
789 "ssh HOSTNAME ls -FLa"
459
d9d38102399f updated for version 7.0122
vimboss
parents: 236
diff changeset
790
482
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
791 *g:netrw_longlist* if =1, then long listing will be default
459
d9d38102399f updated for version 7.0122
vimboss
parents: 236
diff changeset
792
482
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
793 *g:netrw_list_hide* comma separated pattern list for hiding files
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
794 default: ""
459
d9d38102399f updated for version 7.0122
vimboss
parents: 236
diff changeset
795
482
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
796 *g:netrw_local_mkdir* command for making a local directory
559
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
797 default: "mkdir"
459
d9d38102399f updated for version 7.0122
vimboss
parents: 236
diff changeset
798
482
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
799 *g:netrw_local_rmdir* remove directory command (rmdir)
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
800 default: "rmdir"
459
d9d38102399f updated for version 7.0122
vimboss
parents: 236
diff changeset
801
482
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
802 *g:netrw_maxfilenamelen* =32 by default, selected so as to make long
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
803 listings fit on 80 column displays.
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
804 If your screen is wider, and you have file
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
805 or directory names longer than 32 bytes,
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
806 you may set this option to keep listings
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
807 columnar.
459
d9d38102399f updated for version 7.0122
vimboss
parents: 236
diff changeset
808
482
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
809 *g:netrw_mkdir_cmd* command for making a remote directory
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
810 default: "ssh HOSTNAME mkdir"
459
d9d38102399f updated for version 7.0122
vimboss
parents: 236
diff changeset
811
482
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
812 *g:netrw_rm_cmd* command for removing files
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
813 default: "ssh HOSTNAME rm"
459
d9d38102399f updated for version 7.0122
vimboss
parents: 236
diff changeset
814
482
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
815 *g:netrw_rmdir_cmd* command for removing directories
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
816 default: "ssh HOSTNAME rmdir"
459
d9d38102399f updated for version 7.0122
vimboss
parents: 236
diff changeset
817
482
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
818 *g:netrw_rmf_cmd* command for removing softlinks
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
819 default: "ssh HOSTNAME rm -f"
459
d9d38102399f updated for version 7.0122
vimboss
parents: 236
diff changeset
820
482
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
821 *g:netrw_sort_by* sort by "name", "time", or "size"
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
822 default: "name"
459
d9d38102399f updated for version 7.0122
vimboss
parents: 236
diff changeset
823
482
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
824 *g:netrw_sort_direction* sorting direction: "normal" or "reverse"
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
825 default: "normal"
459
d9d38102399f updated for version 7.0122
vimboss
parents: 236
diff changeset
826
482
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
827 *g:netrw_sort_sequence* when sorting by name, first sort by the
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
828 comma-separated pattern sequence
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
829 default: '[\/]$,*,\.bak$,\.o$,\.h$,
856
8cd729851562 updated for version 7.0g
vimboss
parents: 849
diff changeset
830 \.info$,\.swp$,\.obj$'
459
d9d38102399f updated for version 7.0122
vimboss
parents: 236
diff changeset
831
559
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
832 *g:netrw_ssh_cmd* One may specify an executable command
794
f19994020dad updated for version 7.0231
vimboss
parents: 766
diff changeset
833 to use instead of ssh for remote actions
559
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
834 such as listing, file removal, etc.
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
835 default: ssh
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
836
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
837 *g:netrw_ssh_browse_reject* ssh can sometimes produce unwanted lines,
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
838 messages, banners, and whatnot that one doesn't
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
839 want masquerading as "directories" and "files".
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
840 Use this pattern to remove such embedded
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
841 messages. By default its value is:
794
f19994020dad updated for version 7.0231
vimboss
parents: 766
diff changeset
842 '^total\s\+\d\+$'
559
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
843
482
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
844 *g:netrw_timefmt* specify format string to strftime() (%c)
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
845 default: "%c"
459
d9d38102399f updated for version 7.0122
vimboss
parents: 236
diff changeset
846
482
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
847 *g:netrw_winsize* specify initial size of new o/v windows
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
848 default: ""
24
8ff7fd162d3c updated for version 7.0016
vimboss
parents: 22
diff changeset
849
828
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 825
diff changeset
850 *g:NetrwTopLvlMenu* This variable specifies the top level
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 825
diff changeset
851 menu name; by default, its "Netrw.". If
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 825
diff changeset
852 you wish to change this, do so in your
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 825
diff changeset
853 .vimrc.
719
82ef0c58b012 updated for version 7.0219
vimboss
parents: 650
diff changeset
854
459
d9d38102399f updated for version 7.0122
vimboss
parents: 236
diff changeset
855 INTRODUCTION TO DIRECTORY BROWSING *netrw-browse-intro*
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 11
diff changeset
856
22
cc049b00ee70 updated for version 7.0014
vimboss
parents: 21
diff changeset
857 Netrw supports the browsing of directories on the local system and on remote
559
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
858 hosts, including listing files and directories, entering directories, editing
22
cc049b00ee70 updated for version 7.0014
vimboss
parents: 21
diff changeset
859 files therein, deleting files/directories, making new directories, and moving
cc049b00ee70 updated for version 7.0014
vimboss
parents: 21
diff changeset
860 (renaming) files and directories. The Netrw browser generally implements the
cc049b00ee70 updated for version 7.0014
vimboss
parents: 21
diff changeset
861 previous explorer maps and commands for remote directories, although details
cc049b00ee70 updated for version 7.0014
vimboss
parents: 21
diff changeset
862 (such as pertinent global variable names) necessarily differ.
cc049b00ee70 updated for version 7.0014
vimboss
parents: 21
diff changeset
863
cc049b00ee70 updated for version 7.0014
vimboss
parents: 21
diff changeset
864 The Netrw remote file and directory browser handles two protocols: ssh and
cc049b00ee70 updated for version 7.0014
vimboss
parents: 21
diff changeset
865 ftp. The protocol in the url, if it is ftp, will cause netrw to use ftp
cc049b00ee70 updated for version 7.0014
vimboss
parents: 21
diff changeset
866 in its remote browsing. Any other protocol will be used for file transfers,
cc049b00ee70 updated for version 7.0014
vimboss
parents: 21
diff changeset
867 but otherwise the ssh protocol will be used to do remote directory browsing.
9
4102fb4ea781 updated for version 7.0002
vimboss
parents: 7
diff changeset
868
559
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
869 To use Netrw's remote directory browser, simply attempt to read a "file" with a
11
4424b47a0797 updated for version 7.0003
vimboss
parents: 9
diff changeset
870 trailing slash and it will be interpreted as a request to list a directory:
9
4102fb4ea781 updated for version 7.0002
vimboss
parents: 7
diff changeset
871
4102fb4ea781 updated for version 7.0002
vimboss
parents: 7
diff changeset
872 vim [protocol]://[user@]hostname/path/
4102fb4ea781 updated for version 7.0002
vimboss
parents: 7
diff changeset
873
559
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
874 For local directories, the trailing slash is not required.
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
875
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
876 If you'd like to avoid entering the password in for remote directory listings
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
877 with ssh or scp, see |netrw-listhack|.
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 11
diff changeset
878
719
82ef0c58b012 updated for version 7.0219
vimboss
parents: 650
diff changeset
879
82ef0c58b012 updated for version 7.0219
vimboss
parents: 650
diff changeset
880 NETRW BROWSING AND OPTION INCOMPATIBILITIES *netrw-incompatible*
82ef0c58b012 updated for version 7.0219
vimboss
parents: 650
diff changeset
881
82ef0c58b012 updated for version 7.0219
vimboss
parents: 650
diff changeset
882 Netrw will not work properly with >
82ef0c58b012 updated for version 7.0219
vimboss
parents: 650
diff changeset
883
82ef0c58b012 updated for version 7.0219
vimboss
parents: 650
diff changeset
884 :set acd
82ef0c58b012 updated for version 7.0219
vimboss
parents: 650
diff changeset
885 :set fo=...ta...
82ef0c58b012 updated for version 7.0219
vimboss
parents: 650
diff changeset
886 <
82ef0c58b012 updated for version 7.0219
vimboss
parents: 650
diff changeset
887 If either of these options are present when browsing is attempted, netrw
82ef0c58b012 updated for version 7.0219
vimboss
parents: 650
diff changeset
888 will change them by using noacd and removing the ta suboptions from the
724
a35dce0cabc5 updated for version 7.0220
vimboss
parents: 719
diff changeset
889 |'formatoptions'|.
719
82ef0c58b012 updated for version 7.0219
vimboss
parents: 650
diff changeset
890
466
7a01bd1ac566 updated for version 7.0125
vimboss
parents: 464
diff changeset
891 *netrw-explore* *netrw-pexplore*
7a01bd1ac566 updated for version 7.0125
vimboss
parents: 464
diff changeset
892 *netrw-hexplore* *netrw-sexplore*
7a01bd1ac566 updated for version 7.0125
vimboss
parents: 464
diff changeset
893 DIRECTORY EXPLORING COMMANDS *netrw-nexplore* *netrw-vexplore*
459
d9d38102399f updated for version 7.0122
vimboss
parents: 236
diff changeset
894
477
f8b75b8f1988 updated for version 7.0128
vimboss
parents: 466
diff changeset
895 :Explore[!] [dir]... Explore directory of current file *:Explore*
f8b75b8f1988 updated for version 7.0128
vimboss
parents: 466
diff changeset
896 :Sexplore[!] [dir]... Split&Explore directory of current file *:Sexplore*
856
8cd729851562 updated for version 7.0g
vimboss
parents: 849
diff changeset
897 :Hexplore[!] [dir]... Horizontal Split & Explore *:Hexplore*
8cd729851562 updated for version 7.0g
vimboss
parents: 849
diff changeset
898 :Vexplore[!] [dir]... Vertical Split & Explore *:Vexplore*
477
f8b75b8f1988 updated for version 7.0128
vimboss
parents: 466
diff changeset
899
f8b75b8f1988 updated for version 7.0128
vimboss
parents: 466
diff changeset
900 Used with :Explore **/pattern :
856
8cd729851562 updated for version 7.0g
vimboss
parents: 849
diff changeset
901 :Nexplore............. go to next matching file *:Nexplore*
8cd729851562 updated for version 7.0g
vimboss
parents: 849
diff changeset
902 :Pexplore............. go to previous matching file *:Pexplore*
459
d9d38102399f updated for version 7.0122
vimboss
parents: 236
diff changeset
903
477
f8b75b8f1988 updated for version 7.0128
vimboss
parents: 466
diff changeset
904 :Explore will open the local-directory browser on the current file's
856
8cd729851562 updated for version 7.0g
vimboss
parents: 849
diff changeset
905 directory (or on directory [dir] if specified). The window will be
477
f8b75b8f1988 updated for version 7.0128
vimboss
parents: 466
diff changeset
906 split only if the file has been modified, otherwise the browsing
f8b75b8f1988 updated for version 7.0128
vimboss
parents: 466
diff changeset
907 window will take over that window. Normally the splitting is taken
f8b75b8f1988 updated for version 7.0128
vimboss
parents: 466
diff changeset
908 horizontally.
f8b75b8f1988 updated for version 7.0128
vimboss
parents: 466
diff changeset
909 :Explore! is like :Explore, but will use vertical splitting.
f8b75b8f1988 updated for version 7.0128
vimboss
parents: 466
diff changeset
910 :Sexplore will always split the window before invoking the local-directory
856
8cd729851562 updated for version 7.0g
vimboss
parents: 849
diff changeset
911 browser. As with Explore, the splitting is normally done
477
f8b75b8f1988 updated for version 7.0128
vimboss
parents: 466
diff changeset
912 horizontally.
f8b75b8f1988 updated for version 7.0128
vimboss
parents: 466
diff changeset
913 :Sexplore! [dir] is like :Sexplore, but the splitting will be done vertically.
f8b75b8f1988 updated for version 7.0128
vimboss
parents: 466
diff changeset
914 :Hexplore [dir] does an :Explore with |:belowright| horizontal splitting.
f8b75b8f1988 updated for version 7.0128
vimboss
parents: 466
diff changeset
915 :Hexplore! [dir] does an :Explore with |:aboveleft| horizontal splitting.
f8b75b8f1988 updated for version 7.0128
vimboss
parents: 466
diff changeset
916 :Vexplore [dir] does an :Explore with |:leftabove| vertical splitting.
f8b75b8f1988 updated for version 7.0128
vimboss
parents: 466
diff changeset
917 :Vexplore! [dir] does an :Explore with |:rightbelow| vertical splitting.
459
d9d38102399f updated for version 7.0122
vimboss
parents: 236
diff changeset
918
477
f8b75b8f1988 updated for version 7.0128
vimboss
parents: 466
diff changeset
919 By default, these commands use the current file's directory. However, one
f8b75b8f1988 updated for version 7.0128
vimboss
parents: 466
diff changeset
920 may explicitly provide a directory (path) to use.
459
d9d38102399f updated for version 7.0122
vimboss
parents: 236
diff changeset
921
839
1f3b1021f002 updated for version 7.0e05
vimboss
parents: 834
diff changeset
922 *netrw-starstar*
1f3b1021f002 updated for version 7.0e05
vimboss
parents: 834
diff changeset
923 When Explore, Sexplore, Hexplore, or Vexplore are used with a **/filepat,
559
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
924 such as:
466
7a01bd1ac566 updated for version 7.0125
vimboss
parents: 464
diff changeset
925 >
7a01bd1ac566 updated for version 7.0125
vimboss
parents: 464
diff changeset
926 :Explore **/filename_pattern
7a01bd1ac566 updated for version 7.0125
vimboss
parents: 464
diff changeset
927 <
839
1f3b1021f002 updated for version 7.0e05
vimboss
parents: 834
diff changeset
928 netrw will attempt to find a file in the current directory or any subdirectory
1f3b1021f002 updated for version 7.0e05
vimboss
parents: 834
diff changeset
929 which matches the filename pattern. Internally, it produces a list of files
1f3b1021f002 updated for version 7.0e05
vimboss
parents: 834
diff changeset
930 which match the pattern and their paths; to that extent it resembles the Unix
1f3b1021f002 updated for version 7.0e05
vimboss
parents: 834
diff changeset
931 operation:
466
7a01bd1ac566 updated for version 7.0125
vimboss
parents: 464
diff changeset
932 >
7a01bd1ac566 updated for version 7.0125
vimboss
parents: 464
diff changeset
933 find $(pwd) -name "$1" -exec "echo" "{}" ";" 2> /dev/null
7a01bd1ac566 updated for version 7.0125
vimboss
parents: 464
diff changeset
934 <
7a01bd1ac566 updated for version 7.0125
vimboss
parents: 464
diff changeset
935 The directory display is updated to show the subdirectory containing a
7a01bd1ac566 updated for version 7.0125
vimboss
parents: 464
diff changeset
936 matching file. One may then proceed to the next (or previous) matching files'
7a01bd1ac566 updated for version 7.0125
vimboss
parents: 464
diff changeset
937 directories by using Nexplore or Pexplore, respectively. If your console or
7a01bd1ac566 updated for version 7.0125
vimboss
parents: 464
diff changeset
938 gui produces recognizable shift-up or shift-down sequences, then you'll likely
559
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
939 find using shift-downarrow and shift-uparrow convenient. They're mapped by
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
940 netrw:
464
3b705e71c7b0 updated for version 7.0124
vimboss
parents: 461
diff changeset
941
3b705e71c7b0 updated for version 7.0124
vimboss
parents: 461
diff changeset
942 <s-down> == Nexplore, and
3b705e71c7b0 updated for version 7.0124
vimboss
parents: 461
diff changeset
943 <s-up> == Pexplore.
3b705e71c7b0 updated for version 7.0124
vimboss
parents: 461
diff changeset
944
466
7a01bd1ac566 updated for version 7.0125
vimboss
parents: 464
diff changeset
945 As an example, consider
7a01bd1ac566 updated for version 7.0125
vimboss
parents: 464
diff changeset
946 >
464
3b705e71c7b0 updated for version 7.0124
vimboss
parents: 461
diff changeset
947 :Explore **/*.c
3b705e71c7b0 updated for version 7.0124
vimboss
parents: 461
diff changeset
948 :Nexplore
3b705e71c7b0 updated for version 7.0124
vimboss
parents: 461
diff changeset
949 :Nexplore
3b705e71c7b0 updated for version 7.0124
vimboss
parents: 461
diff changeset
950 :Pexplore
3b705e71c7b0 updated for version 7.0124
vimboss
parents: 461
diff changeset
951 <
466
7a01bd1ac566 updated for version 7.0125
vimboss
parents: 464
diff changeset
952 The status line will show, on the right hand side of the status line, a
7a01bd1ac566 updated for version 7.0125
vimboss
parents: 464
diff changeset
953 message like "Match 3 of 20".
7a01bd1ac566 updated for version 7.0125
vimboss
parents: 464
diff changeset
954
839
1f3b1021f002 updated for version 7.0e05
vimboss
parents: 834
diff changeset
955 *netrw-starpat*
1f3b1021f002 updated for version 7.0e05
vimboss
parents: 834
diff changeset
956 When Explore, Sexplore, Hexplore, or Vexplore are used with a */pattern,
1f3b1021f002 updated for version 7.0e05
vimboss
parents: 834
diff changeset
957 such as:
1f3b1021f002 updated for version 7.0e05
vimboss
parents: 834
diff changeset
958 >
1f3b1021f002 updated for version 7.0e05
vimboss
parents: 834
diff changeset
959 :Explore */pattern
1f3b1021f002 updated for version 7.0e05
vimboss
parents: 834
diff changeset
960 <
1f3b1021f002 updated for version 7.0e05
vimboss
parents: 834
diff changeset
961 netrw will use |:vimgrep| to find files which contain the given pattern.
1f3b1021f002 updated for version 7.0e05
vimboss
parents: 834
diff changeset
962 Like what happens with |netrw-starstar|, a list of files which contain
1f3b1021f002 updated for version 7.0e05
vimboss
parents: 834
diff changeset
963 matches to the given pattern is generated. The cursor will then jump
1f3b1021f002 updated for version 7.0e05
vimboss
parents: 834
diff changeset
964 to the first file with the given pattern; |:Nexplore|, |:Pexplore|, and
1f3b1021f002 updated for version 7.0e05
vimboss
parents: 834
diff changeset
965 the shifted-down and -up arrows work with the list to move to the next
1f3b1021f002 updated for version 7.0e05
vimboss
parents: 834
diff changeset
966 or previous files in that list.
459
d9d38102399f updated for version 7.0122
vimboss
parents: 236
diff changeset
967
841
c2cae213194d updated for version 7.0e07
vimboss
parents: 839
diff changeset
968 *netrw-starstarpat*
c2cae213194d updated for version 7.0e07
vimboss
parents: 839
diff changeset
969 When Explore, Sexplore, Hexplore, or Vexplore are used with a **//pattern,
c2cae213194d updated for version 7.0e07
vimboss
parents: 839
diff changeset
970 such as:
c2cae213194d updated for version 7.0e07
vimboss
parents: 839
diff changeset
971 >
c2cae213194d updated for version 7.0e07
vimboss
parents: 839
diff changeset
972 :Explore **//pattern
c2cae213194d updated for version 7.0e07
vimboss
parents: 839
diff changeset
973 <
c2cae213194d updated for version 7.0e07
vimboss
parents: 839
diff changeset
974 then Explore will use |:vimgrep| to find files like |netrw-starpat|;
c2cae213194d updated for version 7.0e07
vimboss
parents: 839
diff changeset
975 however, Explore will also search subdirectories as well as the current
c2cae213194d updated for version 7.0e07
vimboss
parents: 839
diff changeset
976 directory.
c2cae213194d updated for version 7.0e07
vimboss
parents: 839
diff changeset
977
c2cae213194d updated for version 7.0e07
vimboss
parents: 839
diff changeset
978
22
cc049b00ee70 updated for version 7.0014
vimboss
parents: 21
diff changeset
979 REFRESHING THE LISTING *netrw-ctrl-l*
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 11
diff changeset
980
22
cc049b00ee70 updated for version 7.0014
vimboss
parents: 21
diff changeset
981 To refresh either a local or remote directory listing, press ctrl-l (<c-l>) or
cc049b00ee70 updated for version 7.0014
vimboss
parents: 21
diff changeset
982 hit the <cr> when atop the ./ directory entry in the listing. One may also
cc049b00ee70 updated for version 7.0014
vimboss
parents: 21
diff changeset
983 refresh a local directory by using ":e .".
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 11
diff changeset
984
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 11
diff changeset
985
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 11
diff changeset
986 GOING UP *netrw--*
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 11
diff changeset
987
559
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
988 To go up a directory, press "-" or press the <cr> when atop the ../ directory
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 11
diff changeset
989 entry in the listing.
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 11
diff changeset
990
559
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
991 Netrw will use the command in |g:netrw_list_cmd| to perform the directory
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
992 listing operation after changing HOSTNAME to the host specified by the
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
993 user-provided url. By default netrw provides the command as:
9
4102fb4ea781 updated for version 7.0002
vimboss
parents: 7
diff changeset
994
11
4424b47a0797 updated for version 7.0003
vimboss
parents: 9
diff changeset
995 ssh HOSTNAME ls -FLa
9
4102fb4ea781 updated for version 7.0002
vimboss
parents: 7
diff changeset
996
22
cc049b00ee70 updated for version 7.0014
vimboss
parents: 21
diff changeset
997 where the HOSTNAME becomes the [user@]hostname as requested by the attempt to
cc049b00ee70 updated for version 7.0014
vimboss
parents: 21
diff changeset
998 read. Naturally, the user may override this command with whatever is
cc049b00ee70 updated for version 7.0014
vimboss
parents: 21
diff changeset
999 preferred. The NetList function which implements remote directory browsing
cc049b00ee70 updated for version 7.0014
vimboss
parents: 21
diff changeset
1000 expects that directories will be flagged by a trailing slash.
9
4102fb4ea781 updated for version 7.0002
vimboss
parents: 7
diff changeset
1001
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 11
diff changeset
1002
794
f19994020dad updated for version 7.0231
vimboss
parents: 766
diff changeset
1003 BROWSING *netrw-cr*
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 11
diff changeset
1004
9
4102fb4ea781 updated for version 7.0002
vimboss
parents: 7
diff changeset
1005 Browsing is simple: move the cursor onto a file or directory of interest.
11
4424b47a0797 updated for version 7.0003
vimboss
parents: 9
diff changeset
1006 Hitting the <cr> (the return key) will select the file or directory.
4424b47a0797 updated for version 7.0003
vimboss
parents: 9
diff changeset
1007 Directories will themselves be listed, and files will be opened using the
856
8cd729851562 updated for version 7.0g
vimboss
parents: 849
diff changeset
1008 protocol given in the original read request.
559
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
1009
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
1010 CAVEAT: There are three forms of listing (see |netrw-i|). Netrw assumes
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
1011 that two or more spaces delimit filenames and directory names for the long
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
1012 and wide listing formats. Thus, if your filename or directory name has two
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
1013 or more spaces embedded in it, or any trailing spaces, then you'll need to
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
1014 use the "thin" format to select it.
519
d50452846776 updated for version 7.0145
vimboss
parents: 501
diff changeset
1015
650
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
1016 The |g:netrw_browse_split| option, which is zero by default, may be used to
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
1017 cause the opening of files to be done in a new window. The splitting will
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
1018 be done horizontally if the option is one and vertically if the option is
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
1019 two.
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
1020
519
d50452846776 updated for version 7.0145
vimboss
parents: 501
diff changeset
1021
d50452846776 updated for version 7.0145
vimboss
parents: 501
diff changeset
1022 OBTAINING A FILE *netrw-O*
d50452846776 updated for version 7.0145
vimboss
parents: 501
diff changeset
1023
d50452846776 updated for version 7.0145
vimboss
parents: 501
diff changeset
1024 When browsing a remote directory, one may obtain a file under the cursor (ie.
d50452846776 updated for version 7.0145
vimboss
parents: 501
diff changeset
1025 get a copy on your local machine, but not edit it) by pressing the O key.
d50452846776 updated for version 7.0145
vimboss
parents: 501
diff changeset
1026 Only ftp and scp are supported for this operation (but since these two are
559
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
1027 available for browsing, that shouldn't be a problem). The status bar
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
1028 will then show, on its right hand side, a message like "Obtaining filename".
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
1029 The statusline will be restored after the transfer is complete.
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
1030
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
1031 Netrw can also "obtain" a file using the local browser. Netrw's display
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
1032 of a directory is not necessarily the same as Vim's "current directory",
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
1033 unless |g:netrw_keepdir| is set to 0 in the user's <.vimrc>. One may select
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
1034 a file using the local browser (by putting the cursor on it) and pressing
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
1035 "O" will then "obtain" the file; ie. copy it to Vim's current directory.
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
1036
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
1037 Related topics:
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
1038 * To see what the current directory is, use |:pwd|
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
1039 * To make the currently browsed directory the current directory, see |netrw-c|
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
1040 * To automatically make the currently browsed directory the current
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
1041 directory, see |g:netrw_keepdir|.
11
4424b47a0797 updated for version 7.0003
vimboss
parents: 9
diff changeset
1042
459
d9d38102399f updated for version 7.0122
vimboss
parents: 236
diff changeset
1043
519
d50452846776 updated for version 7.0145
vimboss
parents: 501
diff changeset
1044 THIN, LONG, AND WIDE LISTINGS *netrw-i*
d50452846776 updated for version 7.0145
vimboss
parents: 501
diff changeset
1045
d50452846776 updated for version 7.0145
vimboss
parents: 501
diff changeset
1046 The "i" map cycles between the thin, long, and wide listing formats.
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 11
diff changeset
1047
15
631143ac4a01 updated for version 7.0007
vimboss
parents: 12
diff changeset
1048 The short listing format gives just the files' and directories' names.
519
d50452846776 updated for version 7.0145
vimboss
parents: 501
diff changeset
1049
15
631143ac4a01 updated for version 7.0007
vimboss
parents: 12
diff changeset
1050 The long listing is either based on the "ls" command via ssh for remote
559
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
1051 directories or displays the filename, file size (in bytes), and the time and
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
1052 date of last modification for local directories. With the long listing
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
1053 format, netrw is not able to recognize filenames which have trailing spaces.
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
1054 Use the thin listing format for such files.
519
d50452846776 updated for version 7.0145
vimboss
parents: 501
diff changeset
1055
559
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
1056 The wide listing format has a multi-column display of the various files in the
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
1057 netrw current directory, rather like the Unix "ls" presents. In this mode the
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
1058 "b" and "B" maps are not available; instead, use Nb (|netrw-Nb|) and NB
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
1059 (|netrw-NB|). The wide listing format uses two or more contiguous spaces to
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
1060 delineate filenames; when using that format, netrw won't be able to recognize
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
1061 or use filenames which have two or more contiguous spaces embedded in the name
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
1062 or any trailing spaces. The thin listing format will, however, work with such
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
1063 files.
15
631143ac4a01 updated for version 7.0007
vimboss
parents: 12
diff changeset
1064
631143ac4a01 updated for version 7.0007
vimboss
parents: 12
diff changeset
1065
22
cc049b00ee70 updated for version 7.0014
vimboss
parents: 21
diff changeset
1066 MAKING A NEW DIRECTORY *netrw-d*
15
631143ac4a01 updated for version 7.0007
vimboss
parents: 12
diff changeset
1067
559
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
1068 With the "d" map one may make a new directory either remotely (which depends
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
1069 on the global variable g:netrw_mkdir_cmd) or locally (which depends on the
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
1070 global variable g:netrw_local_mkdir). Netrw will issue a request for the new
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
1071 directory's name. A bare <CR> at that point will abort the making of the
15
631143ac4a01 updated for version 7.0007
vimboss
parents: 12
diff changeset
1072 directory. Attempts to make a local directory that already exists (as either
631143ac4a01 updated for version 7.0007
vimboss
parents: 12
diff changeset
1073 a file or a directory) will be detected, reported on, and ignored.
631143ac4a01 updated for version 7.0007
vimboss
parents: 12
diff changeset
1074
459
d9d38102399f updated for version 7.0122
vimboss
parents: 236
diff changeset
1075
650
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
1076 DELETING FILES OR DIRECTORIES *netrw-delete* *netrw-D* *netrw-del*
11
4424b47a0797 updated for version 7.0003
vimboss
parents: 9
diff changeset
1077
4424b47a0797 updated for version 7.0003
vimboss
parents: 9
diff changeset
1078 Deleting/removing files and directories involves moving the cursor to the
559
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
1079 file/directory to be deleted and pressing "D". Directories must be empty
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
1080 first before they can be successfully removed. If the directory is a softlink
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
1081 to a directory, then netrw will make two requests to remove the directory
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
1082 before succeeding. Netrw will ask for confirmation before doing the
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
1083 removal(s). You may select a range of lines with the "V" command (visual
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
1084 selection), and then pressing "D".
11
4424b47a0797 updated for version 7.0003
vimboss
parents: 9
diff changeset
1085
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 11
diff changeset
1086 The g:netrw_rm_cmd, g:netrw_rmf_cmd, and g:netrw_rmdir_cmd variables are used
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 11
diff changeset
1087 to control the attempts to remove files and directories. The g:netrw_rm_cmd
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 11
diff changeset
1088 is used with files, and its default value is:
11
4424b47a0797 updated for version 7.0003
vimboss
parents: 9
diff changeset
1089
4424b47a0797 updated for version 7.0003
vimboss
parents: 9
diff changeset
1090 g:netrw_rm_cmd: ssh HOSTNAME rm
4424b47a0797 updated for version 7.0003
vimboss
parents: 9
diff changeset
1091
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 11
diff changeset
1092 The g:netrw_rmdir_cmd variable is used to support the removal of directories.
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 11
diff changeset
1093 Its default value is:
11
4424b47a0797 updated for version 7.0003
vimboss
parents: 9
diff changeset
1094
4424b47a0797 updated for version 7.0003
vimboss
parents: 9
diff changeset
1095 g:netrw_rmdir_cmd: ssh HOSTNAME rmdir
4424b47a0797 updated for version 7.0003
vimboss
parents: 9
diff changeset
1096
4424b47a0797 updated for version 7.0003
vimboss
parents: 9
diff changeset
1097 If removing a directory fails with g:netrw_rmdir_cmd, netrw then will attempt
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 11
diff changeset
1098 to remove it again using the g:netrw_rmf_cmd variable. Its default value is:
11
4424b47a0797 updated for version 7.0003
vimboss
parents: 9
diff changeset
1099
4424b47a0797 updated for version 7.0003
vimboss
parents: 9
diff changeset
1100 g:netrw_rmf_cmd: ssh HOSTNAME rm -f
4424b47a0797 updated for version 7.0003
vimboss
parents: 9
diff changeset
1101
4424b47a0797 updated for version 7.0003
vimboss
parents: 9
diff changeset
1102
15
631143ac4a01 updated for version 7.0007
vimboss
parents: 12
diff changeset
1103 RENAMING FILES OR DIRECTORIES *netrw-move* *netrw-rename* *netrw-R*
11
4424b47a0797 updated for version 7.0003
vimboss
parents: 9
diff changeset
1104
4424b47a0797 updated for version 7.0003
vimboss
parents: 9
diff changeset
1105 Renaming/moving files and directories involves moving the cursor to the
4424b47a0797 updated for version 7.0003
vimboss
parents: 9
diff changeset
1106 file/directory to be moved (renamed) and pressing "R". You will then be
4424b47a0797 updated for version 7.0003
vimboss
parents: 9
diff changeset
1107 queried for where you want the file/directory to be moved. You may select a
4424b47a0797 updated for version 7.0003
vimboss
parents: 9
diff changeset
1108 range of lines with the "V" command (visual selection), and then pressing "R".
4424b47a0797 updated for version 7.0003
vimboss
parents: 9
diff changeset
1109
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 11
diff changeset
1110 The g:netrw_rename_cmd variable is used to implement renaming. By default its
11
4424b47a0797 updated for version 7.0003
vimboss
parents: 9
diff changeset
1111 value is:
4424b47a0797 updated for version 7.0003
vimboss
parents: 9
diff changeset
1112
4424b47a0797 updated for version 7.0003
vimboss
parents: 9
diff changeset
1113 ssh HOSTNAME mv
4424b47a0797 updated for version 7.0003
vimboss
parents: 9
diff changeset
1114
21
db5102f7e29f updated for version 7.0013
vimboss
parents: 15
diff changeset
1115 One may rename a block of files and directories by selecting them with
db5102f7e29f updated for version 7.0013
vimboss
parents: 15
diff changeset
1116 the V (|linewise-visual|).
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 11
diff changeset
1117
22
cc049b00ee70 updated for version 7.0014
vimboss
parents: 21
diff changeset
1118
534
c6296b0ad9ea updated for version 7.0151
vimboss
parents: 532
diff changeset
1119 HIDING FILES OR DIRECTORIES *netrw-a*
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 11
diff changeset
1120
559
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
1121 Netrw's browsing facility allows one to use the hiding list in one of three
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
1122 ways: ignore it, hide files which match, and show only those files which
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
1123 match. The "a" map allows the user to cycle about these three ways.
459
d9d38102399f updated for version 7.0122
vimboss
parents: 236
diff changeset
1124
559
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
1125 The g:netrw_list_hide variable holds a comma delimited list of patterns (ex.
650
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
1126 \.obj) which specify the hiding list. (also see |netrw-ctrl-h|) To set the hiding
559
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
1127 list, use the <c-h> map. As an example, to hide files which begin with a ".",
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
1128 one may use the <c-h> map to set the hiding list to '^\..*' (or one may put
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
1129 let g:netrw_list_hide= '^\..*' in one's <.vimrc>). One may then use the "a"
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
1130 key to show all files, hide matching files, or to show only the matching
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
1131 files.
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 11
diff changeset
1132
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 11
diff changeset
1133
650
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
1134 EDIT FILE OR DIRECTORY HIDING LIST *netrw-ctrl-h* *netrw-edithide*
15
631143ac4a01 updated for version 7.0007
vimboss
parents: 12
diff changeset
1135
22
cc049b00ee70 updated for version 7.0014
vimboss
parents: 21
diff changeset
1136 The "<ctrl-h>" map brings up a requestor allowing the user to change the
21
db5102f7e29f updated for version 7.0013
vimboss
parents: 15
diff changeset
1137 file/directory hiding list. The hiding list consists of one or more patterns
db5102f7e29f updated for version 7.0013
vimboss
parents: 15
diff changeset
1138 delimited by commas. Files and/or directories satisfying these patterns will
559
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
1139 either be hidden (ie. not shown) or be the only ones displayed (see
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
1140 |netrw-a|).
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 11
diff changeset
1141
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 11
diff changeset
1142
459
d9d38102399f updated for version 7.0122
vimboss
parents: 236
diff changeset
1143 BROWSING WITH A HORIZONTALLY SPLIT WINDOW *netrw-o* *netrw-horiz*
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 11
diff changeset
1144
21
db5102f7e29f updated for version 7.0013
vimboss
parents: 15
diff changeset
1145 Normally one enters a file or directory using the <cr>. However, the "o" map
db5102f7e29f updated for version 7.0013
vimboss
parents: 15
diff changeset
1146 allows one to open a new window to hold the new directory listing or file. A
24
8ff7fd162d3c updated for version 7.0016
vimboss
parents: 22
diff changeset
1147 horizontal split is used. (for vertical splitting, see |netrw-v|)
8ff7fd162d3c updated for version 7.0016
vimboss
parents: 22
diff changeset
1148
559
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
1149 Normally, the o key splits the window horizontally with the new window and
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
1150 cursor at the top. To change to splitting the window horizontally with the
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
1151 new window and cursor at the bottom, have
24
8ff7fd162d3c updated for version 7.0016
vimboss
parents: 22
diff changeset
1152
8ff7fd162d3c updated for version 7.0016
vimboss
parents: 22
diff changeset
1153 let g:netrw_alto = 1
8ff7fd162d3c updated for version 7.0016
vimboss
parents: 22
diff changeset
1154
8ff7fd162d3c updated for version 7.0016
vimboss
parents: 22
diff changeset
1155 in your <.vimrc>.
8ff7fd162d3c updated for version 7.0016
vimboss
parents: 22
diff changeset
1156
459
d9d38102399f updated for version 7.0122
vimboss
parents: 236
diff changeset
1157
d9d38102399f updated for version 7.0122
vimboss
parents: 236
diff changeset
1158 PREVIEW WINDOW *netrw-p* *netrw-preview*
24
8ff7fd162d3c updated for version 7.0016
vimboss
parents: 22
diff changeset
1159
559
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
1160 One may use a preview window (currently only for local browsing) by using the
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
1161 "p" key when the cursor is atop the desired filename to be previewed.
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 11
diff changeset
1162
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 11
diff changeset
1163
650
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
1164 PREVIOUS WINDOW *netrw-P* *netrw-prvwin*
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
1165
724
a35dce0cabc5 updated for version 7.0220
vimboss
parents: 719
diff changeset
1166 To edit a file or directory in the previously used window (see :he |CTRL-W_P|),
650
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
1167 press a "P". If there's only one window, then the one window will be
724
a35dce0cabc5 updated for version 7.0220
vimboss
parents: 719
diff changeset
1168 horizontally split (above/below splitting is controlled by |g:netrw_alto|,
650
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
1169 and its initial size is controlled by |g:netrw_winsize|).
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
1170
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
1171 If there's more than one window, the previous window will be re-used on
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
1172 the selected file/directory. If the previous window's associated buffer
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
1173 has been modified, and there's only one window with that buffer, then
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
1174 the user will be asked if s/he wishes to save the buffer first (yes,
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
1175 no, or cancel).
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
1176
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
1177
459
d9d38102399f updated for version 7.0122
vimboss
parents: 236
diff changeset
1178 SELECTING SORTING STYLE *netrw-s* *netrw-sort*
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 11
diff changeset
1179
559
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
1180 One may select the sorting style by name, time, or (file) size. The "s" map
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
1181 allows one to circulate amongst the three choices; the directory listing will
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
1182 automatically be refreshed to reflect the selected style.
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 11
diff changeset
1183
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 11
diff changeset
1184
459
d9d38102399f updated for version 7.0122
vimboss
parents: 236
diff changeset
1185 EDITING THE SORTING SEQUENCE *netrw-S* *netrw-sortsequence*
22
cc049b00ee70 updated for version 7.0014
vimboss
parents: 21
diff changeset
1186
559
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
1187 When "Sorted by" is name, one may specify priority via the sorting sequence
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
1188 (g:netrw_sort_sequence). The sorting sequence typically prioritizes the
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
1189 name-listing by suffix, although any pattern will do. Patterns are delimited
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
1190 by commas. The default sorting sequence is:
22
cc049b00ee70 updated for version 7.0014
vimboss
parents: 21
diff changeset
1191 >
477
f8b75b8f1988 updated for version 7.0128
vimboss
parents: 466
diff changeset
1192 [\/]$,*,\.bak$,\.o$,\.h$,\.info$,\.swp$,\.obj$
22
cc049b00ee70 updated for version 7.0014
vimboss
parents: 21
diff changeset
1193 <
559
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
1194 The lone * is where all filenames not covered by one of the other patterns
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
1195 will end up. One may change the sorting sequence by modifying the
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
1196 g:netrw_sort_sequence variable (either manually or in your <.vimrc>) or by
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
1197 using the "S" map.
22
cc049b00ee70 updated for version 7.0014
vimboss
parents: 21
diff changeset
1198
cc049b00ee70 updated for version 7.0014
vimboss
parents: 21
diff changeset
1199
459
d9d38102399f updated for version 7.0122
vimboss
parents: 236
diff changeset
1200 REVERSING SORTING ORDER *netrw-r* *netrw-reverse*
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 11
diff changeset
1201
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 11
diff changeset
1202 One may toggle between normal and reverse sorting order by pressing the
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 11
diff changeset
1203 "r" key.
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 11
diff changeset
1204
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 11
diff changeset
1205
459
d9d38102399f updated for version 7.0122
vimboss
parents: 236
diff changeset
1206 CHANGING TO A PREDECESSOR DIRECTORY *netrw-u* *netrw-updir*
36
125e80798a85 updated for version 7.0021
vimboss
parents: 26
diff changeset
1207
125e80798a85 updated for version 7.0021
vimboss
parents: 26
diff changeset
1208 Every time you change to a new directory (new for the current session),
125e80798a85 updated for version 7.0021
vimboss
parents: 26
diff changeset
1209 netrw will save the directory in a recently-visited directory history
125e80798a85 updated for version 7.0021
vimboss
parents: 26
diff changeset
1210 list (unless g:netrw_dirhistmax is zero; by default, its ten). With the
125e80798a85 updated for version 7.0021
vimboss
parents: 26
diff changeset
1211 "u" map, one can change to an earlier directory (predecessor). To do
125e80798a85 updated for version 7.0021
vimboss
parents: 26
diff changeset
1212 the opposite, see |netrw-U|.
125e80798a85 updated for version 7.0021
vimboss
parents: 26
diff changeset
1213
125e80798a85 updated for version 7.0021
vimboss
parents: 26
diff changeset
1214
459
d9d38102399f updated for version 7.0122
vimboss
parents: 236
diff changeset
1215 CHANGING TO A SUCCESSOR DIRECTORY *netrw-U* *netrw-downdir*
36
125e80798a85 updated for version 7.0021
vimboss
parents: 26
diff changeset
1216
125e80798a85 updated for version 7.0021
vimboss
parents: 26
diff changeset
1217 With the "U" map, one can change to a later directory (successor).
125e80798a85 updated for version 7.0021
vimboss
parents: 26
diff changeset
1218 This map is the opposite of the "u" map. (see |netrw-u|) Use the
125e80798a85 updated for version 7.0021
vimboss
parents: 26
diff changeset
1219 q map to list both the bookmarks and history. (see |netrw-q|)
125e80798a85 updated for version 7.0021
vimboss
parents: 26
diff changeset
1220
125e80798a85 updated for version 7.0021
vimboss
parents: 26
diff changeset
1221
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 11
diff changeset
1222 BROWSING WITH A VERTICALLY SPLIT WINDOW *netrw-v*
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 11
diff changeset
1223
559
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
1224 Normally one enters a file or directory using the <cr>. However, the "v" map
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
1225 allows one to open a new window to hold the new directory listing or file. A
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
1226 vertical split is used. (for horizontal splitting, see |netrw-o|)
24
8ff7fd162d3c updated for version 7.0016
vimboss
parents: 22
diff changeset
1227
559
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
1228 Normally, the v key splits the window vertically with the new window and
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
1229 cursor at the left. To change to splitting the window vertically with the new
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
1230 window and cursor at the right, have
24
8ff7fd162d3c updated for version 7.0016
vimboss
parents: 22
diff changeset
1231
8ff7fd162d3c updated for version 7.0016
vimboss
parents: 22
diff changeset
1232 let g:netrw_altv = 1
8ff7fd162d3c updated for version 7.0016
vimboss
parents: 22
diff changeset
1233
8ff7fd162d3c updated for version 7.0016
vimboss
parents: 22
diff changeset
1234 in your <.vimrc>.
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 11
diff changeset
1235
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 11
diff changeset
1236
650
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
1237 CUSTOMIZING BROWSING WITH A USER FUNCTION *netrw-x* *netrw-handler* *gx*
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
1238
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
1239 Certain files, such as html, gif, jpeg, (word/office) doc, etc, files, are
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
1240 best seen with a special handler (ie. a tool provided with your computer).
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
1241 Netrw allows one to invoke such special handlers by: >
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 11
diff changeset
1242
650
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
1243 * when Exploring, hit the "x" key
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
1244 * when editing, hit gx with the cursor atop the special filename
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
1245 <
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
1246 Netrw determines which special handler by the following method:
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
1247
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
1248 * if |g:netrw_browsex_viewer| exists, then it will be used to attempt to
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
1249 view files. Examples of useful settings (place into your <.vimrc>): >
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
1250
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
1251 :let g:netrw_browsex_viewer= "kfmclient exec"
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
1252 < or >
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
1253 :let g:netrw_browsex_viewer= "gnome-open"
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
1254 <
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
1255 If g:netrw_browsex_viewer == '-', then netrwFileHandler() will be
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
1256 invoked first (see |netrw_filehandler|).
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 11
diff changeset
1257
856
8cd729851562 updated for version 7.0g
vimboss
parents: 849
diff changeset
1258 * for Windows 32 or 64, the url and FileProtocolHandler dlls are used.
650
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
1259 * for Gnome (with gnome-open): gnome-open is used.
482
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
1260 * for KDE (with kfmclient): kfmclient is used.
559
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
1261 * otherwise the netrwFileHandler plugin is used.
482
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
1262
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
1263 The file's suffix is used by these various approaches to determine an
559
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
1264 appropriate application to use to "handle" these files. Such things as
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
1265 OpenOffice (*.sfx), visualization (*.jpg, *.gif, etc), and PostScript (*.ps,
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
1266 *.eps) can be handled.
482
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
1267
650
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
1268 *netrw_filehandler*
559
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
1269 The netrwFileHandler applies a user-defined function to a file, based on its
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 11
diff changeset
1270 extension. Of course, the handler function must exist for it to be called!
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 11
diff changeset
1271 >
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 11
diff changeset
1272 Ex. mypgm.html x ->
856
8cd729851562 updated for version 7.0g
vimboss
parents: 849
diff changeset
1273 netrwFileHandler_html("scp://user@host/some/path/mypgm.html")
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 11
diff changeset
1274 <
559
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
1275 See the <plugin/netrwFileHandlers.vim> for an example of how to handle an html
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 11
diff changeset
1276 file with mozilla.
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 11
diff changeset
1277
650
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
1278 One may write custom netrwFileHandlers; please look at the >
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
1279
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
1280 plugin/netrwFileHandlers.vim
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
1281
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
1282 script for examples. If its likely to be generally useful, please feel free
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
1283 to forward a copy to me for future inclusion in the distribution.
482
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
1284
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 11
diff changeset
1285
26
404aac550f35 updated for version 7.0017
vimboss
parents: 24
diff changeset
1286 MAKING THE BROWSING DIRECTORY THE CURRENT DIRECTORY *netrw-c* *netrw-curdir*
22
cc049b00ee70 updated for version 7.0014
vimboss
parents: 21
diff changeset
1287
839
1f3b1021f002 updated for version 7.0e05
vimboss
parents: 834
diff changeset
1288 By default, |g:netrw_keepdir| is 1. This setting means that the current
26
404aac550f35 updated for version 7.0017
vimboss
parents: 24
diff changeset
1289 directory will not track the browsing directory. However, setting
839
1f3b1021f002 updated for version 7.0e05
vimboss
parents: 834
diff changeset
1290 g:netrw_keepdir to 0 (say, in your <.vimrc>) will tell netrw to make the
1f3b1021f002 updated for version 7.0e05
vimboss
parents: 834
diff changeset
1291 currently browsed directory also be the current directory.
26
404aac550f35 updated for version 7.0017
vimboss
parents: 24
diff changeset
1292
839
1f3b1021f002 updated for version 7.0e05
vimboss
parents: 834
diff changeset
1293 However, with the default setting for g:netrw_keepdir of 1 where netrw
1f3b1021f002 updated for version 7.0e05
vimboss
parents: 834
diff changeset
1294 maintains its own separate notion of the current directory, in order to make
1f3b1021f002 updated for version 7.0e05
vimboss
parents: 834
diff changeset
1295 the two directories the same, use the "c" map (just type c). That map will
1f3b1021f002 updated for version 7.0e05
vimboss
parents: 834
diff changeset
1296 set Vim's notion of the current directory to the netrw's current browsing
1f3b1021f002 updated for version 7.0e05
vimboss
parents: 834
diff changeset
1297 directory.
22
cc049b00ee70 updated for version 7.0014
vimboss
parents: 21
diff changeset
1298
cc049b00ee70 updated for version 7.0014
vimboss
parents: 21
diff changeset
1299
26
404aac550f35 updated for version 7.0017
vimboss
parents: 24
diff changeset
1300 BOOKMARKING A DIRECTORY *netrw-b* *netrw-bookmark* *netrw-bookmarks*
519
d50452846776 updated for version 7.0145
vimboss
parents: 501
diff changeset
1301 *netrw-Nb*
464
3b705e71c7b0 updated for version 7.0124
vimboss
parents: 461
diff changeset
1302 One may easily "bookmark" a directory by using >
22
cc049b00ee70 updated for version 7.0014
vimboss
parents: 21
diff changeset
1303
cc049b00ee70 updated for version 7.0014
vimboss
parents: 21
diff changeset
1304 {cnt}b
464
3b705e71c7b0 updated for version 7.0124
vimboss
parents: 461
diff changeset
1305 <
26
404aac550f35 updated for version 7.0017
vimboss
parents: 24
diff changeset
1306 Any count may be used. One may use viminfo's "!" option to retain bookmarks
36
125e80798a85 updated for version 7.0021
vimboss
parents: 26
diff changeset
1307 between vim sessions. See |netrw-B| for how to return to a bookmark and
125e80798a85 updated for version 7.0021
vimboss
parents: 26
diff changeset
1308 |netrw-q| for how to list them.
22
cc049b00ee70 updated for version 7.0014
vimboss
parents: 21
diff changeset
1309
519
d50452846776 updated for version 7.0145
vimboss
parents: 501
diff changeset
1310 When wide listing is in use (see |netrw-i|), then the b map is not available;
d50452846776 updated for version 7.0145
vimboss
parents: 501
diff changeset
1311 instead, use {cnt}Nb.
22
cc049b00ee70 updated for version 7.0014
vimboss
parents: 21
diff changeset
1312
519
d50452846776 updated for version 7.0145
vimboss
parents: 501
diff changeset
1313
d50452846776 updated for version 7.0145
vimboss
parents: 501
diff changeset
1314 CHANGING TO A BOOKMARKED DIRECTORY *netrw-NB* *netrw-B*
22
cc049b00ee70 updated for version 7.0014
vimboss
parents: 21
diff changeset
1315
cc049b00ee70 updated for version 7.0014
vimboss
parents: 21
diff changeset
1316 To change directory back to a bookmarked directory, use
cc049b00ee70 updated for version 7.0014
vimboss
parents: 21
diff changeset
1317
cc049b00ee70 updated for version 7.0014
vimboss
parents: 21
diff changeset
1318 {cnt}B
cc049b00ee70 updated for version 7.0014
vimboss
parents: 21
diff changeset
1319
559
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
1320 Any count may be used to reference any of the bookmarks. See |netrw-b| on
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
1321 how to bookmark a directory and |netrw-q| on how to list bookmarks.
519
d50452846776 updated for version 7.0145
vimboss
parents: 501
diff changeset
1322
d50452846776 updated for version 7.0145
vimboss
parents: 501
diff changeset
1323 When wide listing is in use (see |netrw-i|), then the B map is not available;
d50452846776 updated for version 7.0145
vimboss
parents: 501
diff changeset
1324 instead, use {cnt}NB.
22
cc049b00ee70 updated for version 7.0014
vimboss
parents: 21
diff changeset
1325
cc049b00ee70 updated for version 7.0014
vimboss
parents: 21
diff changeset
1326
459
d9d38102399f updated for version 7.0122
vimboss
parents: 236
diff changeset
1327 LISTING BOOKMARKS AND HISTORY *netrw-q* *netrw-listbookmark*
22
cc049b00ee70 updated for version 7.0014
vimboss
parents: 21
diff changeset
1328
36
125e80798a85 updated for version 7.0021
vimboss
parents: 26
diff changeset
1329 Pressing "q" will list the bookmarked directories and directory traversal
125e80798a85 updated for version 7.0021
vimboss
parents: 26
diff changeset
1330 history (query). (see |netrw-b|, |netrw-B|, |netrw-u|, and |netrw-U|)
22
cc049b00ee70 updated for version 7.0014
vimboss
parents: 21
diff changeset
1331
cc049b00ee70 updated for version 7.0014
vimboss
parents: 21
diff changeset
1332
519
d50452846776 updated for version 7.0145
vimboss
parents: 501
diff changeset
1333 IMPROVING DIRECTORY BROWSING *netrw-listhack*
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 11
diff changeset
1334
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 11
diff changeset
1335 Especially with the remote directory browser, constantly entering the password
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 11
diff changeset
1336 is tedious.
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 11
diff changeset
1337
11
4424b47a0797 updated for version 7.0003
vimboss
parents: 9
diff changeset
1338 For Linux/Unix systems, I suggest looking into
4424b47a0797 updated for version 7.0003
vimboss
parents: 9
diff changeset
1339
4424b47a0797 updated for version 7.0003
vimboss
parents: 9
diff changeset
1340 http://hacks.oreilly.com/pub/h/66
4424b47a0797 updated for version 7.0003
vimboss
parents: 9
diff changeset
1341
4424b47a0797 updated for version 7.0003
vimboss
parents: 9
diff changeset
1342 It gives a tip for setting up password-less use of ssh and scp, and discusses
4424b47a0797 updated for version 7.0003
vimboss
parents: 9
diff changeset
1343 the associated security issues.
9
4102fb4ea781 updated for version 7.0002
vimboss
parents: 7
diff changeset
1344
794
f19994020dad updated for version 7.0231
vimboss
parents: 766
diff changeset
1345 For Windows, the vim mailing list has mentioned that Pageant helps with
f19994020dad updated for version 7.0231
vimboss
parents: 766
diff changeset
1346 avoiding the constant need to enter the password.
f19994020dad updated for version 7.0231
vimboss
parents: 766
diff changeset
1347
9
4102fb4ea781 updated for version 7.0002
vimboss
parents: 7
diff changeset
1348
482
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
1349 NETRW SETTINGS *netrw-settings*
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
1350
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
1351 With the NetrwSettings.vim plugin, >
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
1352 :NetrwSettings
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
1353 will bring up a window with the many variables that netrw uses for its
559
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
1354 settings. You may change any of their values; when you save the file, the
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
1355 settings therein will be used. One may also press "?" on any of the lines for
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
1356 help on what each of the variables do.
482
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
1357
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
1358
9
4102fb4ea781 updated for version 7.0002
vimboss
parents: 7
diff changeset
1359 ==============================================================================
650
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
1360 9. Problems and Fixes *netrw-problems*
24
8ff7fd162d3c updated for version 7.0016
vimboss
parents: 22
diff changeset
1361
8ff7fd162d3c updated for version 7.0016
vimboss
parents: 22
diff changeset
1362 (This section is likely to grow as I get feedback)
8ff7fd162d3c updated for version 7.0016
vimboss
parents: 22
diff changeset
1363 (also see |netrw-debug|)
477
f8b75b8f1988 updated for version 7.0128
vimboss
parents: 466
diff changeset
1364 *netrw-p1*
24
8ff7fd162d3c updated for version 7.0016
vimboss
parents: 22
diff changeset
1365 P1. I use windows 95, and my ftp dumps four blank lines at the
8ff7fd162d3c updated for version 7.0016
vimboss
parents: 22
diff changeset
1366 end of every read.
8ff7fd162d3c updated for version 7.0016
vimboss
parents: 22
diff changeset
1367
8ff7fd162d3c updated for version 7.0016
vimboss
parents: 22
diff changeset
1368 See |netrw-fixup|, and put the following into your
8ff7fd162d3c updated for version 7.0016
vimboss
parents: 22
diff changeset
1369 <.vimrc> file:
8ff7fd162d3c updated for version 7.0016
vimboss
parents: 22
diff changeset
1370
8ff7fd162d3c updated for version 7.0016
vimboss
parents: 22
diff changeset
1371 let g:netrw_win95ftp= 1
466
7a01bd1ac566 updated for version 7.0125
vimboss
parents: 464
diff changeset
1372
477
f8b75b8f1988 updated for version 7.0128
vimboss
parents: 466
diff changeset
1373 *netrw-p2*
24
8ff7fd162d3c updated for version 7.0016
vimboss
parents: 22
diff changeset
1374 P2. I use windows, and my network browsing with ftp doesn't sort by
8ff7fd162d3c updated for version 7.0016
vimboss
parents: 22
diff changeset
1375 time or size
8ff7fd162d3c updated for version 7.0016
vimboss
parents: 22
diff changeset
1376
8ff7fd162d3c updated for version 7.0016
vimboss
parents: 22
diff changeset
1377 Windows' ftp has a minimal support for ls (ie. it doesn't
8ff7fd162d3c updated for version 7.0016
vimboss
parents: 22
diff changeset
1378 accept sorting options). It doesn't support the -F which
8ff7fd162d3c updated for version 7.0016
vimboss
parents: 22
diff changeset
1379 gives an explanatory character (ABC/ for "ABC is a directory").
8ff7fd162d3c updated for version 7.0016
vimboss
parents: 22
diff changeset
1380 Netrw uses dir to get its short and long listings. If you
8ff7fd162d3c updated for version 7.0016
vimboss
parents: 22
diff changeset
1381 think your ftp does support a full-up ls, put the following
8ff7fd162d3c updated for version 7.0016
vimboss
parents: 22
diff changeset
1382 into your <.vimrc>:
8ff7fd162d3c updated for version 7.0016
vimboss
parents: 22
diff changeset
1383
8ff7fd162d3c updated for version 7.0016
vimboss
parents: 22
diff changeset
1384 let g:netrw_ftp_list_cmd= "ls -lF"
8ff7fd162d3c updated for version 7.0016
vimboss
parents: 22
diff changeset
1385
8ff7fd162d3c updated for version 7.0016
vimboss
parents: 22
diff changeset
1386 Alternatively, if you have cygwin on your Windows box, put
8ff7fd162d3c updated for version 7.0016
vimboss
parents: 22
diff changeset
1387 into your <.vimrc>:
8ff7fd162d3c updated for version 7.0016
vimboss
parents: 22
diff changeset
1388
8ff7fd162d3c updated for version 7.0016
vimboss
parents: 22
diff changeset
1389 let g:netrw_cygwin= 1
8ff7fd162d3c updated for version 7.0016
vimboss
parents: 22
diff changeset
1390
477
f8b75b8f1988 updated for version 7.0128
vimboss
parents: 466
diff changeset
1391 *netrw-p3*
24
8ff7fd162d3c updated for version 7.0016
vimboss
parents: 22
diff changeset
1392 P3. I tried rcp://user@host/ (or protocol other than ftp) and netrw
8ff7fd162d3c updated for version 7.0016
vimboss
parents: 22
diff changeset
1393 used ssh! That wasn't what I asked for...
8ff7fd162d3c updated for version 7.0016
vimboss
parents: 22
diff changeset
1394
8ff7fd162d3c updated for version 7.0016
vimboss
parents: 22
diff changeset
1395 Netrw has two methods for browsing remote directories: ssh
8ff7fd162d3c updated for version 7.0016
vimboss
parents: 22
diff changeset
1396 and ftp. Unless you specify ftp specifically, ssh is used.
8ff7fd162d3c updated for version 7.0016
vimboss
parents: 22
diff changeset
1397 When it comes time to do download a file (not just a directory
8ff7fd162d3c updated for version 7.0016
vimboss
parents: 22
diff changeset
1398 listing), netrw will use the given protocol to do so.
8ff7fd162d3c updated for version 7.0016
vimboss
parents: 22
diff changeset
1399
477
f8b75b8f1988 updated for version 7.0128
vimboss
parents: 466
diff changeset
1400 *netrw-p4*
24
8ff7fd162d3c updated for version 7.0016
vimboss
parents: 22
diff changeset
1401 P4. I would like long listings to be the default.
8ff7fd162d3c updated for version 7.0016
vimboss
parents: 22
diff changeset
1402
26
404aac550f35 updated for version 7.0017
vimboss
parents: 24
diff changeset
1403 let g:netrw_longlist=1
404aac550f35 updated for version 7.0017
vimboss
parents: 24
diff changeset
1404
404aac550f35 updated for version 7.0017
vimboss
parents: 24
diff changeset
1405 Check out |netrw-browse-var| for more customizations that
404aac550f35 updated for version 7.0017
vimboss
parents: 24
diff changeset
1406 you can set.
24
8ff7fd162d3c updated for version 7.0016
vimboss
parents: 22
diff changeset
1407
477
f8b75b8f1988 updated for version 7.0128
vimboss
parents: 466
diff changeset
1408 *netrw-p5*
24
8ff7fd162d3c updated for version 7.0016
vimboss
parents: 22
diff changeset
1409 P5. My times come up oddly in local browsing
8ff7fd162d3c updated for version 7.0016
vimboss
parents: 22
diff changeset
1410
8ff7fd162d3c updated for version 7.0016
vimboss
parents: 22
diff changeset
1411 Does your system's strftime() accept the "%c" to yield dates
8ff7fd162d3c updated for version 7.0016
vimboss
parents: 22
diff changeset
1412 such as "Sun Apr 27 11:49:23 1997"? If not, do a "man strftime"
8ff7fd162d3c updated for version 7.0016
vimboss
parents: 22
diff changeset
1413 and find out what option should be used. Then put it into
8ff7fd162d3c updated for version 7.0016
vimboss
parents: 22
diff changeset
1414 your <.vimrc>:
8ff7fd162d3c updated for version 7.0016
vimboss
parents: 22
diff changeset
1415 let g:netrw_timefmt= "%X" (where X is the option)
8ff7fd162d3c updated for version 7.0016
vimboss
parents: 22
diff changeset
1416
477
f8b75b8f1988 updated for version 7.0128
vimboss
parents: 466
diff changeset
1417 *netrw-p6*
26
404aac550f35 updated for version 7.0017
vimboss
parents: 24
diff changeset
1418 P6. I want my current directory to track my browsing.
404aac550f35 updated for version 7.0017
vimboss
parents: 24
diff changeset
1419 How do I do that?
24
8ff7fd162d3c updated for version 7.0016
vimboss
parents: 22
diff changeset
1420
794
f19994020dad updated for version 7.0231
vimboss
parents: 766
diff changeset
1421 let g:netrw_keepdir= 0
466
7a01bd1ac566 updated for version 7.0125
vimboss
parents: 464
diff changeset
1422
24
8ff7fd162d3c updated for version 7.0016
vimboss
parents: 22
diff changeset
1423
8ff7fd162d3c updated for version 7.0016
vimboss
parents: 22
diff changeset
1424 ==============================================================================
650
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
1425 10. Debugging *netrw-debug*
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1426
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1427 The <netrw.vim> script is typically available as:
477
f8b75b8f1988 updated for version 7.0128
vimboss
parents: 466
diff changeset
1428 >
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1429 /usr/local/share/vim/vim6x/plugin/netrw.vim
477
f8b75b8f1988 updated for version 7.0128
vimboss
parents: 466
diff changeset
1430 < -or- >
f8b75b8f1988 updated for version 7.0128
vimboss
parents: 466
diff changeset
1431 /usr/local/share/vim/vim7x/plugin/netrw.vim
f8b75b8f1988 updated for version 7.0128
vimboss
parents: 466
diff changeset
1432 <
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1433 which is loaded automatically at startup (assuming :set nocp).
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1434
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1435 1. Get the <Decho.vim> script, available as:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1436
534
c6296b0ad9ea updated for version 7.0151
vimboss
parents: 532
diff changeset
1437 http://mysite.verizon.net/astronaut/vim/index.html#vimlinks_scripts
c6296b0ad9ea updated for version 7.0151
vimboss
parents: 532
diff changeset
1438 as "Decho, a vimL debugging aid"
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1439 or
534
c6296b0ad9ea updated for version 7.0151
vimboss
parents: 532
diff changeset
1440 http://vim.sourceforge.net/scripts/script.php?script_id=120
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1441
22
cc049b00ee70 updated for version 7.0014
vimboss
parents: 21
diff changeset
1442 and put it into your local plugin directory.
466
7a01bd1ac566 updated for version 7.0125
vimboss
parents: 464
diff changeset
1443
22
cc049b00ee70 updated for version 7.0014
vimboss
parents: 21
diff changeset
1444 2. <Decho.vim> itself needs the <cecutil.vim> script, so you'll need
cc049b00ee70 updated for version 7.0014
vimboss
parents: 21
diff changeset
1445 to put it into your .vim/plugin, too. You may obtain it from:
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1446
22
cc049b00ee70 updated for version 7.0014
vimboss
parents: 21
diff changeset
1447 http://mysite.verizon.net/astronaut/vim/index.html#VimFuncs
cc049b00ee70 updated for version 7.0014
vimboss
parents: 21
diff changeset
1448 as "DrC's Utilities"
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1449
22
cc049b00ee70 updated for version 7.0014
vimboss
parents: 21
diff changeset
1450 3. Edit the <netrw.vim> file by typing:
cc049b00ee70 updated for version 7.0014
vimboss
parents: 21
diff changeset
1451
cc049b00ee70 updated for version 7.0014
vimboss
parents: 21
diff changeset
1452 vim netrw.vim
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1453 :DechoOn
22
cc049b00ee70 updated for version 7.0014
vimboss
parents: 21
diff changeset
1454 :wq
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1455
22
cc049b00ee70 updated for version 7.0014
vimboss
parents: 21
diff changeset
1456 To restore to normal non-debugging behavior, edit <netrw.vim>
cc049b00ee70 updated for version 7.0014
vimboss
parents: 21
diff changeset
1457 by typing
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1458
22
cc049b00ee70 updated for version 7.0014
vimboss
parents: 21
diff changeset
1459 vim netrw.vim
cc049b00ee70 updated for version 7.0014
vimboss
parents: 21
diff changeset
1460 :DechoOff
cc049b00ee70 updated for version 7.0014
vimboss
parents: 21
diff changeset
1461 :wq
cc049b00ee70 updated for version 7.0014
vimboss
parents: 21
diff changeset
1462
cc049b00ee70 updated for version 7.0014
vimboss
parents: 21
diff changeset
1463 This command, provided by <Decho.vim>, will comment out all
cc049b00ee70 updated for version 7.0014
vimboss
parents: 21
diff changeset
1464 Decho-debugging statements (Dfunc(), Dret(), Decho(), Dredir()).
cc049b00ee70 updated for version 7.0014
vimboss
parents: 21
diff changeset
1465
cc049b00ee70 updated for version 7.0014
vimboss
parents: 21
diff changeset
1466 4. Then bring up vim and attempt a transfer. A set of messages
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1467 should appear concerning the steps that <netrw.vim> took in
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1468 attempting to read/write your file over the network. Please
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1469 send that information to <netrw.vim>'s maintainer,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1470
36
125e80798a85 updated for version 7.0021
vimboss
parents: 26
diff changeset
1471 NdrOchip at ScampbellPfamily.AbizM - NOSPAM
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1472
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1473 ==============================================================================
650
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
1474 11. History *netrw-history* {{{1
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1475
857
b933657f7c9d updated for version 7.0g01
vimboss
parents: 856
diff changeset
1476 v98: May 02, 2006 * the "p" key didn't work properly when the browsing
b933657f7c9d updated for version 7.0g01
vimboss
parents: 856
diff changeset
1477 directory name had spaces in it.
b933657f7c9d updated for version 7.0g01
vimboss
parents: 856
diff changeset
1478 v97: May 01, 2006 * exists("&acd") now used to determine if
b933657f7c9d updated for version 7.0g01
vimboss
parents: 856
diff changeset
1479 the 'acd' option exists
b933657f7c9d updated for version 7.0g01
vimboss
parents: 856
diff changeset
1480 * "obtain" now works again under Windows
b933657f7c9d updated for version 7.0g01
vimboss
parents: 856
diff changeset
1481 v96: * bugfix - the |'acd'| option is not always defined but is
b933657f7c9d updated for version 7.0g01
vimboss
parents: 856
diff changeset
1482 now bypassed only when it is
849
eac1cd7f1eff updated for version 7.0f04
vimboss
parents: 844
diff changeset
1483 v95: * bugfix - Hiding mode worked correctly (don't show any file
eac1cd7f1eff updated for version 7.0f04
vimboss
parents: 844
diff changeset
1484 matching any of the g:netrw_hide patterns), but
eac1cd7f1eff updated for version 7.0f04
vimboss
parents: 844
diff changeset
1485 but showing mode was showing only those files that didn't
eac1cd7f1eff updated for version 7.0f04
vimboss
parents: 844
diff changeset
1486 match any of the g:netrw_hide patterns. Instead, it now
eac1cd7f1eff updated for version 7.0f04
vimboss
parents: 844
diff changeset
1487 shows all files that match any of the g:netrw_hide patterns
eac1cd7f1eff updated for version 7.0f04
vimboss
parents: 844
diff changeset
1488 (the difference between a logical and and logical or).
844
d3bbb5dd3913 updated for version 7.0f02
vimboss
parents: 842
diff changeset
1489 v94: * bugfix - a Decho() had a missing quote; only affects things
d3bbb5dd3913 updated for version 7.0f02
vimboss
parents: 842
diff changeset
1490 when debugging was enabled.
d3bbb5dd3913 updated for version 7.0f02
vimboss
parents: 842
diff changeset
1491 v93: * bugfix - removed FocusGained event from causing a slow-browser
d3bbb5dd3913 updated for version 7.0f02
vimboss
parents: 842
diff changeset
1492 refresh for Windows
d3bbb5dd3913 updated for version 7.0f02
vimboss
parents: 842
diff changeset
1493 v92: * :Explore **//pattern implemented (**/filepattern already taken)
839
1f3b1021f002 updated for version 7.0e05
vimboss
parents: 834
diff changeset
1494 v91: * :Explore */pattern implemented
1f3b1021f002 updated for version 7.0e05
vimboss
parents: 834
diff changeset
1495 * |'acd'| option bypassed
1f3b1021f002 updated for version 7.0e05
vimboss
parents: 834
diff changeset
1496 v90: * mark ', as suggested by Yegappan Lakshmanan, used to help
1f3b1021f002 updated for version 7.0e05
vimboss
parents: 834
diff changeset
1497 guarantee entry into the jump list when appropriate.
1f3b1021f002 updated for version 7.0e05
vimboss
parents: 834
diff changeset
1498 * <s-down> and <s-up> are no longer defined until a
1f3b1021f002 updated for version 7.0e05
vimboss
parents: 834
diff changeset
1499 :Explore **/pattern is used (if the user already has a map
1f3b1021f002 updated for version 7.0e05
vimboss
parents: 834
diff changeset
1500 for them). They will be defined for new browser windows
1f3b1021f002 updated for version 7.0e05
vimboss
parents: 834
diff changeset
1501 from that point forward.
1f3b1021f002 updated for version 7.0e05
vimboss
parents: 834
diff changeset
1502 v89: * A <s-down>, <s-up>, :Nexplore, or a :Pexplore without having
1f3b1021f002 updated for version 7.0e05
vimboss
parents: 834
diff changeset
1503 first done an :Explore **/pattern (see |netrw-starstar|) caused
1f3b1021f002 updated for version 7.0e05
vimboss
parents: 834
diff changeset
1504 a lot of unhelpful error messages to appear
829
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
1505 v88: * moved DrChip.Netrw menu to Netrw. Now has priority 80 by
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
1506 default. g:NetrwTopLvlMenu == "Netrw" and can be changed
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
1507 by the user to suit. The priority is g:NetrwMenuPriority.
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
1508 * Changed filetype for browser displays from netrwlist to netrw.
828
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 825
diff changeset
1509 v87: * bug fix -- menus were partially disappearing
820
57c7403f6599 updated for version 7.0c11
vimboss
parents: 810
diff changeset
1510 v85: * bug fix -- missing an endif
57c7403f6599 updated for version 7.0c11
vimboss
parents: 810
diff changeset
1511 * bug fix -- handles spaces in names and directories when using
57c7403f6599 updated for version 7.0c11
vimboss
parents: 810
diff changeset
1512 ftp-based browsing
799
6beb2c667935 updated for version 7.0b
vimboss
parents: 794
diff changeset
1513 v83: * disabled stop-acd handling; the change in directory handling
6beb2c667935 updated for version 7.0b
vimboss
parents: 794
diff changeset
1514 may allow acd to be used again. Awaiting feedback.
6beb2c667935 updated for version 7.0b
vimboss
parents: 794
diff changeset
1515 * D was refusing to delete remote files/directories in wide
6beb2c667935 updated for version 7.0b
vimboss
parents: 794
diff changeset
1516 listing mode.
766
f0d0d3d3a1e2 updated for version 7.0225
vimboss
parents: 758
diff changeset
1517 v81: * FocusGained also used to refresh/wipe local browser directory
f0d0d3d3a1e2 updated for version 7.0225
vimboss
parents: 758
diff changeset
1518 buffers
f0d0d3d3a1e2 updated for version 7.0225
vimboss
parents: 758
diff changeset
1519 * (bugfix) netrw was leaving [Scratch] buffers behind when the
f0d0d3d3a1e2 updated for version 7.0225
vimboss
parents: 758
diff changeset
1520 the user had the "hidden" option set. The 'hidden' option is
f0d0d3d3a1e2 updated for version 7.0225
vimboss
parents: 758
diff changeset
1521 now bypassed.
f0d0d3d3a1e2 updated for version 7.0225
vimboss
parents: 758
diff changeset
1522 v80: * ShellCmdPost event used in conjunction with g:netrw_fastbrowse
f0d0d3d3a1e2 updated for version 7.0225
vimboss
parents: 758
diff changeset
1523 to refresh/wipe local browser directory buffers.
719
82ef0c58b012 updated for version 7.0219
vimboss
parents: 650
diff changeset
1524 v79: * directories are now displayed with nowrap
82ef0c58b012 updated for version 7.0219
vimboss
parents: 650
diff changeset
1525 * (bugfix) if the column width was smaller than the largest
82ef0c58b012 updated for version 7.0219
vimboss
parents: 650
diff changeset
1526 file's name, then netrw would hang when using wide-listing
82ef0c58b012 updated for version 7.0219
vimboss
parents: 650
diff changeset
1527 mode - fixed
82ef0c58b012 updated for version 7.0219
vimboss
parents: 650
diff changeset
1528 * g:netrw_fastbrowse introduced
650
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
1529 v78: * progress has been made on allowing spaces inside directory
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
1530 names for remote work (reading, writing, browsing). (scp)
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
1531 v77: * Mikolaj Machowski fixed a bug in a substitute command
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
1532 * g:netrw_browsex_viewer implemented
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
1533 * Mikolaj Machowski pointed out that gnome-open is often
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
1534 executable under KDE systems, although it is effectively
856
8cd729851562 updated for version 7.0g
vimboss
parents: 849
diff changeset
1535 not functional. NetBrowseX now looks for "kicker" as
650
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
1536 a running process to determine if KDE is actually the
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
1537 really running.
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
1538 * Explorer's O functionality was inadvertently left out.
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
1539 Netrw now does the same thing, but with the "P" key.
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
1540 * added g:netrw_browse_split option
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
1541 * fixed a bug where the directory contained a "." but
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
1542 the file didn't (was treating the dirname from "."
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
1543 onwards as a suffix)
568
db92c5cc4f66 updated for version 7.0161
vimboss
parents: 559
diff changeset
1544 v76: * "directory is missing" error message now restores echo
db92c5cc4f66 updated for version 7.0161
vimboss
parents: 559
diff changeset
1545 highlighting
559
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
1546 v75: * file://... now conforms to RFC2396 (thanks to S. Zacchiroli)
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
1547 * if the binary option is set, then NetWrite() will only write
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
1548 the whole file (line numbers don't make sense with this).
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
1549 Supports writing of tar and zip files.
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
1550 v74: * bugfix (vim, then :Explore) now works
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
1551 * ctrl-L keeps cursor at same screen location (both local and
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
1552 remote browsing)
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
1553 * netrw now can read remote zip and tar files
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
1554 * Obtain now uses WinXP ftp+.netrc successfully
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
1555 v73: * bugfix -- scp://host/path/file was getting named incorrectly
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
1556 * netrw detects use of earlier-than-7.0 version of vim and issues
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
1557 a pertinent error message.
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
1558 * netrwSettings.vim is now uses autoloading. Only
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
1559 <netrwPlugin.vim> is needed as a pure plugin
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
1560 (ie. always loaded).
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
1561 v72: * bugfix -- formerly, one could prevent the loading of netrw
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
1562 by "let g:loaded_netrw=1"; when autoloading became supported,
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
1563 this feature was lost. It is now restored.
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
1564 v71: * bugfix -- made some "set nomodifiable"s into setlocal variants
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
1565 (allows :e somenewfile to be modifiable as usual)
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
1566 * NetrwSettings calls a netrw function, thereby assuring that
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
1567 netrw has loaded. However, if netrw does not load for whatever
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
1568 reason, then NetrwSettings will now issue a warning message.
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
1569 * For what reason I don't recall, when wget and fetch are both
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
1570 not present, and an attempt to read a http://... url is made,
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
1571 netrw exited. It now only returns.
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
1572 * When ch=1, on the second and subsequent uses of browsing Netrw
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
1573 would issue a blank line to clear the echo'd messages. This
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
1574 caused an annoying "Hit-Enter" prompt; now a blank line message
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
1575 is echo'd only if &ch>1.
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
1576 v70: * when using |netrw-O|, the "Obtaining filename" message is now
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
1577 shown using |hl-User9|. If User9 has not been defined, netrw
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
1578 will define it.
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
1579 v69: * Bugfix: win95/98 machines were experiencing a
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
1580 "E121: Undefined variable: g:netrw_win95ftp" message
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
1581 v68: * double-click-leftmouse selects word under mouse
534
c6296b0ad9ea updated for version 7.0151
vimboss
parents: 532
diff changeset
1582 v67: * Passwords which contain blanks will now be surrounded by
c6296b0ad9ea updated for version 7.0151
vimboss
parents: 532
diff changeset
1583 double-quotes automatically (Yongwei)
519
d50452846776 updated for version 7.0145
vimboss
parents: 501
diff changeset
1584 v66: * Netrw now seems to work with a few more Windows situations
d50452846776 updated for version 7.0145
vimboss
parents: 501
diff changeset
1585 * O now obtains a file: remote browsing file -> local copy,
d50452846776 updated for version 7.0145
vimboss
parents: 501
diff changeset
1586 locally browsing file -> current directory (see :pwd)
d50452846776 updated for version 7.0145
vimboss
parents: 501
diff changeset
1587 * i now cycles between thin, long, and wide listing styles
d50452846776 updated for version 7.0145
vimboss
parents: 501
diff changeset
1588 * NB and Nb are maps that are always available; corresponding
d50452846776 updated for version 7.0145
vimboss
parents: 501
diff changeset
1589 B and b maps are only available when not using wide listing
d50452846776 updated for version 7.0145
vimboss
parents: 501
diff changeset
1590 in order to allow them to be used for motions
d50452846776 updated for version 7.0145
vimboss
parents: 501
diff changeset
1591 v65: * Browser functions now use NetOptionSave/Restore; in particular,
484
f012c4ed8c38 updated for version 7.0132
vimboss
parents: 482
diff changeset
1592 netrw now works around the report setting
856
8cd729851562 updated for version 7.0g
vimboss
parents: 849
diff changeset
1593 v64: * Bugfix - browsing a "/" directory (Unix) yielded buffers
484
f012c4ed8c38 updated for version 7.0132
vimboss
parents: 482
diff changeset
1594 named "[Scratch]" instead of "/"
f012c4ed8c38 updated for version 7.0132
vimboss
parents: 482
diff changeset
1595 * Bugfix - remote browsing with ftp was omitting the ./ and ../
482
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
1596 v63: * netrw now takes advantage of autoload (and requires 7.0)
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
1597 * Bugfix - using r (to reverse sort) working again
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
1598 v62: * Bugfix - spaces allowed again in directory names with
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
1599 g:netrw_keepdir=0. In fact, I've tested netrw (again)
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
1600 with most ANSI punctuation marks for directory names.
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
1601 * Bugfix - NetrwSettings gave errors when g:netrw_silent
6f8b578776ab updated for version 7.0131
vimboss
parents: 480
diff changeset
1602 had not be set.
480
bf5ba8a0cdee updated for version 7.0129
vimboss
parents: 477
diff changeset
1603 v61: * document upgrade -- netrw variable-based settings all should
bf5ba8a0cdee updated for version 7.0129
vimboss
parents: 477
diff changeset
1604 have tags. Supports NetrwSettings command.
bf5ba8a0cdee updated for version 7.0129
vimboss
parents: 477
diff changeset
1605 * several important variables are window-oriented. Netrw has
bf5ba8a0cdee updated for version 7.0129
vimboss
parents: 477
diff changeset
1606 to transfer these across a window split. See s:BufWinVars()
bf5ba8a0cdee updated for version 7.0129
vimboss
parents: 477
diff changeset
1607 and s:UseBufWinVars().
477
f8b75b8f1988 updated for version 7.0128
vimboss
parents: 466
diff changeset
1608 v60: * when using the i map to switch between long and short listings,
f8b75b8f1988 updated for version 7.0128
vimboss
parents: 466
diff changeset
1609 netrw will now keep cursor on same line
f8b75b8f1988 updated for version 7.0128
vimboss
parents: 466
diff changeset
1610 * "Match # of #" now uses status line
f8b75b8f1988 updated for version 7.0128
vimboss
parents: 466
diff changeset
1611 * :Explore **/*.c will now work from a non-netrw-browser window
f8b75b8f1988 updated for version 7.0128
vimboss
parents: 466
diff changeset
1612 * :Explore **/patterns can now be run in separate browser windows
f8b75b8f1988 updated for version 7.0128
vimboss
parents: 466
diff changeset
1613 * active banner (hit <cr> will cause various things to happen)
466
7a01bd1ac566 updated for version 7.0125
vimboss
parents: 464
diff changeset
1614 v59: * bugfix -- another keepalt work-around installed (for vim6.3)
7a01bd1ac566 updated for version 7.0125
vimboss
parents: 464
diff changeset
1615 * "Match # of #" for Explore **/pattern matches
464
3b705e71c7b0 updated for version 7.0124
vimboss
parents: 461
diff changeset
1616 v58: * Explore and relatives can now handle **/somefilepattern (v7)
3b705e71c7b0 updated for version 7.0124
vimboss
parents: 461
diff changeset
1617 * Nexplore and Pexplore introduced (v7). shift-down and shift-up
3b705e71c7b0 updated for version 7.0124
vimboss
parents: 461
diff changeset
1618 cursor keys will invoke Nexplore and Pexplore, respectively.
3b705e71c7b0 updated for version 7.0124
vimboss
parents: 461
diff changeset
1619 * bug fixed with o and v
3b705e71c7b0 updated for version 7.0124
vimboss
parents: 461
diff changeset
1620 * autochdir only worked around for vim when it has been
3b705e71c7b0 updated for version 7.0124
vimboss
parents: 461
diff changeset
1621 compiled with either |+netbeans_intg| or |+sun_workshop|
3b705e71c7b0 updated for version 7.0124
vimboss
parents: 461
diff changeset
1622 * Under Windows, all directories and files were being preceded
3b705e71c7b0 updated for version 7.0124
vimboss
parents: 461
diff changeset
1623 with a "/" when local browsing. Fixed.
3b705e71c7b0 updated for version 7.0124
vimboss
parents: 461
diff changeset
1624 * When: syntax highlighting is off, laststatus=2, and remote
3b705e71c7b0 updated for version 7.0124
vimboss
parents: 461
diff changeset
1625 browsing is used, sometimes the laststatus highlighting
3b705e71c7b0 updated for version 7.0124
vimboss
parents: 461
diff changeset
1626 bleeds into the entire display. Work around - do an extra
3b705e71c7b0 updated for version 7.0124
vimboss
parents: 461
diff changeset
1627 redraw in that case.
3b705e71c7b0 updated for version 7.0124
vimboss
parents: 461
diff changeset
1628 * Bugfix: when g:netrw_keepdir=0, due to re-use of buffers,
3b705e71c7b0 updated for version 7.0124
vimboss
parents: 461
diff changeset
1629 netrw didn't change the directory when it should've
3b705e71c7b0 updated for version 7.0124
vimboss
parents: 461
diff changeset
1630 * Bugfix: D and R commands work again
461
f98374445f66 updated for version 7.0123
vimboss
parents: 459
diff changeset
1631 v57: * Explore and relatives can now handle RO files
f98374445f66 updated for version 7.0123
vimboss
parents: 459
diff changeset
1632 * reverse sort restored with vim7's sort command
f98374445f66 updated for version 7.0123
vimboss
parents: 459
diff changeset
1633 * g:netrw_keepdir now being used to keep the current directory
f98374445f66 updated for version 7.0123
vimboss
parents: 459
diff changeset
1634 unchanged as intended (sense change)
f98374445f66 updated for version 7.0123
vimboss
parents: 459
diff changeset
1635 * vim 6.3 still supported
459
d9d38102399f updated for version 7.0122
vimboss
parents: 236
diff changeset
1636 v56: * LocalBrowse now saves autochdir setting, unsets it, and
d9d38102399f updated for version 7.0122
vimboss
parents: 236
diff changeset
1637 restores it before returning.
d9d38102399f updated for version 7.0122
vimboss
parents: 236
diff changeset
1638 * using vim's rename() instead of system + local_rename variable
461
f98374445f66 updated for version 7.0123
vimboss
parents: 459
diff changeset
1639 * avoids changing directory when g:netrw_keepdir is false
459
d9d38102399f updated for version 7.0122
vimboss
parents: 236
diff changeset
1640 v55: * -bar used with :Explore :Sexplore etc to allow multiple
d9d38102399f updated for version 7.0122
vimboss
parents: 236
diff changeset
1641 commands to be separated by |s
d9d38102399f updated for version 7.0122
vimboss
parents: 236
diff changeset
1642 * browser listings now use the "nowrap" option
d9d38102399f updated for version 7.0122
vimboss
parents: 236
diff changeset
1643 * browser: some unuseful error messages now suppressed
d9d38102399f updated for version 7.0122
vimboss
parents: 236
diff changeset
1644 v54: * For backwards compatibility, Explore and Sexplore have been
d9d38102399f updated for version 7.0122
vimboss
parents: 236
diff changeset
1645 implemented. In addition, Hexplore and Vexplore commands
d9d38102399f updated for version 7.0122
vimboss
parents: 236
diff changeset
1646 are available, too.
d9d38102399f updated for version 7.0122
vimboss
parents: 236
diff changeset
1647 * <amatch> used instead of <afile> in the transparency
d9d38102399f updated for version 7.0122
vimboss
parents: 236
diff changeset
1648 support (BufReadCmd, FileReadCmd, FileWriteCmd)
d9d38102399f updated for version 7.0122
vimboss
parents: 236
diff changeset
1649 * ***netrw*** prepended to various error messages netrw may emit
d9d38102399f updated for version 7.0122
vimboss
parents: 236
diff changeset
1650 * g:netrw_port used instead of b:netrw_port for scp
d9d38102399f updated for version 7.0122
vimboss
parents: 236
diff changeset
1651 * any leading [:#] is removed from port numbers
d9d38102399f updated for version 7.0122
vimboss
parents: 236
diff changeset
1652 v53: * backslashes as well as slashes placed in various patterns
d9d38102399f updated for version 7.0122
vimboss
parents: 236
diff changeset
1653 (ex. g:netrw_sort_sequence) to better support Windows
36
125e80798a85 updated for version 7.0021
vimboss
parents: 26
diff changeset
1654 v52: * nonumber'ing now set for browsing buffers
125e80798a85 updated for version 7.0021
vimboss
parents: 26
diff changeset
1655 * when the hiding list hid all files, error messages ensued. Fixed
125e80798a85 updated for version 7.0021
vimboss
parents: 26
diff changeset
1656 * when browsing, swf is set, but directory is not set, when netrw
125e80798a85 updated for version 7.0021
vimboss
parents: 26
diff changeset
1657 was attempting to restore options, vim wanted to save a swapfile
125e80798a85 updated for version 7.0021
vimboss
parents: 26
diff changeset
1658 to a local directory using an url-style path. Fixed
125e80798a85 updated for version 7.0021
vimboss
parents: 26
diff changeset
1659 v51: * cygwin detection now automated (using windows and &shell is bash)
125e80798a85 updated for version 7.0021
vimboss
parents: 26
diff changeset
1660 * customizable browser "file" rejection patterns
125e80798a85 updated for version 7.0021
vimboss
parents: 26
diff changeset
1661 * directory history
125e80798a85 updated for version 7.0021
vimboss
parents: 26
diff changeset
1662 * :[range]w url now supported (ie. netrw has a FileWriteCmd event)
125e80798a85 updated for version 7.0021
vimboss
parents: 26
diff changeset
1663 * error messages have a "Press <cr> to continue" to allow them
125e80798a85 updated for version 7.0021
vimboss
parents: 26
diff changeset
1664 to be seen
125e80798a85 updated for version 7.0021
vimboss
parents: 26
diff changeset
1665 * directory browser displays no longer bother the swapfile
125e80798a85 updated for version 7.0021
vimboss
parents: 26
diff changeset
1666 * u/U commands to go up and down the history stack
125e80798a85 updated for version 7.0021
vimboss
parents: 26
diff changeset
1667 * history stack may be saved with viminfo with its "!" option
125e80798a85 updated for version 7.0021
vimboss
parents: 26
diff changeset
1668 * bugfixes associated with unwanted [No Files] entries
26
404aac550f35 updated for version 7.0017
vimboss
parents: 24
diff changeset
1669 v50: * directories now displayed using buftype=nofile; should keep the
404aac550f35 updated for version 7.0017
vimboss
parents: 24
diff changeset
1670 directory names as-is
404aac550f35 updated for version 7.0017
vimboss
parents: 24
diff changeset
1671 * attempts to remove empty "[No File]" buffers leftover
404aac550f35 updated for version 7.0017
vimboss
parents: 24
diff changeset
1672 from :file ..name.. commands
404aac550f35 updated for version 7.0017
vimboss
parents: 24
diff changeset
1673 * bugfix: a "caps-lock" editing difficulty left in v49 was fixed
404aac550f35 updated for version 7.0017
vimboss
parents: 24
diff changeset
1674 * syntax highlighting for "Showing:" the hiding list included
404aac550f35 updated for version 7.0017
vimboss
parents: 24
diff changeset
1675 * bookmarks can now be retained if "!" is in the viminfo option
36
125e80798a85 updated for version 7.0021
vimboss
parents: 26
diff changeset
1676 v49: * will use ftp for http://.../ browsing v48:
125e80798a85 updated for version 7.0021
vimboss
parents: 26
diff changeset
1677 * One may use ftp to do remote host file browsing
24
8ff7fd162d3c updated for version 7.0016
vimboss
parents: 22
diff changeset
1678 * (windows and !cygwin) remote browsing with ftp can now use
8ff7fd162d3c updated for version 7.0016
vimboss
parents: 22
diff changeset
1679 the "dir" command internally to provide listings
8ff7fd162d3c updated for version 7.0016
vimboss
parents: 22
diff changeset
1680 * g:netrw_keepdir now allows one to keep the initial current
26
404aac550f35 updated for version 7.0017
vimboss
parents: 24
diff changeset
1681 directory as the current directory (normally the local file
404aac550f35 updated for version 7.0017
vimboss
parents: 24
diff changeset
1682 browser makes the currently viewed directory the current
404aac550f35 updated for version 7.0017
vimboss
parents: 24
diff changeset
1683 directory)
24
8ff7fd162d3c updated for version 7.0016
vimboss
parents: 22
diff changeset
1684 * g:netrw_alto and g:netrw_altv now support alternate placement
8ff7fd162d3c updated for version 7.0016
vimboss
parents: 22
diff changeset
1685 of windows started with o or v
8ff7fd162d3c updated for version 7.0016
vimboss
parents: 22
diff changeset
1686 * Nread ? and Nwrite ? now uses echomsg (instead of echo) so
8ff7fd162d3c updated for version 7.0016
vimboss
parents: 22
diff changeset
1687 :messages can repeat showing the help
8ff7fd162d3c updated for version 7.0016
vimboss
parents: 22
diff changeset
1688 * bugfix: avoids problems with partial matches of directory names
8ff7fd162d3c updated for version 7.0016
vimboss
parents: 22
diff changeset
1689 to prior buffers with longer names
26
404aac550f35 updated for version 7.0017
vimboss
parents: 24
diff changeset
1690 * one can suppress error messages with g:netrw_quiet ctrl-h used
404aac550f35 updated for version 7.0017
vimboss
parents: 24
diff changeset
1691 * instead of <Leader>h for editing hiding list one may edit the
404aac550f35 updated for version 7.0017
vimboss
parents: 24
diff changeset
1692 * sorting sequence with the S map now allows confirmation of
404aac550f35 updated for version 7.0017
vimboss
parents: 24
diff changeset
1693 * deletion with [y(es) n(o) a(ll) q(uit)] the "x" map now handles
404aac550f35 updated for version 7.0017
vimboss
parents: 24
diff changeset
1694 * special file viewing with:
404aac550f35 updated for version 7.0017
vimboss
parents: 24
diff changeset
1695 (windows) rundll32 url.dll (gnome) gnome-open (kde)
404aac550f35 updated for version 7.0017
vimboss
parents: 24
diff changeset
1696 kfmclient If none of these are on the executable path, then
559
8ec588470508 updated for version 7.0159
vimboss
parents: 557
diff changeset
1697 netrwFileHandlers.vim is used.
24
8ff7fd162d3c updated for version 7.0016
vimboss
parents: 22
diff changeset
1698 * directory bookmarking during both local and remote browsing
8ff7fd162d3c updated for version 7.0016
vimboss
parents: 22
diff changeset
1699 implemented
8ff7fd162d3c updated for version 7.0016
vimboss
parents: 22
diff changeset
1700 * one may view all, use the hiding list to suppress, or use the
26
404aac550f35 updated for version 7.0017
vimboss
parents: 24
diff changeset
1701 hiding list to show-only remote and local file/directory
404aac550f35 updated for version 7.0017
vimboss
parents: 24
diff changeset
1702 listings
404aac550f35 updated for version 7.0017
vimboss
parents: 24
diff changeset
1703 * improved unusual file and directory name handling preview
404aac550f35 updated for version 7.0017
vimboss
parents: 24
diff changeset
1704 * window support
36
125e80798a85 updated for version 7.0021
vimboss
parents: 26
diff changeset
1705 v47: * now handles local directory browsing.
125e80798a85 updated for version 7.0021
vimboss
parents: 26
diff changeset
1706 v46: * now handles remote directory browsing
125e80798a85 updated for version 7.0021
vimboss
parents: 26
diff changeset
1707 * g:netrw_silent (if 1) will cause all transfers to be silent
26
404aac550f35 updated for version 7.0017
vimboss
parents: 24
diff changeset
1708 v45: * made the [user@]hostname:path form a bit more restrictive to
404aac550f35 updated for version 7.0017
vimboss
parents: 24
diff changeset
1709 better handle errors in using protocols (e.g. scp:usr@host:file
404aac550f35 updated for version 7.0017
vimboss
parents: 24
diff changeset
1710 was being recognized as an rcp request) v44: * changed from
404aac550f35 updated for version 7.0017
vimboss
parents: 24
diff changeset
1711 "rsync -a" to just "rsync"
9
4102fb4ea781 updated for version 7.0002
vimboss
parents: 7
diff changeset
1712 * somehow an editing error messed up the test to recognize
4102fb4ea781 updated for version 7.0002
vimboss
parents: 7
diff changeset
1713 use of the fetch method for NetRead.
4102fb4ea781 updated for version 7.0002
vimboss
parents: 7
diff changeset
1714 * more debugging statements included
26
404aac550f35 updated for version 7.0017
vimboss
parents: 24
diff changeset
1715 v43: * moved "Explanation" comments to <pi_netrw.txt> help file as
404aac550f35 updated for version 7.0017
vimboss
parents: 24
diff changeset
1716 "Network Reference" (|netrw-ref|)
9
4102fb4ea781 updated for version 7.0002
vimboss
parents: 7
diff changeset
1717 * <netrw.vim> now uses Dfunc() Decho() and Dret() for debugging
4102fb4ea781 updated for version 7.0002
vimboss
parents: 7
diff changeset
1718 * removed superfluous NetRestorePosn() calls
26
404aac550f35 updated for version 7.0017
vimboss
parents: 24
diff changeset
1719 v42: * now does BufReadPre and BufReadPost events on file:///* and
404aac550f35 updated for version 7.0017
vimboss
parents: 24
diff changeset
1720 file://localhost/* v41: * installed file:///* and
404aac550f35 updated for version 7.0017
vimboss
parents: 24
diff changeset
1721 file://localhost/* handling v40: * prevents redraw when a
404aac550f35 updated for version 7.0017
vimboss
parents: 24
diff changeset
1722 protocol error occurs so that the user may see it v39: * sftp
404aac550f35 updated for version 7.0017
vimboss
parents: 24
diff changeset
1723 support v38: * Now uses NetRestorePosn() calls with
404aac550f35 updated for version 7.0017
vimboss
parents: 24
diff changeset
1724 Nread/Nwrite commands
9
4102fb4ea781 updated for version 7.0002
vimboss
parents: 7
diff changeset
1725 * Temporary files now removed via bwipe! instead of bwipe
26
404aac550f35 updated for version 7.0017
vimboss
parents: 24
diff changeset
1726 (thanks to Dave Roberts) v37: * Claar's modifications which
404aac550f35 updated for version 7.0017
vimboss
parents: 24
diff changeset
1727 test if ftp is successful, otherwise give an error message
9
4102fb4ea781 updated for version 7.0002
vimboss
parents: 7
diff changeset
1728 * After a read, the alternate file was pointing to the temp file.
4102fb4ea781 updated for version 7.0002
vimboss
parents: 7
diff changeset
1729 The temp file buffer is now wiped out.
4102fb4ea781 updated for version 7.0002
vimboss
parents: 7
diff changeset
1730 * removed silent from transfer methods so user can see what's
4102fb4ea781 updated for version 7.0002
vimboss
parents: 7
diff changeset
1731 happening
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1732
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1733
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1734 ==============================================================================
650
662e40bd2be1 updated for version 7.0191
vimboss
parents: 568
diff changeset
1735 11. Credits *netrw-credits* {{{1
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1736
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1737 Vim editor by Bram Moolenaar (Thanks, Bram!)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1738 dav support by C Campbell
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1739 fetch support by Bram Moolenaar and C Campbell
534
c6296b0ad9ea updated for version 7.0151
vimboss
parents: 532
diff changeset
1740 ftp support by C Campbell <NdrOchip@ScampbellPfamily.AbizM>
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1741 http support by Bram Moolenaar <bram@moolenaar.net>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1742 rcp
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1743 rsync support by C Campbell (suggested by Erik Warendorph)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1744 scp support by raf <raf@comdyn.com.au>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1745 sftp support by C Campbell
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1746
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1747 inputsecret(), BufReadCmd, BufWriteCmd contributed by C Campbell
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1748
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1749 Jérôme Augé -- also using new buffer method with ftp+.netrc
534
c6296b0ad9ea updated for version 7.0151
vimboss
parents: 532
diff changeset
1750 Bram Moolenaar -- obviously vim itself, :e and v:cmdarg use,
856
8cd729851562 updated for version 7.0g
vimboss
parents: 849
diff changeset
1751 fetch,...
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1752 Yasuhiro Matsumoto -- pointing out undo+0r problem and a solution
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1753 Erik Warendorph -- for several suggestions (g:netrw_..._cmd
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1754 variables, rsync etc)
534
c6296b0ad9ea updated for version 7.0151
vimboss
parents: 532
diff changeset
1755 Doug Claar -- modifications to test for success with ftp
856
8cd729851562 updated for version 7.0g
vimboss
parents: 849
diff changeset
1756 operation
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1757
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1758 ==============================================================================
459
d9d38102399f updated for version 7.0122
vimboss
parents: 236
diff changeset
1759 vim:tw=78:ts=8:ft=help:norl:fdm=marker