Mercurial > vim
annotate runtime/doc/pi_netrw.txt @ 2426:e52d87a2bb3e vim73
More runtime file updates.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Wed, 28 Jul 2010 18:17:41 +0200 |
parents | 6de9efd58dc0 |
children | 80229a724a11 |
rev | line source |
---|---|
2420
6de9efd58dc0
Updated runtime files. New netrw plugin version.
Bram Moolenaar <bram@vim.org>
parents:
2413
diff
changeset
|
1 *pi_netrw.txt* For Vim version 7.3c. Last change: 2010 Jul 27 |
7 | 2 |
1121 | 3 ----------------------------------------------------- |
4 NETRW REFERENCE MANUAL by Charles E. Campbell, Jr. | |
5 ----------------------------------------------------- | |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
6 Author: Charles E. Campbell, Jr. <NdrOchip@ScampbellPfamily.AbizM> |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
7 (remove NOSPAM from Campbell's email first) |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
8 |
2152 | 9 Copyright: Copyright (C) 1999-2010 Charles E Campbell, Jr *netrw-copyright* |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
10 Permission is hereby granted to use and distribute this code, with |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
11 or without modifications, provided that this copyright notice is |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
12 copied with it. Like anything else that's free, netrw.vim, |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
13 netrwPlugin.vim, netrwFileHandlers.vim, netrwSettings.vim, |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
14 syntax/netrw.vim, and pi_netrw.txt are provided *as is* and comes |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
15 with no warranty of any kind, either expressed or implied. No |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
16 guarantees of merchantability. No guarantees of suitability for |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
17 any purpose. By using this plugin, you agree that in no event will |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
18 the copyright holder be liable for any damages resulting from the |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
19 use of this software. |
7 | 20 |
559 | 21 |
2152 | 22 *dav* *ftp* *netrw-file* *rcp* *scp* |
23 *davs* *http* *netrw.vim* *rsync* *sftp* | |
24 *fetch* *netrw* *network* | |
7 | 25 |
26 ============================================================================== | |
1621 | 27 1. Contents *netrw-contents* {{{1 |
7 | 28 |
1121 | 29 1. Contents.............................................|netrw-contents| |
30 2. Starting With Netrw..................................|netrw-start| | |
31 3. Netrw Reference......................................|netrw-ref| | |
1621 | 32 EXTERNAL APPLICATIONS AND PROTOCOLS................|netrw-externapp| |
482 | 33 READING............................................|netrw-read| |
34 WRITING............................................|netrw-write| | |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
35 SOURCING...........................................|netrw-source| |
482 | 36 DIRECTORY LISTING..................................|netrw-dirlist| |
37 CHANGING THE USERID AND PASSWORD...................|netrw-chgup| | |
1621 | 38 VARIABLES AND SETTINGS.............................|netrw-variables| |
482 | 39 PATHS..............................................|netrw-path| |
1121 | 40 4. Network-Oriented File Transfer.......................|netrw-xfer| |
459 | 41 NETRC..............................................|netrw-netrc| |
42 PASSWORD...........................................|netrw-passwd| | |
1121 | 43 5. Activation...........................................|netrw-activate| |
1621 | 44 6. Transparent File Editing.............................|netrw-transparent| |
1121 | 45 7. Ex Commands..........................................|netrw-ex| |
46 8. Variables and Options................................|netrw-var| | |
1621 | 47 9. Browsing.............................................|netrw-browse| |
48 Introduction To Browsing...........................|netrw-intro-browse| | |
49 Quick Reference: Maps..............................|netrw-browse-maps| | |
50 Quick Reference: Commands..........................|netrw-browse-cmds| | |
51 Bookmarking A Directory............................|netrw-mb| | |
459 | 52 Browsing...........................................|netrw-cr| |
1621 | 53 Browsing With A Horizontally Split Window..........|netrw-o| |
54 Browsing With A New Tab............................|netrw-t| | |
55 Browsing With A Vertically Split Window............|netrw-v| | |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
56 Change Listing Style.(thin wide long tree).........|netrw-i| |
1621 | 57 Changing To A Bookmarked Directory.................|netrw-gb| |
459 | 58 Changing To A Predecessor Directory................|netrw-u| |
59 Changing To A Successor Directory..................|netrw-U| | |
60 Customizing Browsing With A User Function..........|netrw-x| | |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
61 Deleting Bookmarks.................................|netrw-mB| |
1621 | 62 Deleting Files Or Directories......................|netrw-D| |
63 Directory Exploring Commands.......................|netrw-explore| | |
64 Exploring With Stars and Patterns..................|netrw-star| | |
65 Displaying Information About File..................|netrw-qf| | |
66 Edit File Or Directory Hiding List.................|netrw-ctrl-h| | |
67 Editing The Sorting Sequence.......................|netrw-S| | |
68 Going Up...........................................|netrw--| | |
69 Hiding Files Or Directories........................|netrw-a| | |
70 Improving Browsing.................................|netrw-ssh-hack| | |
71 Listing Bookmarks And History......................|netrw-qb| | |
72 Making A New Directory.............................|netrw-d| | |
459 | 73 Making The Browsing Directory The Current Directory|netrw-c| |
1621 | 74 Marking Files......................................|netrw-mf| |
75 Marking Files By Regular Expression................|netrw-mr| | |
76 Marked Files: Arbitrary Command....................|netrw-mx| | |
77 Marked Files: Compression And Decompression........|netrw-mz| | |
78 Marked Files: Copying..............................|netrw-mc| | |
79 Marked Files: Diff.................................|netrw-md| | |
80 Marked Files: Editing..............................|netrw-me| | |
81 Marked Files: Grep.................................|netrw-mg| | |
82 Marked Files: Hiding and Unhiding by Suffix........|netrw-mh| | |
83 Marked Files: Moving...............................|netrw-mm| | |
84 Marked Files: Printing.............................|netrw-mp| | |
85 Marked Files: Sourcing.............................|netrw-ms| | |
86 Marked Files: Tagging..............................|netrw-mT| | |
87 Marked Files: Setting the Target Directory.........|netrw-mt| | |
88 Marked Files: Unmarking............................|netrw-mu| | |
89 Netrw Browser Variables............................|netrw-browser-var| | |
90 Netrw Browsing And Option Incompatibilities........|netrw-incompatible| | |
91 Netrw Settings.....................................|netrw-settings| | |
92 Obtaining A File...................................|netrw-O| | |
93 Preview Window.....................................|netrw-p| | |
94 Previous Window....................................|netrw-P| | |
95 Refreshing The Listing.............................|netrw-ctrl-l| | |
96 Renaming Files Or Directories......................|netrw-move| | |
97 Reversing Sorting Order............................|netrw-r| | |
98 Selecting Sorting Style............................|netrw-s| | |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
99 Setting Editing Window.............................|netrw-C| |
1121 | 100 10. Problems and Fixes...................................|netrw-problems| |
1621 | 101 11. Debugging Netrw Itself...............................|netrw-debug| |
1121 | 102 12. History..............................................|netrw-history| |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
103 13. Todo.................................................|netrw-todo| |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
104 14. Credits..............................................|netrw-credits| |
7 | 105 |
106 {Vi does not have any of this} | |
107 | |
108 ============================================================================== | |
1621 | 109 2. Starting With Netrw *netrw-start* {{{1 |
110 | |
111 Netrw makes reading files, writing files, browsing over a network, and | |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
112 local browsing easy! First, make sure that you have plugins enabled, so |
1621 | 113 you'll need to have at least the following in your <.vimrc>: |
114 (or see |netrw-activate|) > | |
650 | 115 |
1121 | 116 set nocp " 'compatible' is not set |
117 filetype plugin on " plugins are enabled | |
650 | 118 < |
119 (see |'cp'| and |:filetype-plugin-on|) | |
120 | |
121 Netrw supports "transparent" editing of files on other machines using urls | |
122 (see |netrw-transparent|). As an example of this, let's assume you have an | |
1621 | 123 account on some other machine; if you can use scp, try: > |
650 | 124 |
125 vim scp://hostname/path/to/file | |
126 < | |
1621 | 127 Want to make ssh/scp easier to use? Check out |netrw-ssh-hack|! |
128 | |
129 So, what if you have ftp, not ssh/scp? That's easy, too; try > | |
650 | 130 |
131 vim ftp://hostname/path/to/file | |
132 < | |
133 Want to make ftp simpler to use? See if your ftp supports a file called | |
134 <.netrc> -- typically it goes in your home directory, has read/write | |
135 permissions for only the user to read (ie. not group, world, other, etc), | |
136 and has lines resembling > | |
137 | |
138 machine HOSTNAME login USERID password "PASSWORD" | |
139 machine HOSTNAME login USERID password "PASSWORD" | |
140 ... | |
1121 | 141 default login USERID password "PASSWORD" |
650 | 142 < |
1621 | 143 Now about browsing -- when you just want to look around before editing a |
650 | 144 file. For browsing on your current host, just "edit" a directory: > |
145 | |
146 vim . | |
147 vim /home/userid/path | |
148 < | |
149 For browsing on a remote host, "edit" a directory (but make sure that | |
150 the directory name is followed by a "/"): > | |
151 | |
152 vim scp://hostname/ | |
153 vim ftp://hostname/path/to/dir/ | |
154 < | |
155 See |netrw-browse| for more! | |
156 | |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
157 There are more protocols supported by netrw than just scp and ftp, too: see the |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
158 next section, |netrw-externapp|, on how to use these external applications with |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
159 netrw and vim. |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
160 |
2152 | 161 PREVENTING LOADING *netrw-noload* |
1621 | 162 |
163 If you want to use plugins, but for some reason don't wish to use netrw, then | |
164 you need to avoid loading both the plugin and the autoload portions of netrw. | |
165 You may do so by placing the following two lines in your <.vimrc>: > | |
166 | |
167 :let g:loaded_netrw = 1 | |
168 :let g:loaded_netrwPlugin = 1 | |
169 < | |
650 | 170 |
171 ============================================================================== | |
2152 | 172 3. Netrw Reference *netrw-ref* {{{1 |
1621 | 173 |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
174 Netrw supports several protocols in addition to scp and ftp as mentioned |
1621 | 175 in |netrw-start|. These include dav, fetch, http,... well, just look |
176 at the list in |netrw-externapp|. Each protocol is associated with a | |
177 variable which holds the default command supporting that protocol. | |
178 | |
179 EXTERNAL APPLICATIONS AND PROTOCOLS *netrw-externapp* {{{2 | |
7 | 180 |
482 | 181 Protocol Variable Default Value |
182 -------- ---------------- ------------- | |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
183 dav: *g:netrw_dav_cmd* = "cadaver" if cadaver is executable |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
184 dav: g:netrw_dav_cmd = "curl -o" elseif curl is available |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
185 fetch: *g:netrw_fetch_cmd* = "fetch -o" if fetch is available |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
186 ftp: *g:netrw_ftp_cmd* = "ftp" |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
187 http: *g:netrw_http_cmd* = "elinks" if elinks is available |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
188 http: g:netrw_http_cmd = "links" elseif links is available |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
189 http: g:netrw_http_cmd = "curl" elseif curl is available |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
190 http: g:netrw_http_cmd = "wget" elseif wget is available |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
191 http: g:netrw_http_cmd = "fetch" elseif fetch is available |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
192 rcp: *g:netrw_rcp_cmd* = "rcp" |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
193 rsync: *g:netrw_rsync_cmd* = "rsync -a" |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
194 scp: *g:netrw_scp_cmd* = "scp -q" |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
195 sftp: *g:netrw_sftp_cmd* = "sftp" |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
196 |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
197 *g:netrw_http_xcmd* : the option string for http://... protocols are |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
198 specified via this variable and may be independently overridden. By |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
199 default, the option arguments for the http-handling commands are: > |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
200 |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
201 elinks : "-source >" |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
202 links : "-source >" |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
203 curl : "-o" |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
204 wget : "-q -O" |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
205 fetch : "-o" |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
206 < |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
207 For example, if your system has elinks, and you'd rather see the |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
208 page using an attempt at rendering the text, you may wish to have > |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
209 let g:netrw_http_xcmd= "-dump >" |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
210 < in your .vimrc. |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
211 |
7 | 212 |
1621 | 213 READING *netrw-read* *netrw-nread* {{{2 |
214 | |
215 Generally, one may just use the url notation with a normal editing | |
216 command, such as > | |
217 | |
218 :e ftp://[user@]machine/path | |
219 < | |
220 Netrw also provides the Nread command: | |
221 | |
7 | 222 :Nread ? give help |
22 | 223 :Nread "machine:path" uses rcp |
482 | 224 :Nread "machine path" uses ftp w/ <.netrc> |
22 | 225 :Nread "machine id password path" uses ftp |
226 :Nread "dav://machine[:port]/path" uses cadaver | |
227 :Nread "fetch://[user@]machine/path" uses fetch | |
482 | 228 :Nread "ftp://[user@]machine[[:#]port]/path" uses ftp w/ <.netrc> |
22 | 229 :Nread "http://[user@]machine/path" uses http uses wget |
230 :Nread "rcp://[user@]machine/path" uses rcp | |
231 :Nread "rsync://[user@]machine[:port]/path" uses rsync | |
232 :Nread "scp://[user@]machine[[:#]port]/path" uses scp | |
233 :Nread "sftp://[user@]machine/path" uses sftp | |
7 | 234 |
1621 | 235 WRITING *netrw-write* *netrw-nwrite* {{{2 |
236 | |
237 One may just use the url notation with a normal file writing | |
238 command, such as > | |
239 | |
240 :w ftp://[user@]machine/path | |
241 < | |
242 Netrw also provides the Nwrite command: | |
243 | |
794 | 244 :Nwrite ? give help |
22 | 245 :Nwrite "machine:path" uses rcp |
482 | 246 :Nwrite "machine path" uses ftp w/ <.netrc> |
22 | 247 :Nwrite "machine id password path" uses ftp |
248 :Nwrite "dav://machine[:port]/path" uses cadaver | |
482 | 249 :Nwrite "ftp://[user@]machine[[:#]port]/path" uses ftp w/ <.netrc> |
22 | 250 :Nwrite "rcp://[user@]machine/path" uses rcp |
251 :Nwrite "rsync://[user@]machine[:port]/path" uses rsync | |
252 :Nwrite "scp://[user@]machine[[:#]port]/path" uses scp | |
253 :Nwrite "sftp://[user@]machine/path" uses sftp | |
7 | 254 http: not supported! |
255 | |
1621 | 256 SOURCING *netrw-source* {{{2 |
257 | |
258 One may just use the url notation with the normal file sourcing | |
259 command, such as > | |
260 | |
261 :so ftp://[user@]machine/path | |
262 < | |
263 Netrw also provides the Nsource command: | |
264 | |
1121 | 265 :Nsource ? give help |
266 :Nsource "dav://machine[:port]/path" uses cadaver | |
267 :Nsource "fetch://[user@]machine/path" uses fetch | |
268 :Nsource "ftp://[user@]machine[[:#]port]/path" uses ftp w/ <.netrc> | |
269 :Nsource "http://[user@]machine/path" uses http uses wget | |
270 :Nsource "rcp://[user@]machine/path" uses rcp | |
271 :Nsource "rsync://[user@]machine[:port]/path" uses rsync | |
272 :Nsource "scp://[user@]machine[[:#]port]/path" uses scp | |
273 :Nsource "sftp://[user@]machine/path" uses sftp | |
274 | |
1621 | 275 DIRECTORY LISTING *netrw-dirlist* {{{2 |
276 | |
277 One may browse a directory to get a listing by simply attempting to | |
278 edit the directory: > | |
279 | |
280 :e scp://[user]@hostname/path/ | |
281 :e ftp://[user]@hostname/path/ | |
282 < | |
283 For remote directories (ie. those using scp or ftp), that trailing | |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
284 "/" is necessary (the slash tells netrw to treat the argument as a |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
285 directory to browse instead of a file to download). |
1621 | 286 |
287 However, the Nread command can also be used to accomplish this: | |
288 | |
9 | 289 :Nread [protocol]://[user]@hostname/path/ |
290 | |
1621 | 291 *netrw-login* *netrw-password* |
292 CHANGING USERID AND PASSWORD *netrw-chgup* *netrw-userpass* {{{2 | |
1209 | 293 |
7 | 294 Attempts to use ftp will prompt you for a user-id and a password. |
1209 | 295 These will be saved in global variables g:netrw_uid and |
1621 | 296 s:netrw_passwd; subsequent uses of ftp will re-use those two items to |
1209 | 297 simplify the further use of ftp. However, if you need to use a |
298 different user id and/or password, you'll want to call NetUserPass() | |
299 first. To work around the need to enter passwords, check if your ftp | |
300 supports a <.netrc> file in your home directory. Also see | |
301 |netrw-passwd| (and if you're using ssh/scp hoping to figure out how | |
1621 | 302 to not need to use passwords, look at |netrw-ssh-hack|). |
7 | 303 |
304 :NetUserPass [uid [password]] -- prompts as needed | |
305 :call NetUserPass() -- prompts for uid and password | |
306 :call NetUserPass("uid") -- prompts for password | |
307 :call NetUserPass("uid","password") -- sets global uid and password | |
308 | |
1621 | 309 NETRW VARIABLES AND SETTINGS *netrw-variables* {{{2 |
310 (also see: |netrw-browser-var| |netrw-protocol| |netrw-settings| |netrw-var|) | |
311 | |
312 Netrw provides a lot of variables which allow you to customize netrw to your | |
313 preferences. One way to look at them is via the command :NetrwSettings (see | |
314 |netrw-settings|) which will display your current netrw settings. Most such | |
315 settings are described below, in |netrw-browser-options|, and in | |
316 |netrw-externapp|: | |
1121 | 317 |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
318 *b:netrw_lastfile* last file Network-read/written retained on a |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
319 per-buffer basis (supports plain :Nw ) |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
320 |
2420
6de9efd58dc0
Updated runtime files. New netrw plugin version.
Bram Moolenaar <bram@vim.org>
parents:
2413
diff
changeset
|
321 *g:netrw_bufsettings* the settings that netrw buffers have |
6de9efd58dc0
Updated runtime files. New netrw plugin version.
Bram Moolenaar <bram@vim.org>
parents:
2413
diff
changeset
|
322 (default) noma nomod nonu nowrap ro nobl |
6de9efd58dc0
Updated runtime files. New netrw plugin version.
Bram Moolenaar <bram@vim.org>
parents:
2413
diff
changeset
|
323 |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
324 *g:netrw_chgwin* specifies a window number where file edits will take |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
325 place. (also see |netrw-C|) |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
326 (default) not defined |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
327 |
2420
6de9efd58dc0
Updated runtime files. New netrw plugin version.
Bram Moolenaar <bram@vim.org>
parents:
2413
diff
changeset
|
328 *g:Netrw_funcref* specifies a function (or functions) to be called when |
6de9efd58dc0
Updated runtime files. New netrw plugin version.
Bram Moolenaar <bram@vim.org>
parents:
2413
diff
changeset
|
329 netrw edits a file. The file is first edited, and |
6de9efd58dc0
Updated runtime files. New netrw plugin version.
Bram Moolenaar <bram@vim.org>
parents:
2413
diff
changeset
|
330 then the function reference (|Funcref|) is called. |
6de9efd58dc0
Updated runtime files. New netrw plugin version.
Bram Moolenaar <bram@vim.org>
parents:
2413
diff
changeset
|
331 This variable may also hold a |List| of Funcrefs. |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
332 (default) not defined |
2420
6de9efd58dc0
Updated runtime files. New netrw plugin version.
Bram Moolenaar <bram@vim.org>
parents:
2413
diff
changeset
|
333 > |
6de9efd58dc0
Updated runtime files. New netrw plugin version.
Bram Moolenaar <bram@vim.org>
parents:
2413
diff
changeset
|
334 Example: place in .vimrc; affects all file opening |
6de9efd58dc0
Updated runtime files. New netrw plugin version.
Bram Moolenaar <bram@vim.org>
parents:
2413
diff
changeset
|
335 fun! MyFuncRef() |
6de9efd58dc0
Updated runtime files. New netrw plugin version.
Bram Moolenaar <bram@vim.org>
parents:
2413
diff
changeset
|
336 endfun |
6de9efd58dc0
Updated runtime files. New netrw plugin version.
Bram Moolenaar <bram@vim.org>
parents:
2413
diff
changeset
|
337 let g:Netrw_funcref= function("MyFuncRef") |
6de9efd58dc0
Updated runtime files. New netrw plugin version.
Bram Moolenaar <bram@vim.org>
parents:
2413
diff
changeset
|
338 < |
482 | 339 *g:netrw_ftp* if it doesn't exist, use default ftp |
340 =0 use default ftp (uid password) | |
341 =1 use alternate ftp method (user uid password) | |
342 If you're having trouble with ftp, try changing the | |
343 value of this variable to see if the alternate ftp | |
344 method works for your setup. | |
345 | |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
346 *g:netrw_ftpextracmd* default: doesn't exist |
1121 | 347 If this variable exists, then any string it contains |
348 will be placed into the commands set to your ftp | |
349 client. As an example: | |
350 ="passive" | |
351 | |
482 | 352 *g:netrw_ftpmode* ="binary" (default) |
353 ="ascii" | |
354 | |
1121 | 355 *g:netrw_ignorenetrc* =0 (default for linux, cygwin) |
794 | 356 =1 If you have a <.netrc> file but it doesn't work and |
1621 | 357 you want it ignored, then set this variable as |
358 shown. (default for Windows + cmd.exe) | |
1121 | 359 |
360 *g:netrw_menu* =0 disable netrw's menu | |
361 =1 (default) netrw's menu enabled | |
362 | |
363 *g:netrw_nogx* if this variable exists, then the "gx" map will not | |
364 be available (see |netrw-gx|) | |
482 | 365 |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
366 *g:netrw_uid* (ftp) user-id, retained on a per-vim-session basis |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
367 *s:netrw_passwd* (ftp) password, retained on a per-vim-session basis |
1621 | 368 |
369 *g:netrw_preview* =0 (default) preview window shown in a horizontally | |
370 split window | |
371 =1 preview window shown in a vertically split window. | |
372 Also affects the "previous window" (see |netrw-P|) in | |
373 the same way. | |
7 | 374 |
1209 | 375 *g:netrw_scpport* = "-P" : option to use to set port for scp |
376 *g:netrw_sshport* = "-p" : option to use to set port for ssh | |
377 | |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
378 *g:netrw_sepchr* =\0xff |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
379 =\0x01 for enc == euc-jp (and perhaps it should be for |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
380 others, too, please let me |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
381 know) |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
382 Separates priority codes from filenames internally. |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
383 See |netrw-p12|. |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
384 |
1621 | 385 *g:netrw_silent* =0 : transfers done normally |
386 =1 : transfers done silently | |
387 | |
1209 | 388 *g:netrw_use_errorwindow* =1 : messages from netrw will use a separate one |
389 line window. This window provides reliable | |
390 delivery of messages. (default) | |
391 =0 : messages from netrw will use echoerr ; | |
392 messages don't always seem to show up this | |
393 way, but one doesn't have to quit the window. | |
394 | |
482 | 395 *g:netrw_win95ftp* =1 if using Win95, will remove four trailing blank |
396 lines that o/s's ftp "provides" on transfers | |
397 =0 force normal ftp behavior (no trailing line removal) | |
22 | 398 |
482 | 399 *g:netrw_cygwin* =1 assume scp under windows is from cygwin. Also |
400 permits network browsing to use ls with time and | |
401 size sorting (default if windows) | |
402 =0 assume Windows' scp accepts windows-style paths | |
403 Network browsing uses dir instead of ls | |
404 This option is ignored if you're using unix | |
405 | |
406 *g:netrw_use_nt_rcp* =0 don't use the rcp of WinNT, Win2000 and WinXP | |
1121 | 407 =1 use WinNT's rcp in binary mode (default) |
22 | 408 |
1621 | 409 PATHS *netrw-path* {{{2 |
466 | 410 |
482 | 411 Paths to files are generally user-directory relative for most protocols. |
412 It is possible that some protocol will make paths relative to some | |
413 associated directory, however. | |
414 > | |
415 example: vim scp://user@host/somefile | |
416 example: vim scp://user@host/subdir1/subdir2/somefile | |
417 < | |
1621 | 418 where "somefile" is in the "user"'s home directory. If you wish to get a |
482 | 419 file using root-relative paths, use the full path: |
420 > | |
421 example: vim scp://user@host//somefile | |
422 example: vim scp://user@host//subdir1/subdir2/somefile | |
423 < | |
7 | 424 |
425 ============================================================================== | |
1621 | 426 4. Network-Oriented File Transfer *netrw-xfer* {{{1 |
7 | 427 |
428 Network-oriented file transfer under Vim is implemented by a VimL-based script | |
559 | 429 (<netrw.vim>) using plugin techniques. It currently supports both reading and |
430 writing across networks using rcp, scp, ftp or ftp+<.netrc>, scp, fetch, | |
7 | 431 dav/cadaver, rsync, or sftp. |
432 | |
433 http is currently supported read-only via use of wget or fetch. | |
434 | |
435 <netrw.vim> is a standard plugin which acts as glue between Vim and the | |
436 various file transfer programs. It uses autocommand events (BufReadCmd, | |
437 FileReadCmd, BufWriteCmd) to intercept reads/writes with url-like filenames. > | |
438 | |
439 ex. vim ftp://hostname/path/to/file | |
440 < | |
559 | 441 The characters preceding the colon specify the protocol to use; in the |
1621 | 442 example, it's ftp. The <netrw.vim> script then formulates a command or a |
559 | 443 series of commands (typically ftp) which it issues to an external program |
444 (ftp, scp, etc) which does the actual file transfer/protocol. Files are read | |
445 from/written to a temporary file (under Unix/Linux, /tmp/...) which the | |
446 <netrw.vim> script will clean up. | |
7 | 447 |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
448 Now, a word about Jan Minář's "FTP User Name and Password Disclosure"; first, |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
449 ftp is not a secure protocol. User names and passwords are transmitted "in |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
450 the clear" over the internet; any snooper tool can pick these up; this is not |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
451 a netrw thing, this is a ftp thing. If you're concerned about this, please |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
452 try to use scp or sftp instead. |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
453 |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
454 Netrw re-uses the user id and password during the same vim session and so long |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
455 as the remote hostname remains the same. |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
456 |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
457 Jan seems to be a bit confused about how netrw handles ftp; normally multiple |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
458 commands are performed in a "ftp session", and he seems to feel that the |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
459 uid/password should only be retained over one ftp session. However, netrw |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
460 does every ftp operation in a separate "ftp session"; so remembering the |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
461 uid/password for just one "ftp session" would be the same as not remembering |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
462 the uid/password at all. IMHO this would rapidly grow tiresome as one |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
463 browsed remote directories, for example. |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
464 |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
465 On the other hand, thanks go to Jan M. for pointing out the many |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
466 vulnerabilities that netrw (and vim itself) had had in handling "crafted" |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
467 filenames. The |shellescape()| and |fnameescape()| functions were written in |
2420
6de9efd58dc0
Updated runtime files. New netrw plugin version.
Bram Moolenaar <bram@vim.org>
parents:
2413
diff
changeset
|
468 response by Bram Moolenaar to handle these sort of problems, and netrw has |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
469 been modified to use them. Still, my advice is, if the "filename" looks like |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
470 a vim command that you aren't comfortable with having executed, don't open it. |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
471 |
1121 | 472 *netrw-putty* *netrw-pscp* *netrw-psftp* |
559 | 473 One may modify any protocol's implementing external application by setting a |
474 variable (ex. scp uses the variable g:netrw_scp_cmd, which is defaulted to | |
794 | 475 "scp -q"). As an example, consider using PuTTY: > |
1121 | 476 |
477 let g:netrw_scp_cmd = '"c:\Program Files\PuTTY\pscp.exe" -q -batch' | |
478 let g:netrw_sftp_cmd= '"c:\Program Files\PuTTY\psftp.exe"' | |
794 | 479 < |
1121 | 480 See |netrw-p8| for more about putty, pscp, psftp, etc. |
481 | |
7 | 482 Ftp, an old protocol, seems to be blessed by numerous implementations. |
559 | 483 Unfortunately, some implementations are noisy (ie., add junk to the end of the |
484 file). Thus, concerned users may decide to write a NetReadFixup() function | |
485 that will clean up after reading with their ftp. Some Unix systems (ie., | |
486 FreeBSD) provide a utility called "fetch" which uses the ftp protocol but is | |
487 not noisy and more convenient, actually, for <netrw.vim> to use. | |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
488 Consequently, if "fetch" is available (ie. executable), it may be preferable |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
489 to use it for ftp://... based transfers. |
7 | 490 |
491 For rcp, scp, sftp, and http, one may use network-oriented file transfers | |
459 | 492 transparently; ie. |
7 | 493 > |
494 vim rcp://[user@]machine/path | |
495 vim scp://[user@]machine/path | |
496 < | |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
497 If your ftp supports <.netrc>, then it too can be transparently used |
7 | 498 if the needed triad of machine name, user id, and password are present in |
499 that file. Your ftp must be able to use the <.netrc> file on its own, however. | |
500 > | |
501 vim ftp://[user@]machine[[:#]portnumber]/path | |
502 < | |
503 However, ftp will often need to query the user for the userid and password. | |
459 | 504 The latter will be done "silently"; ie. asterisks will show up instead of |
7 | 505 the actually-typed-in password. Netrw will retain the userid and password |
506 for subsequent read/writes from the most recent transfer so subsequent | |
507 transfers (read/write) to or from that machine will take place without | |
508 additional prompting. | |
509 | |
510 *netrw-urls* | |
511 +=================================+============================+============+ | |
1121 | 512 | Reading | Writing | Uses | |
7 | 513 +=================================+============================+============+ |
1121 | 514 | DAV: | | | |
515 | dav://host/path | | cadaver | | |
516 | :Nread dav://host/path | :Nwrite dav://host/path | cadaver | | |
7 | 517 +---------------------------------+----------------------------+------------+ |
1621 | 518 | DAV + SSL: | | | |
519 | davs://host/path | | cadaver | | |
520 | :Nread davs://host/path | :Nwrite davs://host/path | cadaver | | |
521 +---------------------------------+----------------------------+------------+ | |
1121 | 522 | FETCH: | | | |
523 | fetch://[user@]host/path | | | | |
524 | fetch://[user@]host:http/path | Not Available | fetch | | |
525 | :Nread fetch://[user@]host/path| | | | |
7 | 526 +---------------------------------+----------------------------+------------+ |
1121 | 527 | FILE: | | | |
528 | file:///* | file:///* | | | |
529 | file://localhost/* | file://localhost/* | | | |
7 | 530 +---------------------------------+----------------------------+------------+ |
1121 | 531 | FTP: (*3) | (*3) | | |
532 | ftp://[user@]host/path | ftp://[user@]host/path | ftp (*2) | | |
533 | :Nread ftp://host/path | :Nwrite ftp://host/path | ftp+.netrc | | |
534 | :Nread host path | :Nwrite host path | ftp+.netrc | | |
535 | :Nread host uid pass path | :Nwrite host uid pass path | ftp | | |
7 | 536 +---------------------------------+----------------------------+------------+ |
1121 | 537 | HTTP: wget is executable: (*4) | | | |
538 | http://[user@]host/path | Not Available | wget | | |
7 | 539 +---------------------------------+----------------------------+------------+ |
1121 | 540 | HTTP: fetch is executable (*4) | | | |
541 | http://[user@]host/path | Not Available | fetch | | |
7 | 542 +---------------------------------+----------------------------+------------+ |
1121 | 543 | RCP: | | | |
544 | rcp://[user@]host/path | rcp://[user@]host/path | rcp | | |
7 | 545 +---------------------------------+----------------------------+------------+ |
1121 | 546 | RSYNC: | | | |
547 | rsync://[user@]host/path | rsync://[user@]host/path | rsync | | |
548 | :Nread rsync://host/path | :Nwrite rsync://host/path | rsync | | |
549 | :Nread rcp://host/path | :Nwrite rcp://host/path | rcp | | |
7 | 550 +---------------------------------+----------------------------+------------+ |
1121 | 551 | SCP: | | | |
552 | scp://[user@]host/path | scp://[user@]host/path | scp | | |
553 | :Nread scp://host/path | :Nwrite scp://host/path | scp (*1) | | |
7 | 554 +---------------------------------+----------------------------+------------+ |
1121 | 555 | SFTP: | | | |
556 | sftp://[user@]host/path | sftp://[user@]host/path | sftp | | |
557 | :Nread sftp://host/path | :Nwrite sftp://host/path | sftp (*1) | | |
7 | 558 +=================================+============================+============+ |
559 | |
560 (*1) For an absolute path use scp://machine//path. | |
561 | |
562 (*2) if <.netrc> is present, it is assumed that it will | |
563 work with your ftp client. Otherwise the script will | |
1121 | 564 prompt for user-id and password. |
7 | 565 |
1121 | 566 (*3) for ftp, "machine" may be machine#port or machine:port |
7 | 567 if a different port is needed than the standard ftp port |
568 | |
569 (*4) for http:..., if wget is available it will be used. Otherwise, | |
570 if fetch is available it will be used. | |
571 | |
572 Both the :Nread and the :Nwrite ex-commands can accept multiple filenames. | |
573 | |
574 | |
575 NETRC *netrw-netrc* | |
576 | |
1621 | 577 The <.netrc> file, typically located in your home directory, contains lines |
578 therein which map a hostname (machine name) to the user id and password you | |
579 prefer to use with it. | |
580 | |
7 | 581 The typical syntax for lines in a <.netrc> file is given as shown below. |
799 | 582 Ftp under Unix usually supports <.netrc>; ftp under Windows usually doesn't. |
7 | 583 > |
584 machine {full machine name} login {user-id} password "{password}" | |
585 default login {user-id} password "{password}" | |
586 | |
587 Your ftp client must handle the use of <.netrc> on its own, but if the | |
588 <.netrc> file exists, an ftp transfer will not ask for the user-id or | |
589 password. | |
590 | |
591 Note: | |
592 Since this file contains passwords, make very sure nobody else can | |
593 read this file! Most programs will refuse to use a .netrc that is | |
594 readable for others. Don't forget that the system administrator can | |
1621 | 595 still read the file! Ie. for Linux/Unix: chmod 600 .netrc |
7 | 596 |
597 | |
598 PASSWORD *netrw-passwd* | |
599 | |
600 The script attempts to get passwords for ftp invisibly using |inputsecret()|, | |
2420
6de9efd58dc0
Updated runtime files. New netrw plugin version.
Bram Moolenaar <bram@vim.org>
parents:
2413
diff
changeset
|
601 a built-in Vim function. See |netrw-uidpass| for how to change the password |
7 | 602 after one has set it. |
603 | |
559 | 604 Unfortunately there doesn't appear to be a way for netrw to feed a password to |
605 scp. Thus every transfer via scp will require re-entry of the password. | |
1621 | 606 However, |netrw-ssh-hack| can help with this problem. |
7 | 607 |
608 | |
609 ============================================================================== | |
1621 | 610 5. Activation *netrw-activate* {{{1 |
7 | 611 |
799 | 612 Network-oriented file transfers are available by default whenever Vim's |
1621 | 613 |'nocompatible'| mode is enabled. Netrw's script files reside in your |
614 system's plugin, autoload, and syntax directories; just the | |
615 plugin/netrwPlugin.vim script is sourced automatically whenever you bring up | |
616 vim. The main script in autoload/netrw.vim is only loaded when you actually | |
617 use netrw. I suggest that, at a minimum, you have at least the following in | |
618 your <.vimrc> customization file: > | |
799 | 619 |
559 | 620 set nocp |
621 if version >= 600 | |
622 filetype plugin indent on | |
623 endif | |
624 < | |
7 | 625 |
626 ============================================================================== | |
1621 | 627 6. Transparent File Editing *netrw-transparent* {{{1 |
7 | 628 |
629 Transparent file transfers occur whenever a regular file read or write | |
1621 | 630 (invoked via an |:autocmd| for |BufReadCmd|, |BufWriteCmd|, or |SourceCmd| |
631 events) is made. Thus one may read, write, or source files across networks | |
632 just as easily as if they were local files! > | |
7 | 633 |
634 vim ftp://[user@]machine/path | |
635 ... | |
636 :wq | |
637 | |
559 | 638 See |netrw-activate| for more on how to encourage your vim to use plugins |
639 such as netrw. | |
7 | 640 |
799 | 641 |
7 | 642 ============================================================================== |
1621 | 643 7. Ex Commands *netrw-ex* {{{1 |
7 | 644 |
799 | 645 The usual read/write commands are supported. There are also a few |
1621 | 646 additional commands available. Often you won't need to use Nwrite or |
1121 | 647 Nread as shown in |netrw-transparent| (ie. simply use > |
648 :e url | |
649 :r url | |
650 :w url | |
651 instead, as appropriate) -- see |netrw-urls|. In the explanations | |
652 below, a {netfile} is an url to a remote file. | |
7 | 653 |
2152 | 654 *:Nwrite* *:Nw* |
1621 | 655 :[range]Nw[rite] Write the specified lines to the current |
7 | 656 file as specified in b:netrw_lastfile. |
2152 | 657 (related: |netrw-nwrite|) |
7 | 658 |
1621 | 659 :[range]Nw[rite] {netfile} [{netfile}]... |
7 | 660 Write the specified lines to the {netfile}. |
661 | |
2152 | 662 *:Nread* *:Nr* |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
663 :Nr[ead] Read the lines from the file specified in b:netrw_lastfile |
2152 | 664 into the current buffer. (related: |netrw-nread|) |
7 | 665 |
1621 | 666 :Nr[ead] {netfile} {netfile}... |
7 | 667 Read the {netfile} after the current line. |
668 | |
2152 | 669 *:Nsource* *:Ns* |
1621 | 670 :Ns[ource] {netfile} |
1121 | 671 Source the {netfile}. |
672 To start up vim using a remote .vimrc, one may use | |
673 the following (all on one line) (tnx to Antoine Mechelynck) > | |
674 vim -u NORC -N | |
675 --cmd "runtime plugin/netrwPlugin.vim" | |
676 --cmd "source scp://HOSTNAME/.vimrc" | |
2152 | 677 < (related: |netrw-source|) |
678 | |
679 :call NetUserPass() *NetUserPass()* | |
1621 | 680 If g:netrw_uid and s:netrw_passwd don't exist, |
681 this function will query the user for them. | |
2152 | 682 (related: |netrw-userpass|) |
7 | 683 |
684 :call NetUserPass("userid") | |
1621 | 685 This call will set the g:netrw_uid and, if |
7 | 686 the password doesn't exist, will query the user for it. |
2152 | 687 (related: |netrw-userpass|) |
7 | 688 |
689 :call NetUserPass("userid","passwd") | |
1621 | 690 This call will set both the g:netrw_uid and s:netrw_passwd. |
7 | 691 The user-id and password are used by ftp transfers. One may |
1621 | 692 effectively remove the user-id and password by using empty |
693 strings (ie. ""). | |
2152 | 694 (related: |netrw-userpass|) |
7 | 695 |
1121 | 696 :NetrwSettings This command is described in |netrw-settings| -- used to |
697 display netrw settings and change netrw behavior. | |
482 | 698 |
7 | 699 |
700 ============================================================================== | |
1621 | 701 8. Variables and Options *netrw-options* *netrw-var* {{{1 |
702 | |
703 (if you're interested in the netrw browser settings, see: |netrw-browser-var|) | |
7 | 704 |
1121 | 705 The <netrw.vim> script provides several variables which act as options to |
1621 | 706 affect <netrw.vim>'s file transfer behavior. These variables typically may be |
707 set in the user's <.vimrc> file: (see also |netrw-settings| |netrw-protocol|) | |
708 > | |
1121 | 709 ------------- |
710 Netrw Options | |
711 ------------- | |
9 | 712 Option Meaning |
713 -------------- ----------------------------------------------- | |
714 < | |
1121 | 715 b:netrw_col Holds current cursor position (during NetWrite) |
716 g:netrw_cygwin =1 assume scp under windows is from cygwin | |
717 (default/windows) | |
718 =0 assume scp under windows accepts windows | |
719 style paths (default/else) | |
720 g:netrw_ftp =0 use default ftp (uid password) | |
721 g:netrw_ftpmode ="binary" (default) | |
722 ="ascii" (your choice) | |
723 g:netrw_ignorenetrc =1 (default) | |
724 if you have a <.netrc> file but you don't | |
7 | 725 want it used, then set this variable. Its |
726 mere existence is enough to cause <.netrc> | |
727 to be ignored. | |
1121 | 728 b:netrw_lastfile Holds latest method/machine/path. |
729 b:netrw_line Holds current line number (during NetWrite) | |
730 g:netrw_silent =0 transfers done normally | |
731 =1 transfers done silently | |
732 g:netrw_uid Holds current user-id for ftp. | |
733 g:netrw_use_nt_rcp =0 don't use WinNT/2K/XP's rcp (default) | |
734 =1 use WinNT/2K/XP's rcp, binary mode | |
735 g:netrw_win95ftp =0 use unix-style ftp even if win95/98/ME/etc | |
736 =1 use default method to do ftp > | |
9 | 737 ----------------------------------------------------------------------- |
738 < | |
7 | 739 The script will also make use of the following variables internally, albeit |
740 temporarily. | |
9 | 741 > |
742 ------------------- | |
743 Temporary Variables | |
744 ------------------- | |
745 Variable Meaning | |
746 -------- ------------------------------------ | |
747 < | |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
748 b:netrw_method Index indicating rcp/ftp+.netrc/ftp |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
749 w:netrw_method (same as b:netrw_method) |
7 | 750 g:netrw_machine Holds machine name parsed from input |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
751 b:netrw_fname Holds filename being accessed > |
9 | 752 ------------------------------------------------------------ |
753 < | |
1621 | 754 *netrw-protocol* |
7 | 755 |
9 | 756 Netrw supports a number of protocols. These protocols are invoked using the |
757 variables listed below, and may be modified by the user. | |
7 | 758 > |
759 ------------------------ | |
1121 | 760 Protocol Control Options |
7 | 761 ------------------------ |
1121 | 762 Option Type Setting Meaning |
763 --------- -------- -------------- --------------------------- | |
9 | 764 < |
1121 | 765 netrw_ftp variable =doesn't exist userid set by "user userid" |
766 =0 userid set by "user userid" | |
767 =1 userid set by "userid" | |
768 NetReadFixup function =doesn't exist no change | |
769 =exists Allows user to have files | |
770 read via ftp automatically | |
771 transformed however they wish | |
772 by NetReadFixup() | |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
773 g:netrw_dav_cmd variable ="cadaver" if cadaver is executable |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
774 g:netrw_dav_cmd variable ="curl -o" elseif curl is executable |
1121 | 775 g:netrw_fetch_cmd variable ="fetch -o" if fetch is available |
7 | 776 g:netrw_ftp_cmd variable ="ftp" |
650 | 777 g:netrw_http_cmd variable ="fetch -o" if fetch is available |
778 g:netrw_http_cmd variable ="wget -O" else if wget is available | |
1121 | 779 g:netrw_list_cmd variable ="ssh USEPORT HOSTNAME ls -Fa" |
7 | 780 g:netrw_rcp_cmd variable ="rcp" |
781 g:netrw_rsync_cmd variable ="rsync -a" | |
782 g:netrw_scp_cmd variable ="scp -q" | |
9 | 783 g:netrw_sftp_cmd variable ="sftp" > |
784 ------------------------------------------------------------------------- | |
7 | 785 < |
12 | 786 *netrw-ftp* |
1121 | 787 |
788 The g:netrw_..._cmd options (|g:netrw_ftp_cmd| and |g:netrw_sftp_cmd|) | |
789 specify the external program to use handle the ftp protocol. They may | |
2420
6de9efd58dc0
Updated runtime files. New netrw plugin version.
Bram Moolenaar <bram@vim.org>
parents:
2413
diff
changeset
|
790 include command line options (such as -p for passive mode). Example: > |
6de9efd58dc0
Updated runtime files. New netrw plugin version.
Bram Moolenaar <bram@vim.org>
parents:
2413
diff
changeset
|
791 |
6de9efd58dc0
Updated runtime files. New netrw plugin version.
Bram Moolenaar <bram@vim.org>
parents:
2413
diff
changeset
|
792 let g:netrw_ftp_cmd= "ftp -p" |
6de9efd58dc0
Updated runtime files. New netrw plugin version.
Bram Moolenaar <bram@vim.org>
parents:
2413
diff
changeset
|
793 < |
1121 | 794 Browsing is supported by using the |g:netrw_list_cmd|; the substring |
795 "HOSTNAME" will be changed via substitution with whatever the current request | |
796 is for a hostname. | |
7 | 797 |
1121 | 798 Two options (|g:netrw_ftp| and |netrw-fixup|) both help with certain ftp's |
799 that give trouble . In order to best understand how to use these options if | |
800 ftp is giving you troubles, a bit of discussion is provided on how netrw does | |
801 ftp reads. | |
9 | 802 |
803 For ftp, netrw typically builds up lines of one of the following formats in a | |
7 | 804 temporary file: |
805 > | |
806 IF g:netrw_ftp !exists or is not 1 IF g:netrw_ftp exists and is 1 | |
807 ---------------------------------- ------------------------------ | |
9 | 808 < |
1121 | 809 open machine [port] open machine [port] |
810 user userid password userid password | |
811 [g:netrw_ftpmode] password | |
812 [g:netrw_extracmd] [g:netrw_ftpmode] | |
813 get filename tempfile [g:netrw_extracmd] | |
814 get filename tempfile > | |
9 | 815 --------------------------------------------------------------------- |
7 | 816 < |
2420
6de9efd58dc0
Updated runtime files. New netrw plugin version.
Bram Moolenaar <bram@vim.org>
parents:
2413
diff
changeset
|
817 The |g:netrw_ftpmode| and |g:netrw_extracmd| are optional. |
1121 | 818 |
7 | 819 Netrw then executes the lines above by use of a filter: |
820 > | |
821 :%! {g:netrw_ftp_cmd} -i [-n] | |
822 < | |
823 where | |
824 g:netrw_ftp_cmd is usually "ftp", | |
825 -i tells ftp not to be interactive | |
826 -n means don't use netrc and is used for Method #3 (ftp w/o <.netrc>) | |
827 | |
828 If <.netrc> exists it will be used to avoid having to query the user for | |
9 | 829 userid and password. The transferred file is put into a temporary file. |
7 | 830 The temporary file is then read into the main editing session window that |
831 requested it and the temporary file deleted. | |
832 | |
559 | 833 If your ftp doesn't accept the "user" command and immediately just demands a |
834 userid, then try putting "let netrw_ftp=1" in your <.vimrc>. | |
7 | 835 |
12 | 836 *netrw-cadaver* |
837 To handle the SSL certificate dialog for untrusted servers, one may pull | |
838 down the certificate and place it into /usr/ssl/cert.pem. This operation | |
839 renders the server treatment as "trusted". | |
840 | |
794 | 841 *netrw-fixup* *netreadfixup* |
7 | 842 If your ftp for whatever reason generates unwanted lines (such as AUTH |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
843 messages) you may write a NetReadFixup() function: |
7 | 844 > |
845 function! NetReadFixup(method,line1,line2) | |
846 " a:line1: first new line in current file | |
847 " a:line2: last new line in current file | |
848 if a:method == 1 "rcp | |
849 elseif a:method == 2 "ftp + <.netrc> | |
850 elseif a:method == 3 "ftp + machine,uid,password,filename | |
851 elseif a:method == 4 "scp | |
852 elseif a:method == 5 "http/wget | |
853 elseif a:method == 6 "dav/cadaver | |
854 elseif a:method == 7 "rsync | |
855 elseif a:method == 8 "fetch | |
856 elseif a:method == 9 "sftp | |
1121 | 857 else " complain |
7 | 858 endif |
859 endfunction | |
860 > | |
559 | 861 The NetReadFixup() function will be called if it exists and thus allows you to |
862 customize your reading process. As a further example, <netrw.vim> contains | |
863 just such a function to handle Windows 95 ftp. For whatever reason, Windows | |
864 95's ftp dumps four blank lines at the end of a transfer, and so it is | |
865 desirable to automate their removal. Here's some code taken from <netrw.vim> | |
866 itself: | |
7 | 867 > |
868 if has("win95") && g:netrw_win95ftp | |
9 | 869 fun! NetReadFixup(method, line1, line2) |
7 | 870 if method == 3 " ftp (no <.netrc>) |
1121 | 871 let fourblanklines= line2 - 3 |
872 silent fourblanklines.",".line2."g/^\s*/d" | |
7 | 873 endif |
874 endfunction | |
875 endif | |
876 > | |
877 | |
878 ============================================================================== | |
1621 | 879 9. Browsing *netrw-browsing* *netrw-browse* *netrw-help* {{{1 |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
880 *netrw-browser* *netrw-dir* *netrw-list* |
1621 | 881 |
882 INTRODUCTION TO BROWSING *netrw-intro-browse* {{{2 | |
883 (Quick References: |netrw-quickmaps| |netrw-quickcoms|) | |
884 | |
885 Netrw supports the browsing of directories on your local system and on remote | |
886 hosts; browsing includes listing files and directories, entering directories, | |
887 editing files therein, deleting files/directories, making new directories, | |
888 moving (renaming) files and directories, copying files and directories, etc. | |
889 One may mark files and execute any system command on them! The Netrw browser | |
890 generally implements the previous explorer's maps and commands for remote | |
891 directories, although details (such as pertinent global variable names) | |
892 necessarily differ. To browse a directory, simply "edit" it! > | |
893 | |
894 vim /your/directory/ | |
895 vim . | |
896 vim c:\your\directory\ | |
897 < | |
898 (Related topics: |netrw-cr| |netrw-o| |netrw-p| |netrw-P| |netrw-t| | |
899 |netrw-mf| |netrw-mx| |netrw-D| |netrw-R| |netrw-v| ) | |
22 | 900 |
901 The Netrw remote file and directory browser handles two protocols: ssh and | |
1621 | 902 ftp. The protocol in the url, if it is ftp, will cause netrw also to use ftp |
903 in its remote browsing. Specifying any other protocol will cause it to be | |
904 used for file transfers; but the ssh protocol will be used to do remote | |
905 browsing. | |
906 | |
907 To use Netrw's remote directory browser, simply attempt to read a "file" with | |
908 a trailing slash and it will be interpreted as a request to list a directory: | |
909 > | |
9 | 910 vim [protocol]://[user@]hostname/path/ |
1621 | 911 < |
912 where [protocol] is typically scp or ftp. As an example, try: > | |
913 | |
914 vim ftp://ftp.home.vim.org/pub/vim/ | |
719 | 915 < |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
916 For local directories, the trailing slash is not required. Again, because it's |
1621 | 917 easy to miss: to browse remote directories, the url must terminate with a |
918 slash! | |
919 | |
920 If you'd like to avoid entering the password repeatedly for remote directory | |
921 listings with ssh or scp, see |netrw-ssh-hack|. To avoid password entry with | |
922 ftp, see |netrw-netrc| (if your ftp supports it). | |
923 | |
924 There are several things you can do to affect the browser's display of files: | |
925 | |
926 * To change the listing style, press the "i" key (|netrw-i|). | |
927 Currently there are four styles: thin, long, wide, and tree. | |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
928 To make that change "permanent", see |g:netrw_liststyle|. |
1621 | 929 |
930 * To hide files (don't want to see those xyz~ files anymore?) see | |
931 |netrw-ctrl-h|. | |
932 | |
933 * Press s to sort files by name, time, or size. | |
934 | |
935 See |netrw-browse-cmds| for all the things you can do with netrw! | |
936 | |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
937 *netrw-getftype* *netrw-filigree* *netrw-ftype* |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
938 The |getftype()| function is used to append a bit of filigree to indicate |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
939 filetype to locally listed files: |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
940 |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
941 directory : / |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
942 executable : * |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
943 fifo : | |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
944 links : @ |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
945 sockets : = |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
946 |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
947 The filigree also affects the |g:netrw_sort_sequence|. |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
948 |
1621 | 949 |
950 QUICK HELP *netrw-quickhelp* {{{2 | |
951 (Use ctrl-] to select a topic)~ | |
952 Intro to Browsing...............................|netrw-intro-browse| | |
953 Quick Reference: Maps.........................|netrw-quickmap| | |
954 Quick Reference: Commands.....................|netrw-browse-cmds| | |
955 Hiding | |
956 Edit hiding list..............................|netrw-ctrl-h| | |
957 Hiding Files or Directories...................|netrw-a| | |
958 Hiding/Unhiding by suffix.....................|netrw-mh| | |
959 Hiding dot-files.............................|netrw-gh| | |
960 Listing Style | |
961 Select listing style (thin/long/wide/tree)....|netrw-i| | |
962 Associated setting variable...................|g:netrw_liststyle| | |
963 Shell command used to perform listing.........|g:netrw_list_cmd| | |
964 Quick file info...............................|netrw-qf| | |
965 Sorted by | |
966 Select sorting style (name/time/size).........|netrw-s| | |
967 Editing the sorting sequence..................|netrw-S| | |
1668 | 968 Sorting options...............................|g:netrw_sort_options| |
1621 | 969 Associated setting variable...................|g:netrw_sort_sequence| |
970 Reverse sorting order.........................|netrw-r| | |
971 | |
972 | |
973 *netrw-quickmap* *netrw-quickmaps* | |
974 QUICK REFERENCE: MAPS *netrw-browse-maps* {{{2 | |
466 | 975 > |
1621 | 976 --- ----------------- ---- |
977 Map Quick Explanation Link | |
978 --- ----------------- ---- | |
979 < <F1> Causes Netrw to issue help | |
980 <cr> Netrw will enter the directory or read the file |netrw-cr| | |
981 <del> Netrw will attempt to remove the file/directory |netrw-del| | |
982 - Makes Netrw go up one directory |netrw--| | |
983 a Toggles between normal display, |netrw-a| | |
984 hiding (suppress display of files matching g:netrw_list_hide) | |
985 showing (display only files which match g:netrw_list_hide) | |
986 c Make browsing directory the current directory |netrw-c| | |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
987 C Setting the editing window |netrw-C| |
1621 | 988 d Make a directory |netrw-d| |
989 D Attempt to remove the file(s)/directory(ies) |netrw-D| | |
990 gb Go to previous bookmarked directory |netrw-gb| | |
991 gh Quick hide/unhide of dot-files |netrw-gh| | |
992 <c-h> Edit file hiding list |netrw-ctrl-h| | |
993 i Cycle between thin, long, wide, and tree listings |netrw-i| | |
994 <c-l> Causes Netrw to refresh the directory listing |netrw-ctrl-l| | |
995 mb Bookmark current directory |netrw-mb| | |
996 mc Copy marked files to marked-file target directory |netrw-mc| | |
997 md Apply diff to marked files (up to 3) |netrw-md| | |
998 me Place marked files on arg list and edit them |netrw-me| | |
999 mf Mark a file |netrw-mf| | |
1000 mh Toggle marked file suffices' presence on hiding list |netrw-mh| | |
1001 mm Move marked files to marked-file target directory |netrw-mm| | |
1002 mp Print marked files |netrw-mp| | |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1003 mr Mark files satisfying a shell-style |regexp| |netrw-mr| |
1621 | 1004 mt Current browsing directory becomes markfile target |netrw-mt| |
1005 mT Apply ctags to marked files |netrw-mT| | |
1006 mu Unmark all marked files |netrw-mu| | |
1007 mx Apply arbitrary shell command to marked files |netrw-mx| | |
1008 mz Compress/decompress marked files |netrw-mz| | |
1009 o Enter the file/directory under the cursor in a new |netrw-o| | |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1010 browser window. A horizontal split is used. |
1621 | 1011 O Obtain a file specified by cursor |netrw-O| |
1012 p Preview the file |netrw-p| | |
1013 P Browse in the previously used window |netrw-P| | |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1014 qb List bookmarked directories and history |netrw-qb| |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1015 qf Display information on file |netrw-qf| |
1621 | 1016 r Reverse sorting order |netrw-r| |
1017 R Rename the designed file(s)/directory(ies) |netrw-R| | |
1018 s Select sorting style: by name, time, or file size |netrw-s| | |
1019 S Specify suffix priority for name-sorting |netrw-S| | |
1020 t Enter the file/directory under the cursor in a new tab|netrw-t| | |
1021 u Change to recently-visited directory |netrw-u| | |
1022 U Change to subsequently-visited directory |netrw-U| | |
1023 v Enter the file/directory under the cursor in a new |netrw-v| | |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1024 browser window. A vertical split is used. |
1621 | 1025 x View file with an associated program |netrw-x| |
1026 | |
1668 | 1027 % Open a new file in netrw's current directory |netrw-%| |
1028 | |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1029 *netrw-mouse* *netrw-leftmouse* *netrw-middlemouse* *netrw-rightmouse* |
1621 | 1030 <leftmouse> (gvim only) selects word under mouse as if a <cr> |
1031 had been pressed (ie. edit file, change directory) | |
1032 <middlemouse> (gvim only) same as P selecting word under mouse; | |
1033 see |netrw-P| | |
1034 <rightmouse> (gvim only) delete file/directory using word under | |
1035 mouse | |
1036 <2-leftmouse> (gvim only) when: | |
1037 * in a netrw-selected file, AND | |
1038 * |g:netrw_retmap| == 1 AND | |
1039 * the user doesn't already have a <2-leftmouse> mapping | |
1040 defined before netrw is autoloaded, | |
1041 then a double clicked leftmouse button will return | |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1042 to the netrw browser window. See |g:netrw_retmap|. |
1621 | 1043 <s-leftmouse> (gvim only) like mf, will mark files |
1044 | |
2152 | 1045 (to disable mouse buttons while browsing: |g:netrw_mousemaps|) |
1046 | |
1621 | 1047 *netrw-quickcom* *netrw-quickcoms* |
1048 QUICK REFERENCE: COMMANDS *netrw-explore-cmds* *netrw-browse-cmds* {{{2 | |
1049 :NetrwClean[!] ...........................................|netrw-clean| | |
1050 :NetrwSettings ...........................................|netrw-settings| | |
1051 :Explore[!] [dir] Explore directory of current file......|netrw-explore| | |
1052 :Hexplore[!] [dir] Horizontal Split & Explore.............|netrw-explore| | |
1053 :Nexplore[!] [dir] Vertical Split & Explore...............|netrw-explore| | |
1054 :Pexplore[!] [dir] Vertical Split & Explore...............|netrw-explore| | |
1055 :Rexplore Return to Explorer.....................|netrw-explore| | |
1056 :Sexplore[!] [dir] Split & Explore directory .............|netrw-explore| | |
1057 :Texplore[!] [dir] Tab & Explore..........................|netrw-explore| | |
1058 :Vexplore[!] [dir] Vertical Split & Explore...............|netrw-explore| | |
1059 | |
1060 BOOKMARKING A DIRECTORY *netrw-mb* *netrw-bookmark* *netrw-bookmarks* {{{2 | |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1061 |
1621 | 1062 One may easily "bookmark" a directory by using > |
1063 | |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1064 mb |
839 | 1065 < |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1066 Bookmarks are retained in between sessions in a $HOME/.netrwbook file, and are |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1067 kept in sorted order. |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1068 |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1069 Related Topics: |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1070 |netrw-gb| how to return (go) to a bookmark |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1071 |netrw-mB| how to delete bookmarks |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1072 |netrw-qb| how to list bookmarks |
1621 | 1073 |
1074 | |
1075 BROWSING *netrw-cr* {{{2 | |
12 | 1076 |
9 | 1077 Browsing is simple: move the cursor onto a file or directory of interest. |
11 | 1078 Hitting the <cr> (the return key) will select the file or directory. |
1079 Directories will themselves be listed, and files will be opened using the | |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1080 protocol given in the original read request. |
559 | 1081 |
1621 | 1082 CAVEAT: There are four forms of listing (see |netrw-i|). Netrw assumes that |
1083 two or more spaces delimit filenames and directory names for the long and | |
1084 wide listing formats. Thus, if your filename or directory name has two or | |
1085 more sequential spaces embedded in it, or any trailing spaces, then you'll | |
1086 need to use the "thin" format to select it. | |
519 | 1087 |
650 | 1088 The |g:netrw_browse_split| option, which is zero by default, may be used to |
1621 | 1089 cause the opening of files to be done in a new window or tab instead of the |
1090 default. When the option is one or two, the splitting will be taken | |
1091 horizontally or vertically, respectively. When the option is set to three, a | |
1092 <cr> will cause the file to appear in a new tab. | |
1093 | |
1094 | |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1095 When using the gui (gvim), one may select a file by pressing the <leftmouse> |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1096 button. In addition, if |
1621 | 1097 |
1098 *|g:netrw_retmap| == 1 AND (its default value is 0) | |
1099 * in a netrw-selected file, AND | |
1100 * the user doesn't already have a <2-leftmouse> mapping defined before | |
1101 netrw is loaded | |
1102 | |
1103 then a doubly-clicked leftmouse button will return to the netrw browser | |
1104 window. | |
1105 | |
1106 Netrw attempts to speed up browsing, especially for remote browsing where one | |
1107 may have to enter passwords, by keeping and re-using previously obtained | |
1108 directory listing buffers. The |g:netrw_fastbrowse| variable is used to | |
1109 control this behavior; one may have slow browsing (no buffer re-use), medium | |
1110 speed browsing (re-use directory buffer listings only for remote directories), | |
1111 and fast browsing (re-use directory buffer listings as often as possible). | |
1112 The price for such re-use is that when changes are made (such as new files | |
1113 are introduced into a directory), the listing may become out-of-date. One may | |
1114 always refresh directory listing buffers by pressing ctrl-L (see | |
1115 |netrw-ctrl-l|). | |
1116 | |
1117 | |
1118 Related topics: |netrw-o| |netrw-p| |netrw-P| |netrw-t| |netrw-v| | |
1119 Associated setting variables: |g:netrw_browse_split| |g:netrw_fastbrowse| | |
1120 |g:netrw_ftp_list_cmd| |g:netrw_ftp_sizelist_cmd| | |
1121 |g:netrw_ftp_timelist_cmd| |g:netrw_ssh_cmd| | |
1122 |g:netrw_ssh_browse_reject| |g:netrw_use_noswf| | |
1123 | |
1124 | |
1125 BROWSING WITH A HORIZONTALLY SPLIT WINDOW *netrw-o* *netrw-horiz* {{{2 | |
1126 | |
1127 Normally one enters a file or directory using the <cr>. However, the "o" map | |
1128 allows one to open a new window to hold the new directory listing or file. A | |
1129 horizontal split is used. (for vertical splitting, see |netrw-v|) | |
1130 | |
1131 Normally, the o key splits the window horizontally with the new window and | |
1132 cursor at the top. To change to splitting the window horizontally with the | |
1133 new window and cursor at the bottom, have | |
1134 | |
1135 let g:netrw_alto = 1 | |
1136 | |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1137 in your <.vimrc>. (also see |netrw-t| |netrw-T| |netrw-v|) |
1621 | 1138 |
1139 Associated setting variables: |g:netrw_alto| |g:netrw_winsize| | |
1140 | |
1141 | |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1142 BROWSING WITH A NEW TAB *netrw-t* *netrw-T* {{{2 |
1621 | 1143 |
1144 Normally one enters a file or directory using the <cr>. The "t" map | |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1145 allows one to open a new window holding the new directory listing or file in |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1146 a new tab. The "T" version puts the file or directory into a background tab |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1147 (see |gT|) |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1148 |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1149 Related actions: |netrw-o| |netrw-v| |
1621 | 1150 |
1151 | |
1152 BROWSING WITH A VERTICALLY SPLIT WINDOW *netrw-v* {{{2 | |
1153 | |
1154 Normally one enters a file or directory using the <cr>. However, the "v" map | |
1155 allows one to open a new window to hold the new directory listing or file. A | |
1156 vertical split is used. (for horizontal splitting, see |netrw-o|) | |
1157 | |
1158 Normally, the v key splits the window vertically with the new window and | |
1159 cursor at the left. To change to splitting the window vertically with the new | |
1160 window and cursor at the right, have | |
1161 | |
1162 let g:netrw_altv = 1 | |
1163 | |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1164 in your <.vimrc>. (also see: |netrw-o| |netrw-t| |netrw-T|) |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1165 |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1166 There is only one tree listing buffer; using "v" on a displayed subdirectory |
1621 | 1167 will split the screen, but the same buffer will be shown twice. |
1168 | |
1169 Associated setting variable: |g:netrw_altv| |g:netrw_winsize| | |
1170 | |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1171 |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1172 CHANGE LISTING STYLE (THIN LONG WIDE TREE) *netrw-i* {{{2 |
519 | 1173 |
1121 | 1174 The "i" map cycles between the thin, long, wide, and tree listing formats. |
12 | 1175 |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1176 The thin listing format gives just the files' and directories' names. |
519 | 1177 |
15 | 1178 The long listing is either based on the "ls" command via ssh for remote |
559 | 1179 directories or displays the filename, file size (in bytes), and the time and |
1180 date of last modification for local directories. With the long listing | |
1181 format, netrw is not able to recognize filenames which have trailing spaces. | |
1182 Use the thin listing format for such files. | |
519 | 1183 |
1121 | 1184 The wide listing format uses two or more contiguous spaces to delineate |
1185 filenames; when using that format, netrw won't be able to recognize or use | |
1186 filenames which have two or more contiguous spaces embedded in the name or any | |
1187 trailing spaces. The thin listing format will, however, work with such files. | |
1188 This listing format is the most compact. | |
1189 | |
1190 The tree listing format has a top directory followed by files and directories | |
1191 preceded by a "|". One may open and close directories by pressing the <cr> | |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1192 key while atop the directory name. |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1193 |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1194 One may make a preferred listing style your default; see |g:netrw_liststyle|. |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1195 As an example, by putting the following line in your .vimrc, > |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1196 let g:netrw_liststyle= 4 |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1197 the tree style will become your default listing style. |
15 | 1198 |
1621 | 1199 Associated setting variables: |g:netrw_liststyle| |g:netrw_maxfilenamelen| |
1200 |g:netrw_timefmt| |g:netrw_list_cmd| | |
1201 | |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1202 CHANGE FILE PERMISSION *netrw-gp* {{{2 |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1203 |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1204 "gp" will ask you for a new permission for the file named under the cursor. |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1205 Currently, this only works for local files. |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1206 |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1207 Associated setting variables: |g:netrw_chgperm| |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1208 |
1621 | 1209 |
1210 CHANGING TO A BOOKMARKED DIRECTORY *netrw-gb* {{{2 | |
1211 | |
1212 To change directory back to a bookmarked directory, use | |
1213 | |
1214 {cnt}gb | |
1215 | |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1216 Any count may be used to reference any of the bookmarks. |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1217 |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1218 Related Topics: |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1219 |netrw-mB| how to delete bookmarks |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1220 |netrw-mb| how to make a bookmark |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1221 |netrw-qb| how to list bookmarks |
1621 | 1222 |
1223 | |
2152 | 1224 CHANGING TO A PREDECESSOR DIRECTORY *netrw-u* *netrw-updir* {{{2 |
36 | 1225 |
1226 Every time you change to a new directory (new for the current session), | |
1227 netrw will save the directory in a recently-visited directory history | |
1621 | 1228 list (unless g:netrw_dirhistmax is zero; by default, it's ten). With the |
36 | 1229 "u" map, one can change to an earlier directory (predecessor). To do |
1230 the opposite, see |netrw-U|. | |
1231 | |
1232 | |
1621 | 1233 CHANGING TO A SUCCESSOR DIRECTORY *netrw-U* *netrw-downdir* {{{2 |
36 | 1234 |
1235 With the "U" map, one can change to a later directory (successor). | |
1236 This map is the opposite of the "u" map. (see |netrw-u|) Use the | |
1621 | 1237 q map to list both the bookmarks and history. (see |netrw-qb|) |
1238 | |
1239 | |
1240 NETRW CLEAN *netrw-clean* *:NetrwClean* | |
1241 | |
1242 With :NetrwClean one may easily remove netrw from one's home directory; | |
1243 more precisely, from the first directory on your |'runtimepath'|. | |
1244 | |
1245 With :NetrwClean!, netrw will remove netrw from all directories on your | |
1246 |'runtimepath'|. | |
1247 | |
1248 With either form of the command, netrw will first ask for confirmation | |
1249 that the removal is in fact what you want to do. If netrw doesn't have | |
1250 permission to remove a file, it will issue an error message. | |
36 | 1251 |
1121 | 1252 *netrw-gx* |
1621 | 1253 CUSTOMIZING BROWSING WITH A USER FUNCTION *netrw-x* *netrw-handler* {{{2 |
1121 | 1254 (also see |netrw_filehandler|) |
650 | 1255 |
1256 Certain files, such as html, gif, jpeg, (word/office) doc, etc, files, are | |
1257 best seen with a special handler (ie. a tool provided with your computer). | |
1258 Netrw allows one to invoke such special handlers by: > | |
12 | 1259 |
650 | 1260 * when Exploring, hit the "x" key |
1261 * when editing, hit gx with the cursor atop the special filename | |
1121 | 1262 < (not available if the |g:netrw_nogx| variable exists) |
1263 | |
650 | 1264 Netrw determines which special handler by the following method: |
1265 | |
1266 * if |g:netrw_browsex_viewer| exists, then it will be used to attempt to | |
1267 view files. Examples of useful settings (place into your <.vimrc>): > | |
1268 | |
1269 :let g:netrw_browsex_viewer= "kfmclient exec" | |
1270 < or > | |
1271 :let g:netrw_browsex_viewer= "gnome-open" | |
1272 < | |
1273 If g:netrw_browsex_viewer == '-', then netrwFileHandler() will be | |
1274 invoked first (see |netrw_filehandler|). | |
12 | 1275 |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1276 * for Windows 32 or 64, the url and FileProtocolHandler dlls are used. |
650 | 1277 * for Gnome (with gnome-open): gnome-open is used. |
1621 | 1278 * for KDE (with kfmclient) : kfmclient is used. |
1279 * for Mac OS X : open is used. | |
559 | 1280 * otherwise the netrwFileHandler plugin is used. |
482 | 1281 |
1282 The file's suffix is used by these various approaches to determine an | |
559 | 1283 appropriate application to use to "handle" these files. Such things as |
1284 OpenOffice (*.sfx), visualization (*.jpg, *.gif, etc), and PostScript (*.ps, | |
1285 *.eps) can be handled. | |
482 | 1286 |
650 | 1287 *netrw_filehandler* |
1121 | 1288 |
1289 The "x" map applies a function to a file, based on its extension. Of course, | |
1290 the handler function must exist for it to be called! | |
12 | 1291 > |
1292 Ex. mypgm.html x -> | |
1121 | 1293 NFH_html("scp://user@host/some/path/mypgm.html") |
12 | 1294 < |
1121 | 1295 Users may write their own netrw File Handler functions to support more |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1296 suffixes with special handling. See <autoload/netrwFileHandlers.vim> for |
1121 | 1297 examples on how to make file handler functions. As an example: > |
12 | 1298 |
1121 | 1299 " NFH_suffix(filename) |
1300 fun! NFH_suffix(filename) | |
1301 ..do something special with filename.. | |
1302 endfun | |
1303 < | |
1304 These functions need to be defined in some file in your .vim/plugin | |
1305 (vimfiles\plugin) directory. Vim's function names may not have punctuation | |
1306 characters (except for the underscore) in them. To support suffices that | |
1307 contain such characters, netrw will first convert the suffix using the | |
1308 following table: > | |
650 | 1309 |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1310 @ -> AT ! -> EXCLAMATION % -> PERCENT |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1311 : -> COLON = -> EQUAL ? -> QUESTION |
1121 | 1312 , -> COMMA - -> MINUS ; -> SEMICOLON |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1313 $ -> DOLLAR + -> PLUS ~ -> TILDE |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1314 < |
1121 | 1315 So, for example: > |
650 | 1316 |
1121 | 1317 file.rcs,v -> NFH_rcsCOMMAv() |
1318 < | |
1319 If more such translations are necessary, please send me email: > | |
1320 NdrOchip at ScampbellPfamily.AbizM - NOSPAM | |
1321 with a request. | |
482 | 1322 |
1621 | 1323 Associated setting variable: |g:netrw_browsex_viewer| |
1324 | |
1325 *netrw-curdir* | |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1326 DELETING BOOKMARKS *netrw-mB* {{{2 |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1327 |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1328 To delete a bookmark, use > |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1329 |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1330 {cnt}mB |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1331 < |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1332 Related Topics: |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1333 |netrw-gb| how to return (go) to a bookmark |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1334 |netrw-mb| how to make a bookmark |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1335 |netrw-qb| how to list bookmarks |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1336 |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1337 |
1621 | 1338 DELETING FILES OR DIRECTORIES *netrw-delete* *netrw-D* *netrw-del* {{{2 |
1339 | |
1340 If files have not been marked with |netrw-mf|: (local marked file list) | |
1341 | |
1342 Deleting/removing files and directories involves moving the cursor to the | |
1343 file/directory to be deleted and pressing "D". Directories must be empty | |
1344 first before they can be successfully removed. If the directory is a | |
1345 softlink to a directory, then netrw will make two requests to remove the | |
1346 directory before succeeding. Netrw will ask for confirmation before doing | |
1347 the removal(s). You may select a range of lines with the "V" command | |
1348 (visual selection), and then pressing "D". | |
1349 | |
1350 If files have been marked with |netrw-mf|: (local marked file list) | |
1351 | |
1352 Marked files (and empty directories) will be deleted; again, you'll be | |
1353 asked to confirm the deletion before it actually takes place. | |
1354 | |
1355 The |g:netrw_rm_cmd|, |g:netrw_rmf_cmd|, and |g:netrw_rmdir_cmd| variables are | |
1356 used to control the attempts to remove files and directories. The | |
1357 g:netrw_rm_cmd is used with files, and its default value is: | |
1358 | |
1359 g:netrw_rm_cmd: ssh HOSTNAME rm | |
1360 | |
1361 The g:netrw_rmdir_cmd variable is used to support the removal of directories. | |
1362 Its default value is: | |
1363 | |
1364 g:netrw_rmdir_cmd: ssh HOSTNAME rmdir | |
1365 | |
1366 If removing a directory fails with g:netrw_rmdir_cmd, netrw then will attempt | |
1367 to remove it again using the g:netrw_rmf_cmd variable. Its default value is: | |
1368 | |
1369 g:netrw_rmf_cmd: ssh HOSTNAME rm -f | |
1370 | |
1371 Associated setting variable: |g:netrw_local_rmdir| |g:netrw_rm_cmd| | |
1372 |g:netrw_rmdir_cmd| |g:netrw_ssh_cmd| | |
1373 | |
1374 | |
1375 *netrw-explore* *netrw-hexplore* *netrw-nexplore* *netrw-pexplore* | |
1376 *netrw-rexplore* *netrw-sexplore* *netrw-texplore* *netrw-vexplore* | |
1377 DIRECTORY EXPLORATION COMMANDS {{{2 | |
1378 | |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1379 :[N]Explore[!] [dir]... Explore directory of current file *:Explore* |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1380 :[N]Hexplore[!] [dir]... Horizontal Split & Explore *:Hexplore* |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1381 :Rexplore ... Return to Explorer *:Rexplore* |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1382 :[N]Sexplore[!] [dir]... Split&Explore current file's directory *:Sexplore* |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1383 :Texplore [dir]... Tab & Explore *:Texplore* |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1384 :[N]Vexplore[!] [dir]... Vertical Split & Explore *:Vexplore* |
1621 | 1385 |
1386 Used with :Explore **/pattern : (also see |netrw-starstar|) | |
1387 :Nexplore............. go to next matching file *:Nexplore* | |
1388 :Pexplore............. go to previous matching file *:Pexplore* | |
1389 | |
1390 :Explore will open the local-directory browser on the current file's | |
1391 directory (or on directory [dir] if specified). The window will be | |
1392 split only if the file has been modified, otherwise the browsing | |
1393 window will take over that window. Normally the splitting is taken | |
1394 horizontally. | |
1395 :Explore! is like :Explore, but will use vertical splitting. | |
1396 :Sexplore will always split the window before invoking the local-directory | |
1397 browser. As with Explore, the splitting is normally done | |
1398 horizontally. | |
1399 :Sexplore! [dir] is like :Sexplore, but the splitting will be done vertically. | |
1400 :Hexplore [dir] does an :Explore with |:belowright| horizontal splitting. | |
1401 :Hexplore! [dir] does an :Explore with |:aboveleft| horizontal splitting. | |
1402 :Vexplore [dir] does an :Explore with |:leftabove| vertical splitting. | |
1403 :Vexplore! [dir] does an :Explore with |:rightbelow| vertical splitting. | |
1404 :Texplore [dir] does a tabnew before generating the browser window | |
1405 | |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1406 By default, these commands use the current file's directory. However, one may |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1407 explicitly provide a directory (path) to use. |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1408 |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1409 The [N] will override |g:netrw_winsize| to specify the quantity of rows and/or |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1410 columns the new explorer window should have. |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1411 |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1412 Otherwise, the |g:netrw_winsize| variable, if it has been specified by the |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1413 user, is used to control the quantity of rows and/or columns new explorer |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1414 windows should have. |
1621 | 1415 |
1416 :Rexplore This command is a little different from the others. When one | |
1417 edits a file, for example by pressing <cr> when atop a file in | |
1418 a netrw browser window, :Rexplore will return the display to | |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1419 that of the last netrw browser window. It is a command version |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1420 of the <2-leftmouse> map (which is only available under gvim and |
1621 | 1421 cooperative terms). |
1422 | |
1423 | |
1424 *netrw-star* *netrw-starpat* *netrw-starstar* *netrw-starstarpat* | |
1425 EXPLORING WITH STARS AND PATTERNS | |
1426 | |
1427 When Explore, Sexplore, Hexplore, or Vexplore are used with one of the | |
1428 following four styles, Explore generates a list of files which satisfy | |
1429 the request. > | |
1430 | |
1431 */filepat files in current directory which satisfy filepat | |
1432 **/filepat files in current directory or below which satisfy the | |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1433 file pattern |
1621 | 1434 *//pattern files in the current directory which contain the |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1435 pattern (vimgrep is used) |
1621 | 1436 **//pattern files in the current directory or below which contain |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1437 the pattern (vimgrep is used) |
464 | 1438 < |
1621 | 1439 The cursor will be placed on the first file in the list. One may then |
1440 continue to go to subsequent files on that list via |:Nexplore| or to | |
1441 preceding files on that list with |:Pexplore|. Explore will update the | |
1442 directory and place the cursor appropriately. | |
1443 | |
1444 A plain > | |
1445 :Explore | |
1446 will clear the explore list. | |
1447 | |
1448 If your console or gui produces recognizable shift-up or shift-down sequences, | |
1449 then you'll likely find using shift-downarrow and shift-uparrow convenient. | |
1450 They're mapped by netrw: | |
1451 | |
1452 <s-down> == Nexplore, and | |
1453 <s-up> == Pexplore. | |
1454 | |
1455 As an example, consider | |
1456 > | |
1457 :Explore */*.c | |
1458 :Nexplore | |
1459 :Nexplore | |
1460 :Pexplore | |
1461 < | |
1462 The status line will show, on the right hand side of the status line, a | |
1463 message like "Match 3 of 20". | |
1464 | |
1465 Associated setting variables: |g:netrw_keepdir| |g:netrw_browse_split| | |
1466 |g:netrw_fastbrowse| |g:netrw_ftp_browse_reject| | |
1467 |g:netrw_ftp_list_cmd| |g:netrw_ftp_sizelist_cmd| | |
1468 |g:netrw_ftp_timelist_cmd| |g:netrw_list_cmd| | |
1469 |g:netrw_liststyle| | |
1470 | |
1471 | |
1472 DISPLAYING INFORMATION ABOUT FILE *netrw-qf* {{{2 | |
1473 | |
1474 With the cursor atop a filename, pressing "qf" will reveal the file's size | |
1475 and last modification timestamp. Currently this capability is only available | |
1476 for local files. | |
1477 | |
1478 | |
1479 EDIT FILE OR DIRECTORY HIDING LIST *netrw-ctrl-h* *netrw-edithide* {{{2 | |
1480 | |
1481 The "<ctrl-h>" map brings up a requestor allowing the user to change the | |
1482 file/directory hiding list contained in |g:netrw_list_hide|. The hiding list | |
1483 consists of one or more patterns delimited by commas. Files and/or | |
1484 directories satisfying these patterns will either be hidden (ie. not shown) or | |
1485 be the only ones displayed (see |netrw-a|). | |
1486 | |
1487 The "gh" mapping (see |netrw-gh|) quickly alternates between the usual | |
1488 hiding list and the hiding of files or directories that begin with ".". | |
1489 | |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1490 As an example, > |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1491 let g:netrw_list_hide= '\(^\|\s\s\)\zs\.\S\+' |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1492 Effectively, this makes the effect of a |netrw-gh| command the initial setting. |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1493 What it means: |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1494 |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1495 \(^\|\s\s\) : if the line begins with the following, -or- |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1496 two consecutive spaces are encountered |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1497 \zs : start the hiding match now |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1498 \. : if it now begins with a dot |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1499 \S\+ : and is followed by one or more non-whitespace |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1500 characters |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1501 |
1621 | 1502 Associated setting variables: |g:netrw_hide| |g:netrw_list_hide| |
1503 Associated topics: |netrw-a| |netrw-gh| |netrw-mh| | |
1504 | |
1505 | |
1506 EDITING THE SORTING SEQUENCE *netrw-S* *netrw-sortsequence* {{{2 | |
1507 | |
1508 When "Sorted by" is name, one may specify priority via the sorting sequence | |
1509 (g:netrw_sort_sequence). The sorting sequence typically prioritizes the | |
1510 name-listing by suffix, although any pattern will do. Patterns are delimited | |
1511 by commas. The default sorting sequence is (all one line): | |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1512 |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1513 For Unix: > |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1514 '[\/]$,\<core\%(\.\d\+\)\=,\.[a-np-z]$,\.h$,\.c$,\.cpp$,*,\.o$,\.obj$, |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1515 \.info$,\.swp$,\.bak$,\~$' |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1516 < |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1517 Otherwise: > |
1621 | 1518 '[\/]$,\.[a-np-z]$,\.h$,\.c$,\.cpp$,*,\.o$,\.obj$,\.info$, |
1519 \.swp$,\.bak$,\~$' | |
1520 < | |
1521 The lone * is where all filenames not covered by one of the other patterns | |
1522 will end up. One may change the sorting sequence by modifying the | |
1523 g:netrw_sort_sequence variable (either manually or in your <.vimrc>) or by | |
1524 using the "S" map. | |
1525 | |
1668 | 1526 Related topics: |netrw-s| |netrw-S| |
1527 Associated setting variables: |g:netrw_sort_sequence| |g:netrw_sort_options| | |
1621 | 1528 |
1529 | |
1530 GOING UP *netrw--* {{{2 | |
1531 | |
1532 To go up a directory, press "-" or press the <cr> when atop the ../ directory | |
1533 entry in the listing. | |
1534 | |
1535 Netrw will use the command in |g:netrw_list_cmd| to perform the directory | |
1536 listing operation after changing HOSTNAME to the host specified by the | |
1537 user-provided url. By default netrw provides the command as: | |
1538 | |
1539 ssh HOSTNAME ls -FLa | |
1540 | |
1541 where the HOSTNAME becomes the [user@]hostname as requested by the attempt to | |
1542 read. Naturally, the user may override this command with whatever is | |
1543 preferred. The NetList function which implements remote browsing | |
1544 expects that directories will be flagged by a trailing slash. | |
1545 | |
1546 | |
1547 HIDING FILES OR DIRECTORIES *netrw-a* *netrw-hiding* {{{2 | |
1548 | |
1549 Netrw's browsing facility allows one to use the hiding list in one of three | |
1550 ways: ignore it, hide files which match, and show only those files which | |
1551 match. | |
1552 | |
1553 If no files have been marked via |netrw-mf|: | |
1554 | |
1555 The "a" map allows the user to cycle through the three hiding modes. | |
1556 | |
1557 The |g:netrw_list_hide| variable holds a comma delimited list of patterns | |
1558 based on regular expressions (ex. ^.*\.obj$,^\.) which specify the hiding list. | |
1559 (also see |netrw-ctrl-h|) To set the hiding list, use the <c-h> map. As an | |
1560 example, to hide files which begin with a ".", one may use the <c-h> map to | |
1561 set the hiding list to '^\..*' (or one may put let g:netrw_list_hide= '^\..*' | |
1562 in one's <.vimrc>). One may then use the "a" key to show all files, hide | |
1563 matching files, or to show only the matching files. | |
1564 | |
1565 Example: \.[ch]$ | |
1566 This hiding list command will hide/show all *.c and *.h files. | |
1567 | |
1568 Example: \.c$,\.h$ | |
1569 This hiding list command will also hide/show all *.c and *.h | |
1570 files. | |
1571 | |
1572 Don't forget to use the "a" map to select the mode (normal/hiding/show) you | |
1573 want! | |
1574 | |
1575 If files have been marked using |netrw-mf|, then this command will: | |
1576 | |
1577 if showing all files or non-hidden files: | |
1578 modify the g:netrw_list_hide list by appending the marked files to it | |
1579 and showing only non-hidden files. | |
1580 | |
1581 else if showing hidden files only: | |
1582 modify the g:netrw_list_hide list by removing the marked files from it | |
1583 and showing only non-hidden files. | |
1584 endif | |
1585 | |
1586 *netrw-gh* *netrw-hide* | |
1587 As a quick shortcut, one may press > | |
1588 gh | |
1589 to toggle between hiding files which begin with a period (dot) and not hiding | |
1590 them. | |
1591 | |
1592 Associated setting variable: |g:netrw_list_hide| | |
1593 Associated topics: |netrw-a| |netrw-ctrl-h| |netrw-mh| | |
1594 | |
1595 IMPROVING BROWSING *netrw-listhack* *netrw-ssh-hack* {{{2 | |
12 | 1596 |
1597 Especially with the remote directory browser, constantly entering the password | |
1598 is tedious. | |
1599 | |
1121 | 1600 For Linux/Unix systems, the book "Linux Server Hacks - 100 industrial strength |
1209 | 1601 tips & tools" by Rob Flickenger (O'Reilly, ISBN 0-596-00461-3) gives a tip |
1602 for setting up no-password ssh and scp and discusses associated security | |
1121 | 1603 issues. It used to be available at http://hacks.oreilly.com/pub/h/66 , |
1604 but apparently that address is now being redirected to some "hackzine". | |
1698 | 1605 I'll attempt a summary based on that article and on a communication from |
1606 Ben Schmidt: | |
1607 | |
1608 1. Generate a public/private key pair on the local machine | |
1609 (ssh client): > | |
1610 ssh-keygen -t rsa | |
1611 (saving the file in ~/.ssh/id_rsa as prompted) | |
1612 < | |
1613 2. Just hit the <CR> when asked for passphrase (twice) for no | |
1614 passphrase. If you do use a passphrase, you will also need to use | |
1615 ssh-agent so you only have to type the passphrase once per session. | |
1616 If you don't use a passphrase, simply logging onto your local | |
1617 computer or getting access to the keyfile in any way will suffice | |
1618 to access any ssh servers which have that key authorized for login. | |
1619 | |
1620 3. This creates two files: > | |
1621 ~/.ssh/id_rsa | |
1622 ~/.ssh/id_rsa.pub | |
1623 < | |
1624 4. On the target machine (ssh server): > | |
1625 cd | |
1626 mkdir -p .ssh | |
1627 chmod 0700 .ssh | |
1628 < | |
1629 5. On your local machine (ssh client): (one line) > | |
1630 ssh {serverhostname} | |
1631 cat '>>' '~/.ssh/authorized_keys2' < ~/.ssh/id_rsa.pub | |
1632 < | |
1633 or, for OpenSSH, (one line) > | |
1634 ssh {serverhostname} | |
1635 cat '>>' '~/.ssh/authorized_keys' < ~/.ssh/id_rsa.pub | |
1636 < | |
1637 You can test it out with > | |
1638 ssh {serverhostname} | |
1639 and you should be log onto the server machine without further need to type | |
1640 anything. | |
1641 | |
1642 If you decided to use a passphrase, do: > | |
1643 ssh-agent $SHELL | |
1644 ssh-add | |
1645 ssh {serverhostname} | |
1646 You will be prompted for your key passphrase when you use ssh-add, but not | |
1647 subsequently when you use ssh. For use with vim, you can use > | |
1648 ssh-agent vim | |
1649 and, when next within vim, use > | |
1650 :!ssh-add | |
1651 Alternatively, you can apply ssh-agent to the terminal you're planning on | |
1652 running vim in: > | |
1653 ssh-agent xterm & | |
1654 and do ssh-add whenever you need. | |
9 | 1655 |
1121 | 1656 For Windows, folks on the vim mailing list have mentioned that Pageant helps |
1657 with avoiding the constant need to enter the password. | |
794 | 1658 |
1621 | 1659 Kingston Fung wrote about another way to avoid constantly needing to enter |
1660 passwords: | |
1661 | |
1662 In order to avoid the need to type in the password for scp each time, you | |
1663 provide a hack in the docs to set up a non password ssh account. I found a | |
1664 better way to do that: I can use a regular ssh account which uses a | |
1665 password to access the material without the need to key-in the password | |
1666 each time. It's good for security and convenience. I tried ssh public key | |
1667 authorization + ssh-agent, implementing this, and it works! Here are two | |
1668 links with instructions: | |
1669 | |
1670 http://www.ibm.com/developerworks/library/l-keyc2/ | |
1671 http://sial.org/howto/openssh/publickey-auth/ | |
1672 | |
1673 | |
1674 LISTING BOOKMARKS AND HISTORY *netrw-qb* *netrw-listbookmark* {{{2 | |
1675 | |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1676 Pressing "qb" (query bookmarks) will list both the bookmarked directories and |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1677 directory traversal history. |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1678 |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1679 Related Topics: |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1680 |netrw-gb| how to return (go) to a bookmark |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1681 |netrw-mb| how to make a bookmark |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1682 |netrw-mB| how to delete bookmarks |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1683 |netrw-u| change to a predecessor directory via the history stack |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1684 |netrw-U| change to a successor directory via the history stack |
1621 | 1685 |
1686 MAKING A NEW DIRECTORY *netrw-d* {{{2 | |
1687 | |
1688 With the "d" map one may make a new directory either remotely (which depends | |
1689 on the global variable g:netrw_mkdir_cmd) or locally (which depends on the | |
1690 global variable g:netrw_local_mkdir). Netrw will issue a request for the new | |
1691 directory's name. A bare <CR> at that point will abort the making of the | |
1692 directory. Attempts to make a local directory that already exists (as either | |
1693 a file or a directory) will be detected, reported on, and ignored. | |
1694 | |
1695 Currently, making a directory via ftp is not supported. | |
1696 | |
1697 Associated setting variable: |g:netrw_local_mkdir| |g:netrw_mkdir_cmd| | |
1698 | |
1699 | |
1700 MAKING THE BROWSING DIRECTORY THE CURRENT DIRECTORY *netrw-c* {{{2 | |
1701 | |
1702 By default, |g:netrw_keepdir| is 1. This setting means that the current | |
1703 directory will not track the browsing directory. | |
1704 | |
1705 Setting g:netrw_keepdir to 0 tells netrw to make vim's current directory to | |
1706 track netrw's browsing directory. | |
1707 | |
1708 However, given the default setting for g:netrw_keepdir of 1 where netrw | |
1709 maintains its own separate notion of the current directory, in order to make | |
1710 the two directories the same, use the "c" map (just type c). That map will | |
1711 set Vim's notion of the current directory to netrw's current browsing | |
1712 directory. | |
1713 | |
1714 Associated setting variable: |g:netrw_keepdir| | |
1715 | |
1716 MARKING FILES *netrw-mf* {{{2 | |
1717 (also see |netrw-mr|) | |
1718 | |
1719 One may mark files with the cursor atop a filename and then pressing "mf". | |
1720 With gvim, one may also mark files with <s-leftmouse>. The following netrw | |
1721 maps make use of marked files: | |
1722 | |
1723 |netrw-a| Hide marked files/directories | |
1724 |netrw-D| Delete marked files/directories | |
1725 |netrw-mc| Copy marked files to target | |
1726 |netrw-md| Apply vimdiff to marked files | |
1727 |netrw-me| Edit marked files | |
1728 |netrw-mg| Apply vimgrep to marked files | |
1729 |netrw-mm| Move marked files | |
1730 |netrw-mp| Print marked files | |
1731 |netrw-mt| Set target for |netrw-mm| and |netrw-mc| | |
1732 |netrw-mT| Generate tags using marked files | |
1733 |netrw-mx| Apply shell command to marked files | |
1734 |netrw-mz| Compress/Decompress marked files | |
1735 |netrw-O| Obtain marked files | |
1736 |netrw-R| Rename marked files | |
1737 | |
1738 One may unmark files one at a time the same way one marks them; ie. place | |
1739 the cursor atop a marked file and press "mf". This process also works | |
1740 with <s-leftmouse> using gvim. One may unmark all files by pressing | |
1741 "mu" (see |netrw-mu|). | |
1742 | |
1743 *markfilelist* *global_markfilelist* *local_markfilelist* | |
1744 All marked files are entered onto the global marked file list; there is only | |
1745 one such list. In addition, every netrw buffer also has its own local marked | |
1746 file list; since netrw buffers are associated with specific directories, this | |
1747 means that each directory has its own local marked file list. The various | |
1748 commands which operate on marked files use one or the other of the marked file | |
1749 lists. | |
1750 | |
1751 | |
1752 MARKING FILES BY REGULAR EXPRESSION *netrw-mr* {{{2 | |
1753 (also see |netrw-mf|) | |
1754 | |
1755 One may also mark files by pressing "mr"; netrw will then issue a prompt, | |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1756 "Enter regexp: ". You may then enter a shell-style regular expression such |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1757 as *.c$ (see |glob()|). For remote systems, glob() doesn't work -- so netrw |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1758 converts "*" into ".*" (see |regexp|) and marks files based on that. In the |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1759 future I may make it possible to use |regexp|s instead of glob()-style |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1760 expressions (yet-another-option). |
1621 | 1761 |
1762 | |
1763 MARKED FILES: ARBITRARY COMMAND *netrw-mx* {{{2 | |
1764 (See |netrw-mf| and |netrw-mr| for how to mark files) | |
1765 (uses the local marked-file list) | |
1766 | |
1767 Upon activation of the "mx" map, netrw will query the user for some (external) | |
1768 command to be applied to all marked files. All "%"s in the command will be | |
1769 substituted with the name of each marked file in turn. If no "%"s are in the | |
1770 command, then the command will be followed by a space and a marked filename. | |
1771 | |
1772 | |
1773 MARKED FILES: COMPRESSION AND DECOMPRESSION *netrw-mz* {{{2 | |
1774 (See |netrw-mf| and |netrw-mr| for how to mark files) | |
1775 (uses the local marked file list) | |
1776 | |
1777 If any marked files are compressed, then "mz" will decompress them. | |
1778 If any marked files are decompressed, then "mz" will compress them | |
1779 using the command specified by |g:netrw_compress|; by default, | |
1780 that's "gzip". | |
1781 | |
1782 For decompression, netrw provides a |Dictionary| of suffices and their | |
1783 associated decompressing utilities; see |g:netrw_decompress|. | |
1784 | |
1785 Associated setting variables: |g:netrw_compress| |g:netrw_decompress| | |
1786 | |
1787 MARKED FILES: COPYING *netrw-mc* {{{2 | |
1788 (See |netrw-mf| and |netrw-mr| for how to mark files) | |
1789 (Uses the global marked file list) | |
1790 | |
1791 Select a target directory with mt (|netrw-mt|). Then change directory, | |
1792 select file(s) (see |netrw-mf|), and press "mc". | |
1793 | |
1794 Associated setting variable: |g:netrw_localcopycmd| |g:netrw_ssh_cmd| | |
1795 | |
1796 MARKED FILES: DIFF *netrw-md* {{{2 | |
1797 (See |netrw-mf| and |netrw-mr| for how to mark files) | |
1798 (uses the global marked file list) | |
1799 | |
1800 Use |vimdiff| to visualize difference between selected files (two or | |
1801 three may be selected for this). Uses the global marked file list. | |
1802 | |
1803 MARKED FILES: EDITING *netrw-me* {{{2 | |
1804 (See |netrw-mf| and |netrw-mr| for how to mark files) | |
1805 (uses the global marked file list) | |
1806 | |
1807 This command will place the marked files on the |arglist| and commence | |
1808 editing them. One may return the to explorer window with |:Rexplore|. | |
1809 | |
1810 MARKED FILES: GREP *netrw-mg* {{{2 | |
1811 (See |netrw-mf| and |netrw-mr| for how to mark files) | |
1812 (uses the global marked file list) | |
1813 | |
1814 This command will apply |:vimgrep| to the marked files. The command will ask | |
1815 for the requested pattern; one may enter: > | |
1816 /pattern/[g][j] | |
1817 ! /pattern/[g][j] | |
1818 pattern | |
1819 < | |
1820 MARKED FILES: HIDING AND UNHIDING BY SUFFIX *netrw-mh* {{{2 | |
1821 (See |netrw-mf| and |netrw-mr| for how to mark files) | |
1822 (uses the local marked file list) | |
1823 | |
1824 This command extracts the suffices of the marked files and toggles their | |
1825 presence on the hiding list. Please note that marking the same suffix | |
1826 this way multiple times will result in the suffix's presence being toggled | |
1827 for each file (so an even quantity of marked files having the same suffix | |
1828 is the same as not having bothered to select them at all). | |
1829 | |
1830 Related topics: |netrw-a| |g:netrw_list_hide| | |
1831 | |
1832 MARKED FILES: MOVING *netrw-mm* {{{2 | |
1833 (See |netrw-mf| and |netrw-mr| for how to mark files) | |
1834 (uses the global marked file list) | |
1835 | |
1698 | 1836 WARNING: moving files is more dangerous than copying them. |
1837 A file being moved is first copied and then deleted; if the | |
1838 copy operation fails and the delete succeeds, you will lose | |
1839 the file. Either try things out with unimportant files | |
1840 first or do the copy and then delete yourself using mc and D. | |
1841 Use at your own risk! | |
1842 | |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1843 Select a target directory with mt (|netrw-mt|). Then change directory, |
1621 | 1844 select file(s) (see |netrw-mf|), and press "mm". |
1845 | |
1846 Associated setting variable: |g:netrw_localmovecmd| |g:netrw_ssh_cmd| | |
1847 | |
1848 MARKED FILES: PRINTING *netrw-mp* {{{2 | |
1849 (See |netrw-mf| and |netrw-mr| for how to mark files) | |
1850 (uses the local marked file list) | |
1851 | |
1852 Netrw will apply the |:hardcopy| command to marked files. What it does | |
1853 is open each file in a one-line window, execute hardcopy, then close the | |
1854 one-line window. | |
1855 | |
1856 | |
1857 MARKED FILES: SOURCING *netrw-ms* {{{2 | |
1858 (See |netrw-mf| and |netrw-mr| for how to mark files) | |
1859 (uses the local marked file list) | |
1860 | |
1861 Netrw will source the marked files (using vim's |:source| command) | |
1862 | |
1863 | |
1864 MARKED FILES: TAGGING *netrw-mT* {{{2 | |
1865 (See |netrw-mf| and |netrw-mr| for how to mark files) | |
1866 (uses the global marked file list) | |
1867 | |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1868 The "mT" mapping will apply the command in |g:netrw_ctags| (by default, it is |
1621 | 1869 "ctags") to marked files. For remote browsing, in order to create a tags file |
1870 netrw will use ssh (see |g:netrw_ssh_cmd|), and so ssh must be available for | |
1871 this to work on remote systems. For your local system, see |ctags| on how to | |
1872 get a version. I myself use hdrtags, currently available at | |
1873 http://mysite.verizon.net/astronaut/src/index.html , and have > | |
1874 | |
1875 let g:netrw_ctags= "hdrtag" | |
1876 < | |
1877 in my <.vimrc>. | |
1878 | |
1879 When a remote set of files are tagged, the resulting tags file is "obtained"; | |
1880 ie. a copy is transferred to the local system's directory. The local tags | |
1881 file is then modified so that one may use it through the network. The | |
1882 modification is concerns the names of the files in the tags; each filename is | |
1883 preceded by the netrw-compatible url used to obtain it. When one subsequently | |
1884 uses one of the go to tag actions (|tags|), the url will be used by netrw to | |
1885 edit the desired file and go to the tag. | |
1886 | |
1668 | 1887 Associated setting variables: |g:netrw_ctags| |g:netrw_ssh_cmd| |
1621 | 1888 |
1889 | |
1890 MARKED FILES: SETTING THE TARGET DIRECTORY *netrw-mt* {{{2 | |
1891 (See |netrw-mf| and |netrw-mr| for how to mark files) | |
1892 | |
1893 Set the marked file copy/move-to target (see |netrw-mc| and |netrw-mm|): | |
1894 | |
1895 * if the cursor is atop a file name, then the netrw window's currently | |
1896 displayed directory is used for the copy/move-to target. | |
1897 | |
1898 * also, if the cursor is in the banner, then the netrw window's currently | |
1899 displayed directory is used for the copy/move-to target. | |
1900 | |
1901 * however, if the cursor is atop a directory name, then that directory is | |
1902 used for the copy/move-to target | |
1903 | |
1904 There is only one copy/move-to target per vim session; ie. the target is a | |
1905 script variable (see |s:var|) and is shared between all netrw windows (in an | |
1906 instance of vim). | |
1907 | |
1908 MARKED FILES: UNMARKING *netrw-mu* {{{2 | |
1909 (See |netrw-mf| and |netrw-mr| for how to mark files) | |
1910 | |
1911 The "mu" mapping will unmark all currently marked files. | |
1912 | |
1913 | |
1914 NETRW BROWSER VARIABLES *netrw-browser-options* *netrw-browser-var* {{{2 | |
1915 | |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1916 (if you're interested in the netrw file transfer settings, see |netrw-options|) |
1621 | 1917 |
1918 The <netrw.vim> browser provides settings in the form of variables which | |
1919 you may modify; by placing these settings in your <.vimrc>, you may customize | |
1920 your browsing preferences. (see also: |netrw-settings|) | |
1921 > | |
1922 --- ----------- | |
1923 Var Explanation | |
1924 --- ----------- | |
1925 < *g:netrw_alto* change from above splitting to below splitting | |
1926 by setting this variable (see |netrw-o|) | |
1927 default: =&sb (see |'sb'|) | |
1928 | |
1929 *g:netrw_altv* change from left splitting to right splitting | |
1930 by setting this variable (see |netrw-v|) | |
1931 default: =&spr (see |'spr'|) | |
1932 | |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1933 *g:netrw_banner* enable/suppress the banner |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1934 =0: suppress the banner |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1935 =1: banner is enabled (default) |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1936 NOTE: suppressing the banner is a new feature |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1937 which may cause problems. |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1938 |
1621 | 1939 *g:netrw_browse_split* when browsing, <cr> will open the file by: |
1940 =0: re-using the same window | |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1941 =1: horizontally splitting the window first |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1942 =2: vertically splitting the window first |
1621 | 1943 =3: open file in new tab |
1944 =4: act like "P" (ie. open previous window) | |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1945 Note that |g:netrw_preview| may be used |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1946 to get vertical splitting instead of |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1947 horizontal splitting. |
1621 | 1948 |
1949 *g:netrw_browsex_viewer* specify user's preference for a viewer: > | |
1950 "kfmclient exec" | |
1951 "gnome-open" | |
1952 < If > | |
1953 "-" | |
1954 < is used, then netrwFileHandler() will look for | |
1955 a script/function to handle the given | |
1956 extension. (see |netrw_filehandler|). | |
1957 | |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1958 *g:netrw_chgperm* Unix/Linux: "chmod PERM FILENAME" |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1959 Windows: "cacls FILENAME /e /p PERM" |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1960 Used to change access permission for a file. |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1961 |
1621 | 1962 *g:netrw_compress* ="gzip" |
1963 Will compress marked files with this | |
1964 command | |
1965 | |
1668 | 1966 *g:netrw_ctags* ="ctags" |
1967 The default external program used to create tags | |
1968 | |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1969 *g:netrw_cursorline* = 1 (default) |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1970 will use the |'cursorline'| local setting when |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1971 |g:netrw_liststyle| ==0 (thin listing) or |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1972 |g:netrw_liststyle| ==1 (long listing) or |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1973 |g:netrw_liststyle| ==3 (tree listing) |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1974 (ie. doesn't affect the wide listing) |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1975 =0: off |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1976 =2: like ==1, but the wide listing gets both |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1977 cursorline and |'cursorcolumn'|locally set |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1978 |
1621 | 1979 *g:netrw_decompress* = { ".gz" : "gunzip" , |
1980 ".bz2" : "bunzip2" , | |
1981 ".zip" : "unzip" , | |
1982 ".tar" : "tar -xf"} | |
1983 A dictionary mapping suffices to | |
1984 decompression programs. | |
1985 | |
1986 *g:netrw_fastbrowse* =0: slow speed directory browsing; | |
1987 never re-uses directory listings, | |
1988 always obtains directory listings. | |
1989 =1: medium speed directory browsing; | |
1990 re-use directory listings only | |
1991 when remote directory browsing. | |
1992 (default value) | |
1993 =2: fast directory browsing; | |
1994 only obtains directory listings when the | |
1995 directory hasn't been seen before | |
1996 (or |netrw-ctrl-l| is used). | |
1997 | |
1998 Fast browsing retains old directory listing | |
1999 buffers so that they don't need to be | |
2000 re-acquired. This feature is especially | |
2001 important for remote browsing. However, if | |
2002 a file is introduced or deleted into or from | |
2003 such directories, the old directory buffer | |
2004 becomes out-of-date. One may always refresh | |
2005 such a directory listing with |netrw-ctrl-l|. | |
2006 This option gives the user the choice of | |
2007 trading off accuracy (ie. up-to-date listing) | |
2008 versus speed. | |
2009 | |
2010 *g:netrw_fname_escape* =' ?&;%' | |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2011 Used on filenames before remote reading/writing |
1621 | 2012 |
2013 *g:netrw_ftp_browse_reject* ftp can produce a number of errors and warnings | |
2014 that can show up as "directories" and "files" | |
2015 in the listing. This pattern is used to | |
2016 remove such embedded messages. By default its | |
2017 value is: | |
2018 '^total\s\+\d\+$\| | |
2019 ^Trying\s\+\d\+.*$\| | |
2020 ^KERBEROS_V\d rejected\| | |
2021 ^Security extensions not\| | |
2022 No such file\| | |
2023 : connect to address [0-9a-fA-F:]* | |
2024 : No route to host$' | |
2025 | |
2026 *g:netrw_ftp_list_cmd* options for passing along to ftp for directory | |
2027 listing. Defaults: | |
2028 unix or g:netrw_cygwin set: : "ls -lF" | |
2029 otherwise "dir" | |
2030 | |
2031 | |
2032 *g:netrw_ftp_sizelist_cmd* options for passing along to ftp for directory | |
2033 listing, sorted by size of file. | |
2034 Defaults: | |
2035 unix or g:netrw_cygwin set: : "ls -slF" | |
2036 otherwise "dir" | |
2037 | |
2038 *g:netrw_ftp_timelist_cmd* options for passing along to ftp for directory | |
2039 listing, sorted by time of last modification. | |
2040 Defaults: | |
2041 unix or g:netrw_cygwin set: : "ls -tlF" | |
2042 otherwise "dir" | |
2043 | |
2152 | 2044 *g:netrw_glob_escape* ='[]*?`{~$' (unix) |
2045 ='[]*?`{$' (windows | |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2046 These characters in directory names are |
1621 | 2047 escaped before applying glob() |
2048 | |
2049 *g:netrw_hide* if true, the hiding list is used | |
2050 default: =0 | |
2051 | |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2052 *g:netrw_home* The home directory for where bookmarks and |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2053 history are saved (as .netrwbook and |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2054 .netrwhist). |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2055 default: the first directory on the |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2056 |'runtimepath'| |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2057 |
1621 | 2058 *g:netrw_keepdir* =1 (default) keep current directory immune from |
2059 the browsing directory. | |
2060 =0 keep the current directory the same as the | |
2061 browsing directory. | |
2062 The current browsing directory is contained in | |
2063 b:netrw_curdir (also see |netrw-c|) | |
2064 | |
2065 *g:netrw_list_cmd* command for listing remote directories | |
2066 default: (if ssh is executable) | |
2067 "ssh HOSTNAME ls -FLa" | |
2068 | |
2069 *g:netrw_liststyle* Set the default listing style: | |
2070 = 0: thin listing (one file per line) | |
2071 = 1: long listing (one file per line with time | |
2072 stamp information and file size) | |
2073 = 2: wide listing (multiple files in columns) | |
2074 = 3: tree style listing | |
2075 *g:netrw_list_hide* comma separated pattern list for hiding files | |
2076 Patterns are regular expressions (see |regexp|) | |
2077 Example: let g:netrw_list_hide= '.*\.swp$' | |
2078 default: "" | |
2079 | |
2080 *g:netrw_localcopycmd* ="cp" Linux/Unix/MacOS/Cygwin | |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2081 ="copy" Windows |
1621 | 2082 Copies marked files (|netrw-mf|) to target |
2083 directory (|netrw-mt|, |netrw-mc|) | |
2084 | |
2085 *g:netrw_localmovecmd* ="mv" Linux/Unix/MacOS/Cygwin | |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2086 ="move" Windows |
1621 | 2087 Moves marked files (|netrw-mf|) to target |
2088 directory (|netrw-mt|, |netrw-mm|) | |
2089 | |
2090 *g:netrw_local_mkdir* command for making a local directory | |
2091 default: "mkdir" | |
2092 | |
2093 *g:netrw_local_rmdir* remove directory command (rmdir) | |
2094 default: "rmdir" | |
2095 | |
2096 *g:netrw_maxfilenamelen* =32 by default, selected so as to make long | |
2097 listings fit on 80 column displays. | |
2098 If your screen is wider, and you have file | |
2099 or directory names longer than 32 bytes, | |
2100 you may set this option to keep listings | |
2101 columnar. | |
2102 | |
2103 *g:netrw_mkdir_cmd* command for making a remote directory | |
2104 default: "ssh USEPORT HOSTNAME mkdir" | |
2105 | |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2106 *g:netrw_mousemaps* =1 (default) enables the mouse buttons |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2107 while browsing: |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2108 leftmouse : open file/directory |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2109 shift-leftmouse : mark file |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2110 middlemouse : same as P |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2111 rightmouse : remove file/directory |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2112 =0: disables mouse maps |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2113 |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2114 *g:netrw_retmap* if it exists and is set to one, then: |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2115 * if in a netrw-selected file, AND |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2116 * no normal-mode <2-leftmouse> mapping exists, |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2117 then the <2-leftmouse> will be mapped for easy |
1621 | 2118 return to the netrw browser window. |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2119 example: click once to select and open a file, |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2120 double-click to return. |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2121 |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2122 Note that one may instead choose to: |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2123 * let g:netrw_retmap= 1, AND |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2124 * nmap <silent> YourChoice <Plug>NetrwReturn |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2125 and have another mapping instead of |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2126 <2-leftmouse> to invoke the return. |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2127 |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2128 You may also use the |:Rexplore| command to do |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2129 the same thing. |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2130 |
1621 | 2131 default: =0 |
2132 | |
2133 *g:netrw_rm_cmd* command for removing files | |
2134 default: "ssh USEPORT HOSTNAME rm" | |
2135 | |
2136 *g:netrw_rmdir_cmd* command for removing directories | |
2137 default: "ssh USEPORT HOSTNAME rmdir" | |
2138 | |
2139 *g:netrw_rmf_cmd* command for removing softlinks | |
2140 default: "ssh USEPORT HOSTNAME rm -f" | |
2141 | |
2142 *g:netrw_sort_by* sort by "name", "time", or "size" | |
2143 default: "name" | |
2144 | |
2145 *g:netrw_sort_direction* sorting direction: "normal" or "reverse" | |
2146 default: "normal" | |
2147 | |
1668 | 2148 *g:netrw_sort_options* sorting is done using |:sort|; this |
2149 variable's value is appended to the | |
2150 sort command. Thus one may ignore case, | |
2151 for example, with the following in your | |
2152 .vimrc: > | |
2153 let g:netrw_sort_options="i" | |
2154 < default: "" | |
2155 | |
1621 | 2156 *g:netrw_sort_sequence* when sorting by name, first sort by the |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2157 comma-separated pattern sequence. Note that |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2158 the filigree added to indicate filetypes |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2159 should be accounted for in your pattern. |
1621 | 2160 default: '[\/]$,*,\.bak$,\.o$,\.h$, |
2161 \.info$,\.swp$,\.obj$' | |
2162 | |
2163 *g:netrw_special_syntax* If true, then certain files will be shown | |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2164 in special syntax in the browser: |
1621 | 2165 |
2166 netrwBak : *.bak | |
2167 netrwCompress: *.gz *.bz2 *.Z *.zip | |
2168 netrwData : *.dat | |
2169 netrwHdr : *.h | |
2170 netrwLib : *.a *.so *.lib *.dll | |
2171 netrwMakefile: [mM]akefile *.mak | |
2172 netrwObj : *.o *.obj | |
2173 netrwTags : tags ANmenu ANtags | |
2174 netrwTilde : *~ | |
2175 netrwTmp : tmp* *tmp | |
2176 | |
2177 These syntax highlighting groups are linked | |
2178 to Folded or DiffChange by default | |
2179 (see |hl-Folded| and |hl-DiffChange|), but | |
2180 one may put lines like > | |
2181 hi link netrwCompress Visual | |
2182 < into one's <.vimrc> to use one's own | |
2183 preferences. | |
2184 | |
2185 *g:netrw_ssh_cmd* One may specify an executable command | |
2186 to use instead of ssh for remote actions | |
2187 such as listing, file removal, etc. | |
2188 default: ssh | |
2189 | |
2190 *g:netrw_ssh_browse_reject* ssh can sometimes produce unwanted lines, | |
2191 messages, banners, and whatnot that one doesn't | |
2192 want masquerading as "directories" and "files". | |
2193 Use this pattern to remove such embedded | |
2194 messages. By default its value is: | |
2195 '^total\s\+\d\+$' | |
2196 | |
2197 | |
2198 *g:netrw_tmpfile_escape* =' &;' | |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2199 escape() is applied to all temporary files |
1621 | 2200 to escape these characters. |
2201 | |
2202 *g:netrw_timefmt* specify format string to vim's strftime(). | |
2203 The default, "%c", is "the preferred date | |
2204 and time representation for the current | |
2205 locale" according to my manpage entry for | |
2206 strftime(); however, not all are satisfied | |
2207 with it. Some alternatives: | |
2208 "%a %d %b %Y %T", | |
2209 " %a %Y-%m-%d %I-%M-%S %p" | |
2210 default: "%c" | |
2211 | |
2212 *g:netrw_use_noswf* netrw normally avoids writing swapfiles | |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2213 for browser buffers. However, under some |
1621 | 2214 systems this apparently is causing nasty |
2215 ml_get errors to appear; if you're getting | |
2216 ml_get errors, try putting | |
2217 let g:netrw_use_noswf= 0 | |
2218 in your .vimrc. | |
2219 | |
2220 *g:netrw_winsize* specify initial size of new windows made with | |
2221 "o" (see |netrw-o|), "v" (see |netrw-v|), | |
2222 |:Hexplore| or |:Vexplore|. | |
2223 default: "" | |
2224 | |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2225 *g:netrw_xstrlen* Controls how netrw computes string lengths, |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2226 including multi-byte characters' string |
1621 | 2227 length. (thanks to N Weibull, T Mechelynck) |
2228 =0: uses Vim's built-in strlen() | |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2229 =1: number of codepoints (Latin a + combining |
1621 | 2230 circumflex is two codepoints) (DEFAULT) |
2231 =2: number of spacing codepoints (Latin a + | |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2232 combining circumflex is one spacing |
1621 | 2233 codepoint; a hard tab is one; wide and |
2234 narrow CJK are one each; etc.) | |
2235 =3: virtual length (counting tabs as anything | |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2236 between 1 and |'tabstop'|, wide CJK as 2 |
1621 | 2237 rather than 1, Arabic alif as zero when |
2238 immediately preceded by lam, one | |
2239 otherwise, etc) | |
2240 | |
2241 *g:NetrwTopLvlMenu* This variable specifies the top level | |
2242 menu name; by default, it's "Netrw.". If | |
2243 you wish to change this, do so in your | |
2244 .vimrc. | |
2245 | |
2246 NETRW BROWSING AND OPTION INCOMPATIBILITIES *netrw-incompatible* {{{2 | |
2247 | |
2248 Netrw has been designed to handle user options by saving them, setting the | |
2249 options to something that's compatible with netrw's needs, and then restoring | |
2250 them. However, the autochdir option: > | |
2251 :set acd | |
2252 is problematical. Autochdir sets the current directory to that containing the | |
2253 file you edit; this apparently also applies to directories. In other words, | |
2254 autochdir sets the current directory to that containing the "file" (even if | |
2255 that "file" is itself a directory). | |
2256 | |
2257 NETRW SETTINGS *netrw-settings* {{{2 | |
482 | 2258 |
2259 With the NetrwSettings.vim plugin, > | |
2260 :NetrwSettings | |
2261 will bring up a window with the many variables that netrw uses for its | |
559 | 2262 settings. You may change any of their values; when you save the file, the |
2263 settings therein will be used. One may also press "?" on any of the lines for | |
2264 help on what each of the variables do. | |
482 | 2265 |
1621 | 2266 (also see: |netrw-browser-var| |netrw-protocol| |netrw-var| |netrw-variables|) |
1121 | 2267 |
482 | 2268 |
9 | 2269 ============================================================================== |
1621 | 2270 OBTAINING A FILE *netrw-O* {{{2 |
2271 | |
2272 If there are no marked files: | |
2273 | |
2274 When browsing a remote directory, one may obtain a file under the cursor | |
2275 (ie. get a copy on your local machine, but not edit it) by pressing the O | |
2276 key. | |
2277 | |
2278 If there are marked files: | |
2279 | |
2280 The marked files will be obtained (ie. a copy will be transferred to your | |
2281 local machine, but not set up for editing). | |
2282 | |
2283 Only ftp and scp are supported for this operation (but since these two are | |
2284 available for browsing, that shouldn't be a problem). The status bar will | |
2285 then show, on its right hand side, a message like "Obtaining filename". The | |
2286 statusline will be restored after the transfer is complete. | |
2287 | |
2288 Netrw can also "obtain" a file using the local browser. Netrw's display | |
2289 of a directory is not necessarily the same as Vim's "current directory", | |
2290 unless |g:netrw_keepdir| is set to 0 in the user's <.vimrc>. One may select | |
2291 a file using the local browser (by putting the cursor on it) and pressing | |
2292 "O" will then "obtain" the file; ie. copy it to Vim's current directory. | |
2293 | |
2294 Related topics: | |
2295 * To see what the current directory is, use |:pwd| | |
2296 * To make the currently browsed directory the current directory, see |netrw-c| | |
2297 * To automatically make the currently browsed directory the current | |
2298 directory, see |g:netrw_keepdir|. | |
2299 | |
2300 | |
1668 | 2301 OPEN A NEW FILE IN NETRW'S CURRENT DIRECTORY *netrw-%* |
2302 | |
2303 To open a file in netrw's current directory, press "%". This map will | |
2304 query the user for a new filename; an empty file by that name will be | |
2305 placed in the netrw's current directory (ie. b:netrw_curdir). | |
2306 | |
2307 | |
1621 | 2308 PREVIEW WINDOW *netrw-p* *netrw-preview* {{{2 |
2309 | |
2310 One may use a preview window by using the "p" key when the cursor is atop the | |
2311 desired filename to be previewed. The display will then split to show both | |
2312 the browser (where the cursor will remain) and the file (see |:pedit|). | |
2313 By default, the split will be taken horizontally; one may use vertical | |
2314 splitting if one has set |g:netrw_preview| first. | |
2315 | |
2152 | 2316 An interesting set of netrw settings is: > |
2317 | |
2318 let g:netrw_preview = 1 | |
2319 let g:netrw_liststyle = 3 | |
2320 let g:netrw_winsize = 30 | |
2321 | |
2322 These will: | |
2323 1. Make vertical splitting the default for previewing files | |
2324 2. Make the default listing style "tree" | |
2325 3. When a vertical preview window is opened, the directory listing | |
2326 will use only 30 columns; the rest of the window is used for the | |
2327 preview window. | |
1621 | 2328 |
2329 PREVIOUS WINDOW *netrw-P* *netrw-prvwin* {{{2 | |
2330 | |
2331 To edit a file or directory in the previously used (last accessed) window (see | |
2332 :he |CTRL-W_p|), press a "P". If there's only one window, then the one window | |
2333 will be horizontally split (above/below splitting is controlled by | |
2334 |g:netrw_alto|, and its initial size is controlled by |g:netrw_winsize|). | |
2335 | |
2336 If there's more than one window, the previous window will be re-used on | |
2337 the selected file/directory. If the previous window's associated buffer | |
2338 has been modified, and there's only one window with that buffer, then | |
2339 the user will be asked if s/he wishes to save the buffer first (yes, | |
2340 no, or cancel). | |
2341 | |
2342 | |
2343 REFRESHING THE LISTING *netrw-ctrl-l* *netrw-ctrl_l* {{{2 | |
2344 | |
2345 To refresh either a local or remote directory listing, press ctrl-l (<c-l>) or | |
2346 hit the <cr> when atop the ./ directory entry in the listing. One may also | |
2347 refresh a local directory by using ":e .". | |
2348 | |
2349 | |
2350 RENAMING FILES OR DIRECTORIES *netrw-move* *netrw-rename* *netrw-R* {{{2 | |
2351 | |
2352 If there are no marked files: (see |netrw-mf|) | |
2353 | |
2354 Renaming/moving files and directories involves moving the cursor to the | |
2355 file/directory to be moved (renamed) and pressing "R". You will then be | |
2356 queried for where you want the file/directory to be moved. You may select | |
2357 a range of lines with the "V" command (visual selection), and then | |
2358 pressing "R". | |
2359 | |
2360 If there are marked files: (see |netrw-mf|) | |
2361 | |
2362 Marked files will be renamed (moved). You will be queried as above in | |
2363 order to specify where you want the file/directory to be moved. | |
2364 | |
2365 WARNING:~ | |
2366 | |
2367 Note that moving files is a dangerous operation; copies are safer. That's | |
2368 because a "move" for remote files is actually a copy + delete -- and if | |
2369 the copy fails and the delete does not, you may lose the file. | |
2370 | |
2371 The g:netrw_rename_cmd variable is used to implement renaming. By default its | |
2372 value is: | |
2373 | |
2374 ssh HOSTNAME mv | |
2375 | |
2376 One may rename a block of files and directories by selecting them with | |
2377 the V (|linewise-visual|). | |
2378 | |
2379 | |
2380 REVERSING SORTING ORDER *netrw-r* *netrw-reverse* {{{2 | |
2381 | |
2382 One may toggle between normal and reverse sorting order by pressing the | |
2383 "r" key. | |
2384 | |
2385 Related topics: |netrw-s| | |
2386 Associated setting variable: |g:netrw_sort_direction| | |
2387 | |
2388 | |
2389 SELECTING SORTING STYLE *netrw-s* *netrw-sort* {{{2 | |
2390 | |
2391 One may select the sorting style by name, time, or (file) size. The "s" map | |
2392 allows one to circulate amongst the three choices; the directory listing will | |
2393 automatically be refreshed to reflect the selected style. | |
2394 | |
2395 Related topics: |netrw-r| |netrw-S| | |
2396 Associated setting variables: |g:netrw_sort_by| |g:netrw_sort_sequence| | |
2397 | |
2398 | |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2399 SETTING EDITING WINDOW *netrw-C* {{{2 |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2400 |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2401 One may select a netrw window for editing with the "C" mapping, or by setting |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2402 g:netrw_chgwin to the selected window number. Subsequent selection of a file |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2403 to edit (|netrw-cr|) will use that window. |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2404 |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2405 Related topics: |netrw-cr| |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2406 Associated setting variables: |g:netrw_chgwin| |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2407 |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2408 |
1621 | 2409 10. Problems and Fixes *netrw-problems* {{{1 |
24 | 2410 |
2411 (This section is likely to grow as I get feedback) | |
2412 (also see |netrw-debug|) | |
477 | 2413 *netrw-p1* |
24 | 2414 P1. I use windows 95, and my ftp dumps four blank lines at the |
2415 end of every read. | |
2416 | |
2417 See |netrw-fixup|, and put the following into your | |
2418 <.vimrc> file: | |
2419 | |
2420 let g:netrw_win95ftp= 1 | |
466 | 2421 |
477 | 2422 *netrw-p2* |
1121 | 2423 P2. I use Windows, and my network browsing with ftp doesn't sort by |
2424 time or size! -or- The remote system is a Windows server; why | |
2425 don't I get sorts by time or size? | |
24 | 2426 |
2427 Windows' ftp has a minimal support for ls (ie. it doesn't | |
2428 accept sorting options). It doesn't support the -F which | |
2429 gives an explanatory character (ABC/ for "ABC is a directory"). | |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2430 Netrw then uses "dir" to get both its thin and long listings. |
1121 | 2431 If you think your ftp does support a full-up ls, put the |
2432 following into your <.vimrc>: > | |
24 | 2433 |
1121 | 2434 let g:netrw_ftp_list_cmd = "ls -lF" |
2435 let g:netrw_ftp_timelist_cmd= "ls -tlF" | |
2436 let g:netrw_ftp_sizelist_cmd= "ls -slF" | |
2437 < | |
24 | 2438 Alternatively, if you have cygwin on your Windows box, put |
1121 | 2439 into your <.vimrc>: > |
24 | 2440 |
2441 let g:netrw_cygwin= 1 | |
1121 | 2442 < |
2443 This problem also occurs when the remote system is Windows. | |
2444 In this situation, the various g:netrw_ftp_[time|size]list_cmds | |
2445 are as shown above, but the remote system will not correctly | |
2446 modify its listing behavior. | |
2447 | |
24 | 2448 |
477 | 2449 *netrw-p3* |
24 | 2450 P3. I tried rcp://user@host/ (or protocol other than ftp) and netrw |
2451 used ssh! That wasn't what I asked for... | |
2452 | |
2453 Netrw has two methods for browsing remote directories: ssh | |
2454 and ftp. Unless you specify ftp specifically, ssh is used. | |
2455 When it comes time to do download a file (not just a directory | |
2456 listing), netrw will use the given protocol to do so. | |
2457 | |
477 | 2458 *netrw-p4* |
24 | 2459 P4. I would like long listings to be the default. |
2460 | |
1621 | 2461 Put the following statement into your |.vimrc|: > |
2462 | |
1121 | 2463 let g:netrw_liststyle= 1 |
1621 | 2464 < |
2465 Check out |netrw-browser-var| for more customizations that | |
26 | 2466 you can set. |
24 | 2467 |
477 | 2468 *netrw-p5* |
24 | 2469 P5. My times come up oddly in local browsing |
2470 | |
2471 Does your system's strftime() accept the "%c" to yield dates | |
2472 such as "Sun Apr 27 11:49:23 1997"? If not, do a "man strftime" | |
2473 and find out what option should be used. Then put it into | |
1621 | 2474 your |.vimrc|: > |
2475 | |
24 | 2476 let g:netrw_timefmt= "%X" (where X is the option) |
1621 | 2477 < |
477 | 2478 *netrw-p6* |
26 | 2479 P6. I want my current directory to track my browsing. |
2480 How do I do that? | |
24 | 2481 |
1621 | 2482 Put the following line in your |.vimrc|: |
2483 > | |
794 | 2484 let g:netrw_keepdir= 0 |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2485 < |
1121 | 2486 *netrw-p7* |
2487 P7. I use Chinese (or other non-ascii) characters in my filenames, and | |
2488 netrw (Explore, Sexplore, Hexplore, etc) doesn't display them! | |
466 | 2489 |
1121 | 2490 (taken from an answer provided by Wu Yongwei on the vim |
2491 mailing list) | |
2492 I now see the problem. You code page is not 936, right? Vim | |
2493 seems only able to open files with names that are valid in the | |
2494 current code page, as are many other applications that do not | |
2495 use the Unicode version of Windows APIs. This is an OS-related | |
2496 issue. You should not have such problems when the system | |
2497 locale uses UTF-8, such as modern Linux distros. | |
2498 | |
2499 (...it is one more reason to recommend that people use utf-8!) | |
2500 | |
2501 *netrw-p8* | |
2502 P8. I'm getting "ssh is not executable on your system" -- what do I | |
2503 do? | |
2504 | |
2505 (Dudley Fox) Most people I know use putty for windows ssh. It | |
2506 is a free ssh/telnet application. You can read more about it | |
2507 here: | |
2508 | |
2509 http://www.chiark.greenend.org.uk/~sgtatham/putty/ Also: | |
2510 | |
2511 (Marlin Unruh) This program also works for me. It's a single | |
2512 executable, so he/she can copy it into the Windows\System32 | |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2513 folder and create a shortcut to it. |
1121 | 2514 |
2515 (Dudley Fox) You might also wish to consider plink, as it | |
2516 sounds most similar to what you are looking for. plink is an | |
2517 application in the putty suite. | |
2518 | |
2519 http://the.earth.li/~sgtatham/putty/0.58/htmldoc/Chapter7.html#plink | |
2520 | |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2521 (Vissale Neang) Maybe you can try OpenSSH for windows, which |
1121 | 2522 can be obtained from: |
2523 | |
2524 http://sshwindows.sourceforge.net/ | |
2525 | |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2526 It doesn't need the full Cygwin package. |
1121 | 2527 |
2528 (Antoine Mechelynck) For individual Unix-like programs needed | |
2529 for work in a native-Windows environment, I recommend getting | |
2530 them from the GnuWin32 project on sourceforge if it has them: | |
2531 | |
2532 http://gnuwin32.sourceforge.net/ | |
2533 | |
2534 Unlike Cygwin, which sets up a Unix-like virtual machine on | |
2535 top of Windows, GnuWin32 is a rewrite of Unix utilities with | |
2536 Windows system calls, and its programs works quite well in the | |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2537 cmd.exe "Dos box". |
1121 | 2538 |
2539 (dave) Download WinSCP and use that to connect to the server. | |
2540 In Preferences > Editors, set gvim as your editor: | |
2541 | |
2542 - Click "Add..." | |
2543 - Set External Editor (adjust path as needed, include | |
2544 the quotes and !.! at the end): | |
2545 "c:\Program Files\Vim\vim70\gvim.exe" !.! | |
2546 - Check that the filetype in the box below is | |
2547 {asterisk}.{asterisk} (all files), or whatever types | |
2548 you want (cec: change {asterisk} to * ; I had to | |
2549 write it that way because otherwise the helptags | |
1621 | 2550 system thinks it's a tag) |
2551 - Make sure it's at the top of the listbox (click it, | |
2552 then click "Up" if it's not) | |
1121 | 2553 If using the Norton Commander style, you just have to hit <F4> |
2554 to edit a file in a local copy of gvim. | |
2555 | |
2556 (Vit Gottwald) How to generate public/private key and save | |
2557 public key it on server: > | |
2420
6de9efd58dc0
Updated runtime files. New netrw plugin version.
Bram Moolenaar <bram@vim.org>
parents:
2413
diff
changeset
|
2558 http://www.chiark.greenend.org.uk/~sgtatham/putty/0.60/htmldoc/Chapter8.html#pubkey-gettingready |
6de9efd58dc0
Updated runtime files. New netrw plugin version.
Bram Moolenaar <bram@vim.org>
parents:
2413
diff
changeset
|
2559 (8.3 Getting ready for public key authentication) |
1121 | 2560 < |
1621 | 2561 How to use a private key with 'pscp': > |
2562 | |
2420
6de9efd58dc0
Updated runtime files. New netrw plugin version.
Bram Moolenaar <bram@vim.org>
parents:
2413
diff
changeset
|
2563 http://www.chiark.greenend.org.uk/~sgtatham/putty/0.60/htmldoc/Chapter5.html |
6de9efd58dc0
Updated runtime files. New netrw plugin version.
Bram Moolenaar <bram@vim.org>
parents:
2413
diff
changeset
|
2564 (5.2.4 Using public key authentication with PSCP) |
1121 | 2565 < |
1621 | 2566 (Ben Schmidt) I find the ssh included with cwRsync is |
2567 brilliant, and install cwRsync or cwRsyncServer on most | |
2568 Windows systems I come across these days. I guess COPSSH, | |
2569 packed by the same person, is probably even better for use as | |
2570 just ssh on Windows, and probably includes sftp, etc. which I | |
2571 suspect the cwRsync doesn't, though it might | |
2572 | |
1121 | 2573 (cec) To make proper use of these suggestions above, you will |
2574 need to modify the following user-settable variables in your | |
2575 .vimrc: | |
2576 | |
1621 | 2577 |g:netrw_ssh_cmd| |g:netrw_list_cmd| |g:netrw_mkdir_cmd| |
2578 |g:netrw_rm_cmd| |g:netrw_rmdir_cmd| |g:netrw_rmf_cmd| | |
1121 | 2579 |
2580 The first one (|g:netrw_ssh_cmd|) is the most important; most | |
2581 of the others will use the string in g:netrw_ssh_cmd by | |
2582 default. | |
2583 *netrw-p9* *netrw-ml_get* | |
2584 P9. I'm browsing, changing directory, and bang! ml_get errors | |
2585 appear and I have to kill vim. Any way around this? | |
2586 | |
2587 Normally netrw attempts to avoid writing swapfiles for | |
2588 its temporary directory buffers. However, on some systems | |
2589 this attempt appears to be causing ml_get errors to | |
2590 appear. Please try setting |g:netrw_use_noswf| to 0 | |
2591 in your <.vimrc>: > | |
2592 let g:netrw_use_noswf= 0 | |
2593 < | |
1621 | 2594 *netrw-p10* |
2595 P10. I'm being pestered with "[something] is a directory" and | |
2596 "Press ENTER or type command to continue" prompts... | |
2597 | |
2598 The "[something] is a directory" prompt is issued by Vim, | |
2599 not by netrw, and there appears to be no way to work around | |
2600 it. Coupled with the default cmdheight of 1, this message | |
2601 causes the "Press ENTER..." prompt. So: read |hit-enter|; | |
2602 I also suggest that you set your |'cmdheight'| to 2 (or more) in | |
2603 your <.vimrc> file. | |
2604 | |
2605 *netrw-p11* | |
2606 P11. I want to have two windows; a thin one on the left and my editing | |
2607 window on the right. How can I do this? | |
2608 | |
2609 * Put the following line in your <.vimrc>: | |
2610 let g:netrw_altv = 1 | |
2611 * Edit the current directory: :e . | |
2612 * Select some file, press v | |
2613 * Resize the windows as you wish (see |CTRL-W_<| and | |
2614 |CTRL-W_>|). If you're using gvim, you can drag | |
2615 the separating bar with your mouse. | |
2616 * When you want a new file, use ctrl-w h to go back to the | |
2617 netrw browser, select a file, then press P (see |CTRL-W_h| | |
2618 and |netrw-P|). If you're using gvim, you can press | |
2619 <leftmouse> in the browser window and then press the | |
2620 <middlemouse> to select the file. | |
24 | 2621 |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2622 *netrw-p12* |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2623 P12. My directory isn't sorting correctly, or unwanted letters are |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2624 appearing in the listed filenames, or things aren't lining |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2625 up properly in the wide listing, ... |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2626 |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2627 This may be due to an encoding problem. I myself usually use |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2628 utf-8, but really only use ascii (ie. bytes from 32-126). |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2629 Multibyte encodings use two (or more) bytes per character. |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2630 You may need to change |g:netrw_sepchr| and/or |g:netrw_xstrlen|. |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2631 |
2152 | 2632 *netrw-p13* |
2633 P13. I'm a Windows + putty + ssh user, and when I attempt to browse, | |
2634 the directories are missing trailing "/"s so netrw treats them | |
2635 as file transfers instead of as attempts to browse | |
2636 subdirectories. How may I fix this? | |
2637 | |
2638 (mikeyao) If you want to use vim via ssh and putty under Windows, | |
2639 try combining the use of pscp/psftp with plink. pscp/psftp will | |
2640 be used to connect and plink will be used to execute commands on | |
2641 the server, for example: list files and directory using 'ls'. | |
2642 | |
2643 These are the settings I use to do this: | |
2644 > | |
2645 " list files, it's the key setting, if you haven't set, | |
2646 " you will get a blank buffer | |
2647 let g:netrw_list_cmd = "plink HOSTNAME ls -Fa" | |
2648 " if you haven't add putty directory in system path, you should | |
2649 " specify scp/sftp command. For examples: | |
2650 "let g:netrw_sftp_cmd = "d:\\dev\\putty\\PSFTP.exe" | |
2651 "let g:netrw_scp_cmd = "d:\\dev\\putty\\PSCP.exe" | |
2652 < | |
2653 | |
2654 | |
24 | 2655 ============================================================================== |
1621 | 2656 11. Debugging Netrw Itself *netrw-debug* {{{1 |
7 | 2657 |
2658 The <netrw.vim> script is typically available as: | |
477 | 2659 > |
1621 | 2660 /usr/local/share/vim/vim6x/plugin/netrwPlugin.vim |
2661 /usr/local/share/vim/vim6x/autoload/netrw.vim | |
477 | 2662 < -or- > |
1621 | 2663 /usr/local/share/vim/vim7x/plugin/netrwPlugin.vim |
2664 /usr/local/share/vim/vim7x/autoload/netrw.vim | |
477 | 2665 < |
7 | 2666 which is loaded automatically at startup (assuming :set nocp). |
2667 | |
2668 1. Get the <Decho.vim> script, available as: | |
2669 | |
1621 | 2670 http://mysite.verizon.net/astronaut/vim/index.html#DECHO |
7 | 2671 or |
534 | 2672 http://vim.sourceforge.net/scripts/script.php?script_id=120 |
7 | 2673 |
1621 | 2674 It now comes as a "vimball"; if you're using vim 7.0 or earlier, |
2675 you'll need to update vimball, too. See | |
2676 http://mysite.verizon.net/astronaut/vim/index.html#VIMBALL | |
2677 | |
2678 2. Edit the <netrw.vim> file by typing: > | |
22 | 2679 |
2680 vim netrw.vim | |
7 | 2681 :DechoOn |
22 | 2682 :wq |
1621 | 2683 < |
2684 To restore to normal non-debugging behavior, re-edit <netrw.vim> | |
2685 and type > | |
7 | 2686 |
22 | 2687 vim netrw.vim |
2688 :DechoOff | |
2689 :wq | |
1621 | 2690 < |
22 | 2691 This command, provided by <Decho.vim>, will comment out all |
2692 Decho-debugging statements (Dfunc(), Dret(), Decho(), Dredir()). | |
2693 | |
1621 | 2694 3. Then bring up vim and attempt to evoke the problem by doing a |
2695 transfer or doing some browsing. A set of messages should appear | |
2696 concerning the steps that <netrw.vim> took in attempting to | |
2697 read/write your file over the network in a separate tab. | |
7 | 2698 |
1121 | 2699 To save the file, use > |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2700 :tabnext |
1121 | 2701 :set bt= |
2702 :w! DBG | |
2703 < Please send that information to <netrw.vim>'s maintainer, > | |
36 | 2704 NdrOchip at ScampbellPfamily.AbizM - NOSPAM |
1121 | 2705 < |
7 | 2706 ============================================================================== |
1121 | 2707 12. History *netrw-history* {{{1 |
7 | 2708 |
2426 | 2709 v140: Jul 27, 2010 * (Lech Lorens) unexpected change of window |
2420
6de9efd58dc0
Updated runtime files. New netrw plugin version.
Bram Moolenaar <bram@vim.org>
parents:
2413
diff
changeset
|
2710 v139: May 14, 2010 * when viewing remote directory listings and |
6de9efd58dc0
Updated runtime files. New netrw plugin version.
Bram Moolenaar <bram@vim.org>
parents:
2413
diff
changeset
|
2711 changing listing style, going to tree listing |
6de9efd58dc0
Updated runtime files. New netrw plugin version.
Bram Moolenaar <bram@vim.org>
parents:
2413
diff
changeset
|
2712 mode was issuing two rather useless messages |
6de9efd58dc0
Updated runtime files. New netrw plugin version.
Bram Moolenaar <bram@vim.org>
parents:
2413
diff
changeset
|
2713 about the buffer name. They have now been |
6de9efd58dc0
Updated runtime files. New netrw plugin version.
Bram Moolenaar <bram@vim.org>
parents:
2413
diff
changeset
|
2714 silenced. |
6de9efd58dc0
Updated runtime files. New netrw plugin version.
Bram Moolenaar <bram@vim.org>
parents:
2413
diff
changeset
|
2715 * (Jean Johner) with "behave mswin", clicking |
6de9efd58dc0
Updated runtime files. New netrw plugin version.
Bram Moolenaar <bram@vim.org>
parents:
2413
diff
changeset
|
2716 on a filename in wide mode opened a new file |
6de9efd58dc0
Updated runtime files. New netrw plugin version.
Bram Moolenaar <bram@vim.org>
parents:
2413
diff
changeset
|
2717 with a missing first letter |
6de9efd58dc0
Updated runtime files. New netrw plugin version.
Bram Moolenaar <bram@vim.org>
parents:
2413
diff
changeset
|
2718 * (Britton Kerin) wanted netrw listings to be |
6de9efd58dc0
Updated runtime files. New netrw plugin version.
Bram Moolenaar <bram@vim.org>
parents:
2413
diff
changeset
|
2719 buflisted; the |g:netrw_bufsettings| option |
6de9efd58dc0
Updated runtime files. New netrw plugin version.
Bram Moolenaar <bram@vim.org>
parents:
2413
diff
changeset
|
2720 permits that. |
2426 | 2721 Jun 18, 2010 * (Jan Steffens) added support for xz compression |
2722 Jun 23, 2010 * vimdiff dir1 dir2 now works | |
2723 Jul 27, 2010 * (John Orr) pointed out that the intended maparg | |
2420
6de9efd58dc0
Updated runtime files. New netrw plugin version.
Bram Moolenaar <bram@vim.org>
parents:
2413
diff
changeset
|
2724 test for gx was actually testing for g rather |
6de9efd58dc0
Updated runtime files. New netrw plugin version.
Bram Moolenaar <bram@vim.org>
parents:
2413
diff
changeset
|
2725 than gx. Fixed. |
2152 | 2726 v138: May 01, 2010 * added the bomb setting to the Save-Set-Restore |
2727 option handling (for Tony M) | |
2420
6de9efd58dc0
Updated runtime files. New netrw plugin version.
Bram Moolenaar <bram@vim.org>
parents:
2413
diff
changeset
|
2728 May 14, 2010 * (Bram Moolenaar) netrw optionally sets cursorline |
2152 | 2729 (and sometimes cursorcolumn) for its display. |
2730 This option setting was leaking through with | |
2731 remote file handling. | |
2732 v137: Dec 28, 2009 * modified the preview window handling for | |
2733 vertically split windows. The preview | |
2734 window will take up all but g:netrw_winsize | |
2735 columns of the original window; those | |
2736 g:netrw_winsize columns will be used for | |
2737 the netrw listing. | |
2738 * (Simon Dambe) removed "~" from | |
2739 |g:netrw_glob_escape| under Windows | |
2740 * (Bram Moolenaar) modified test for status bar | |
2741 click with leftmouse. Moved code to | |
2742 s:NetrwLeftmouse(). | |
2743 Feb 24, 2010 * (for Jean Johner) added insert-mode maps; one | |
2744 can get into insert mode with netrw via | |
2745 ctrl-o :e . | |
2746 Mar 15, 2010 * (Dominique Pellé) Directory with backslashes such | |
2747 as foo\bar were not being entered/left properly | |
2748 Mar 15, 2010 * Using :Explore .. and causing two FocusGained | |
2749 events caused the directory to change. Fixed. | |
2750 Mar 22, 2010 * Last fix caused problems for *//pat and */filepat | |
2751 searches. | |
2752 Mar 30, 2010 * With :set hidden and changing listing styles 8 | |
2753 times, the tree listing buffer was being marked | |
2754 as modified upon exit. Fixed. | |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2755 v136: Jan 14, 2009 * extended |g:Netrw_funcref| to also handle lists |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2756 of function references |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2757 Jan 14, 2009 * (reported by Marvin Renich) with spell check |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2758 enabled, some filenamess will still being |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2759 displayed as spelling errors. |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2760 Apr 13, 2009 * (Björn Winckler) writing a file using |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2761 remote scp caused syntax highlighting problem. |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2762 Solution: avoid syntax/syntax.vim's |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2763 au Filetype * syntax setting autocommand by |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2764 checking that the current buffer has the |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2765 netrw filetype before attempting a doau |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2766 in s:NetrwSafeOptions(). |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2767 Apr 14, 2009 * (asgeo1) suggested the "T" map (|netrw-T|) |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2768 Apr 14, 2009 * marking wasn't working on executable and |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2769 other special filenames |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2770 Apr 20, 2009 * (Dennis Benzinger) files opened via http have |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2771 their syntax filetype auto-detected |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2772 Jun 19, 2009 * (Yukihiro Nakadaira) help document improvements |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2773 Jul 22, 2009 * g:netrw_browse_split will honor the |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2774 |'equalalways'| setting. |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2775 Jul 29, 2009 * implemented "I" mapping to toggle banner |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2776 (this is experimental and still being debugged) |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2777 Sep 19, 2009 * (Mike McEwan) writes via ftp now send both |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2778 g:netrw_ftpmode and g:netrw_ftpextracmd (if the |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2779 latter exists) |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2780 Dec 02, 2009 * netrw uses vimgrep several places; it now uses |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2781 "noautocmd vimgrep" (should be speedier). |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2782 Dec 03, 2009 * changed back to using -source instead of -dump |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2783 for elinks-using commands. (requested by James |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2784 Vega and Karsten Hopp) |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2785 v135: Oct 29, 2008 * using |simplify()| on directory names |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2786 (supporting handling ".."s in directory names) |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2787 Oct 31, 2008 * added special file highlighting for core dumps |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2788 under Unix/Linux. The default sorting sequence |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2789 now also gives core dumps priority. |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2790 Nov 10, 2008 * uses a call to netrw#Nread() instead of Nread |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2791 to avoid having to use fnameescape() |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2792 * fixed a tree redrawing problem (open directory, |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2793 open subdir, close subdir, close dir) |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2794 Nov 19, 2008 * sprinkled some histdel("/",-1)s through the code |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2795 in an attempt to prevent netrw from changing |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2796 the search history. |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2797 Jan 02, 2009 * |g:Netrw_funcref| included |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2798 Jan 05, 2009 * Explore */ **/ *// **// all clear explorer |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2799 variables |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2800 Jan 05, 2009 * (Panagiotis Louridas) extended s:WinPath() |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2801 to remove cygdrive from non-cygwin Windows |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2802 paths. Improved the determination as to |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2803 whether or not to do so. |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2804 Jan 13, 2009 * included contains=@NoSpell in every syntax |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2805 group for syntax/netrw.vim . |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2806 v134: Sep 30, 2008 * (Sander Marechal) provided a bugfix involving |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2807 the use of the |netrw-t| command with a remote |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2808 directory. |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2809 Sep 30, 2008 * using "x" on a remote jpg was failing; fixed. |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2810 Oct 03, 2008 * bookmarks now go on a list and are stored to |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2811 the first directory on the |'runtimepath'| in |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2812 the hopes of making their retention reliable. |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2813 History now also goes to that directory. |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2814 Oct 07, 2008 * Included check that vim 7.0 or later is in use. |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2815 Oct 07, 2008 * Improved |g:netrw_retmap| handling. |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2816 Oct 12, 2008 * Based upon Sébastien Migniot's suggestion, if |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2817 cadaver isn't available then netrw will try to |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2818 use curl for the dav://... protocol. |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2819 Oct 13, 2008 * added @*/ to netrw buffers' |'iskeyword'|setting |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2820 This lets mf (|netrw-mf|) mark directories, links |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2821 and executables. |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2822 Oct 13, 2008 * avoids a second NetrwBrowse() refresh when |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2823 g:netrw_fastbrowse is <= 1 (slow, medium speed) |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2824 Oct 22, 2008 * |g:netrw_http_xcmd| may now be overridden |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2825 independently of |g:netrw_http_cmd|. |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2826 Oct 23, 2008 * [N] added to the various Explore commands to |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2827 let users specify the width/height of new |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2828 explorer windows, overriding |g:netrw_winsize|. |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2829 v133: Aug 10, 2008 * NetReadFixup() for win95 was missing some "a:"s |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2830 Aug 12, 2008 * (Jan Minář) an error condition in NetrwMethod() |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2831 wasn't being used, resulting in "b:netrw_fname |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2832 undefined" errors |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2833 Aug 12, 2008 * (François Ingeirest) asked that "hi link" be |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2834 changed to hi default link in the netrw syntax |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2835 files. |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2836 Aug 12, 2008 * using s:NetrwUnmarkList() more often. Filenames |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2837 were being left on the global list when removed |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2838 from the buffer-local lists. |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2839 Aug 14, 2008 * (Joshua Clayton) an errant extra ")" was left in |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2840 the rcp-handling portion of NetRead(). |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2841 Sep 03, 2008 * added |'cursorline'| highlighting to thin, long, |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2842 and tree displays. |
1702 | 2843 v132: Aug 06, 2008 * Fixed marked file-based obtain |
2844 Aug 08, 2008 * sourcing a file via ftp from a netrw-generated | |
2845 buffer (or any buffer with |'nobl'|) left an | |
2846 empty no-name buffer in its wake. Fixed. | |
1698 | 2847 v130: Jul 31, 2008 * trying out elinks/links for http://host/ |
2848 requests. One problem: in-page links | |
2849 (such as with ...#LABEL) are not supported | |
2850 * verified that Bram's modified netrwPlugin works | |
2851 Aug 01, 2008 * fixed a bug: when sourcing a file via ftp, the | |
2852 "filter window" was left behind. | |
2853 v129: Jul 31, 2008 * bug found in non-mouse enabled vim and some | |
2854 local maps | |
2855 v128: Jul 30, 2008 * much work done in using shellescape() and | |
2856 fnameescape() | |
1668 | 2857 v126: Jun 30, 2008 * after having gone to a remote directory, |
2858 <f1> was no longer taking one to the correct | |
2859 entry in the help (|netrw-quickhelp|). Fixed. | |
2860 Jul 01, 2008 * extracting the last filename from a wide listing | |
2861 missed the last letter when |'virtualedit'| not | |
2862 enabled. | |
2863 Jul 01, 2008 * vim foo/bar was creating [Scratch] buffers, | |
2864 where bar was also a directory | |
2865 Jul 01, 2008 * numerous additional changes were made to netrw | |
2866 to use fnameescape() and shellescape() instead | |
2867 of escape(). Not all changes have been tested | |
2868 as yet... | |
2869 Jul 01, 2008 * (James Vega reported) some problems with | |
2870 :NetrwSettings (due to no longer used setting | |
2871 variables). | |
2872 Jul 07, 2008 * Additional numerous changes to support security; | |
2873 shellescape(arg,1), etc. | |
1621 | 2874 v125: Apr 07, 2008 * (Cristian Rigamonti) CR provides a patch; he |
2875 noted that gx was failing since its call to | |
2876 netrw#NetBrowseX() wasn't updated to | |
2877 netrw#NetrwBrowseX(). | |
2878 * (Stanis Trendelenburg) ST provides a patch to | |
2879 supports davs: (dav + ssl) | |
2880 * (Rick Choi) noted that directory names comprised | |
2881 of three digits were not being displayed by | |
2882 the internal browser. Fixed. | |
2883 * (Erik Falor) provided a patch to handle problems | |
2884 with changing directory and |'acd'| option. | |
2885 * (James Vega, Teemu Likonen) noted that netrw | |
2886 wasn't handling multi-byte filenames/directories | |
2887 correctly. Fixed. | |
2888 * (Rick) found problem with g:netrw_maxfilenamelen | |
2889 being overridden. | |
2890 * (James Vega) pointed out that netrw was | |
2891 misidentifying all files in a symbolically linked | |
2892 directory as being symbolically linked | |
2893 themselves. This particular problem was fixed; | |
2894 however, there are now situations where | |
2895 symbolically linked files will not be detected. | |
2896 Really need an internal vim function to do this | |
2897 identification. | |
2898 Apr 17, 2008 * When g:netrw_keepdir==0, current directory | |
2899 doesn't necessarily equal b:netrw_curdir | |
2900 initially. Problem is due to the patch directly | |
2901 above. | |
2902 * Fixed qf to handle case where b:netrw_curdir | |
2903 isn't the same as the current directory under | |
2904 linux/macosx. | |
2905 * New: |netrw-mg| (apply vimgrep to marked files) | |
2906 May 05, 2008 * (Rick) pointed out that a "setlocal ts=32" was | |
2907 interfering with g:netrw_maxfilenamelen | |
2908 May 05, 2008 * (James Vega) a file inside a linked directory | |
2909 was showing up as a symbolic link itself. | |
2910 May 22, 2008 * symbolic links, fifos, and sockets are now | |
2911 indicated by a trailing @, |, or =, respectively. | |
2912 Jun 06, 2008 * Removed numerous bugs from the marked file | |
2913 move and copy. Tested these changes under | |
2914 Unix only thus far. | |
2915 * :Rexplore returns to the screen position in the | |
2916 netrw listing from whence the file was edited | |
2917 v124: Apr 02, 2008 * (Adrian Rollett) change the line supporting the | |
2918 "x" action for mac to use g:netrw_shq | |
2919 v123: Feb 27, 2008 * Marked files now keeps a "global" marked file | |
2920 list. The global marked file list is used to | |
2921 support tag processing and vimdiff'ing | |
2922 (|netrw-md| |netrw-mt|) | |
2923 * Been insuring that mm and mc works with various | |
2924 combinations of local and remote directories | |
2925 * (Stefan Bittner) http://.../ should always have | |
2926 filetype "html" -- fixed. | |
2927 * (Stefan Bittner) a "?" in a http://.../ request | |
2928 wasn't being handled correctly. Fixed by | |
2929 removing ? from default |g:netrw_tmpfile_escape|. | |
2930 * (Nico Weber) % codes in http://.../ requests | |
2931 weren't being handled correctly. Fixed by | |
2932 including % in default |g:netrw_fname_escape|. | |
2933 * (Stefan Bittner) attempts to update Buffers.Refresh | |
2934 were failing because locale use changed the menu | |
2935 names. I implemented a workaround. | |
2936 v122: Feb 12, 2008 * bugfix - first sorting sequence match now has | |
2937 priority | |
2938 Feb 14, 2008 * bugfix - sorting sequence was effectively ignoring | |
2939 sequencing priority of anything following '*' | |
2940 * toggling a marked file was showing incorrect list | |
2941 (list was correct, but displayed matches weren't) | |
2942 * |g:netrw_special_syntax| implemented | |
2943 v121: Feb 11, 2008 * Bram M reported that :e file ... :e . would not | |
2944 retain the alternate file. Fixed -- I hope! | |
2945 * bugfix -- apparently v120 broke an explicit | |
2946 :Explore dirname | |
2947 v120: Jan 21, 2008 * |netrw-mt| changed to allow for target selection | |
2948 based on whether or not word under cursor is a | |
2949 directory or file, or if cursor is in banner | |
2950 area. | |
2951 * |netrw-mh| included (hiding by marked-file suffix) | |
2952 * functions moved about a bit (improved | |
2953 categorization) | |
2954 * executable files now displayed with trailing (*) | |
2955 * symbolically linked files now displayed with | |
2956 trailing (@) | |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2957 * Somewhen, s:NetrwMarkFileMove() got damaged. It |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2958 * is now restored (missing an endif, for example). |
1621 | 2959 * |netrw-mu| implemented (unmarking marked files) |
2960 * many bugs have been removed from the marked file | |
2961 system (tnx to Mark S. for feedback) | |
2962 * |netrw-ms| implemented (sourcing marked files) | |
2963 * fixed use of P with tree listing style | |
2964 * multiple tree listing now supported | |
2965 * ./ suppressed | |
2966 * changed q -> qb (query bookmarks) | |
2967 * implemented |netrw-qf| | |
2968 * Explore now has four special list-generation | |
2969 modes: */filepat **/filepat | |
2970 *//pattern **//pattern | |
2971 * gh (|netrw-gh|) is a shortcut for toggling the | |
2972 hiding of files and directories beginning with a | |
2973 dot | |
2974 v119: Jan 10, 2008 * When g:netrw_keepdir is false, | |
2975 NetrwOptionsRestore() had a problem | |
2976 (Bill McCarthy) | |
2977 Jan 11, 2008 * Netrw now shows symbolic links with a trailing | |
2978 "@" and special highlighting. | |
2979 Jan 15, 2008 * Changed g:netrw_noretmap -> |g:netrw_retmap|. | |
2980 Changed: disabled by default at Bram's | |
2981 preference. | |
2982 v118: Jan 02, 2008 * Fixed a problem with Windows; | |
2983 :Explore c:/path/ would not work, | |
2984 but :Explore c:/path would. | |
2985 * Fixed a bug in s:NetrwOptionRestore() - lcd's | |
2986 argument wasn't being properly escaped so it | |
2987 wouldn't handle spaces in directory names. | |
2988 (Gary Johnson) | |
2989 v117: Jan 02, 2008 * Fixed a problem with P; had to include | |
2990 a b:netrw_curdir bypass (Bram Moolenaar) | |
2991 v116: Nov 27, 2007 * netrw#LocalBrowseCheck() has &ft=="netrw" | |
2992 check to prevent doing a directory listing | |
2993 (was getting unexpected directory refreshes | |
2994 in the middle of some function calls) | |
2995 * NetrwOptionRestore moved after e! filename | |
2996 in order to retain user options for editing | |
2997 in s:NetrwBrowseChgDir() | |
2998 Dec 12, 2007 * Bug fix -- netrw does a better job of retaining | |
2999 user options when editing files under the aegis | |
3000 of the browser | |
3001 v115: Oct 04, 2007 * Erik Remmelzwaal pointed out that the use of | |
3002 shellslash in s:GetTempfile() was incorrect | |
3003 Oct 11, 2007 * Tracked down and eliminated a bug with editing | |
3004 remote *.tar.gz and *.tar.bz2 files | |
3005 Oct 11, 2007 * g:netrw_localmovecmd wasn't being initialized | |
3006 properly, and g:netrw_localcopycmd was being | |
3007 overwritten. | |
3008 Oct 12, 2007 * Placed all :Rexplore and <2-leftmouse> setup | |
3009 in a new support function (s:SetRexDir()). | |
3010 Oct 15, 2007 * new: g:netrw_browse_split == 4; means <cr> | |
3011 based selection will use previous window | |
3012 Oct 20, 2007 * also checks on |'shellxquote'| to set g:netrw_shq | |
3013 Oct 24, 2007 * Explore handles path/**/filename | |
3014 Oct 27, 2007 * sourcing remote files often didn't work with ftp, | |
3015 turns out that b:netrw_method was undefined, so | |
3016 s:SaveBufVars and s:RestoreBufVars() fixed it. | |
3017 v114: Sep 28, 2007 * mT, the map that invokes tags, has been improved | |
3018 to support use of remote tags files. | |
3019 Oct 02, 2007 * changed Netrw menu to use more submenus | |
3020 v113: Sep 07, 2007 * worked out why the cursor position wasn't being | |
3021 saved and restored as intended after doing such | |
3022 things as deleting and renaming files. | |
3023 Sep 11, 2007 * Fixed bug which effectively disabled <c-l> and | |
3024 <c-h> maps | |
3025 Sep 18, 2007 * there used to be one NetrwOptionRestore() call at | |
3026 the end of the s:NetrwBrowseChgDir() function; | |
3027 they're now at the end of every if..elseif..else | |
3028 block. The edit-a-file one is not quite at the end | |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
3029 of its block; instead, it's just before the edit. |
1621 | 3030 Restores user options, then this new placement |
3031 allows ftplugins, autocmds, etc to change settings | |
3032 (ex. ftplugin/cpp.vim sets cindent). | |
3033 Sep 19, 2007 * changed all strlen() calls to use s:Strlen(), a | |
3034 function which handles utf-8 wide characters | |
3035 correctly. | |
3036 Sep 20, 2007 * (Nico Weber) the "x" command has been extended | |
3037 to Mac's OS/X (macunix); it now uses open to | |
3038 handle |netrw-x| browsing with special files. | |
3039 Sep 22, 2007 * Added g:netrw_noretmap to netrw at Tony M's | |
3040 request. | |
3041 * Included path to NetrwRemoteRmFile() | |
3042 v112: Aug 18, 2007 * added mx (|netrw-mx|) for executing arbitrary | |
3043 commands on marked files | |
3044 Aug 22, 2007 * more option save/restore work for | |
3045 s:NetrwBrowseChgDir(); s:NetrwOptionSave() | |
3046 and s:NetrwOptionRestore() now take a parameter | |
3047 specifying the type of variables to be used for | |
3048 saving and restoring (either "w:" or "s:") | |
3049 Sep 04, 2007 * added the :NetrwClean[!] command | |
3050 v111: Jul 25, 2007 * using Windows but not using Cygwin, netrw does a | |
3051 "file bufname" where the bufname uses /s | |
3052 instead of \s; Vim "fixes" it by changing the | |
3053 bufname to use \s anyway. This meant that | |
3054 NetrwGetBuffer() didn't find the appropriately | |
3055 named buffer, and so would generate a new | |
3056 buffer listing; hence the cursor would appear | |
3057 to have been moved when doing a preview. | |
3058 * added <2-leftmouse> map to return to netrw's | |
3059 browser display | |
3060 Aug 16, 2007 * added the mark-file system, including | |
3061 maps for mf mp mt mz and mu. Modifications | |
3062 made to maps for a D O and R to support | |
3063 marked files. | |
3064 v110: May 10, 2007 * added [ and ] maps to NetrwTreeListing | |
3065 May 25, 2007 * |g:netrw_preview| included | |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
3066 May 29, 2007 * modified netrw#NetBrowseX to consistently use |
1668 | 3067 g:netrw_shq instead of hardcoded quotes, |
1621 | 3068 and modified the snippet that sets up redir |
3069 so Windows machines use "nul" instead of | |
3070 "/dev/null". | |
3071 Jun 01, 2007 * fixed bug -- NetGetBuffer() wasn't always | |
3072 recognizing a buffer name match when it should, | |
3073 thus resulting in [Scratch] buffers. | |
3074 Jun 04, 2007 * Gary Johnson found a bugfix for the "c" mapping | |
3075 when the directory is to be made current but | |
3076 the name contains spaces. | |
1209 | 3077 v109: Mar 26, 2007 * if a directory name includes a "$" character, |
3078 Explore() will use expand() in an attempt to | |
3079 decipher the name. | |
3080 May 07, 2007 * g:netrw_use_errorwindow now allows one to | |
1621 | 3081 have error messages go to a reliable window |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
3082 or to use a less reliable but recallable |
1209 | 3083 echoerr method |
3084 May 07, 2007 * g:netrw_scpport and g:netrw_sshport support | |
1621 | 3085 use of -P and -p, respectively, to set port |
1209 | 3086 for scp/ssh. |
1121 | 3087 v108: Jan 03, 2007 * included preview map (|netrw-p|), supporting |
3088 remote browsing | |
3089 * netrw can now source remote files | |
3090 Jan 26, 2007 * Colton Jamieson noted that remote directory | |
3091 browsing did not support alternate port | |
3092 selection. This feature has now been extended | |
3093 to apply to all remote browsing commands via ssh. | |
3094 (list, remove/delete, rename) | |
3095 Jan 31, 2007 * Luis Florit reported that @* was an invalid | |
1209 | 3096 register. The @* register is now only saved and |
3097 restored if |'guioptions'| contains "a". | |
1121 | 3098 Feb 02, 2007 * Fixed a bug that cropped up when writing files |
3099 via scp using cygwin | |
3100 Feb 08, 2007 * tree listing mode managed to stop working again; | |
3101 fixed again! | |
3102 Feb 15, 2007 * Guido Van Hoecke reported that netrw didn't | |
1209 | 3103 handle browsing well with M$ ftp servers. He even |
1121 | 3104 set up a temporary account for me to test with |
3105 (thanks!). Netrw now can browse M$ ftp servers. | |
3106 v107: Oct 12, 2006 * bypassed the autowrite option | |
3107 Oct 24, 2006 * handles automatic decompression of *.gz and *.bz2 | |
3108 files | |
3109 Nov 03, 2006 * Explore will highlight matching files when | |
3110 **/pattern is used (and if the |'hls'| option | |
3111 is set) | |
3112 Nov 09, 2006 * a debugging line, when enabled, was inadvertently | |
3113 bringing up help instead of simply reporting on | |
3114 list contents | |
3115 Nov 21, 2006 * tree listing improved (cursor remains put) | |
3116 Nov 27, 2006 * fixed b:netrw_curdir bug when repeated "i"s were | |
3117 pressed. | |
3118 Dec 15, 2006 * considerable qty of changes, mostly to share more | |
3119 code between local and remote browsing. Includes | |
3120 support for tree-style listing for both remote | |
3121 and local browsing. | |
3122 Dec 15, 2006 * Included Peter Bengtsson's modifications to | |
3123 support the Amiga. | |
3124 v106: Sep 21, 2006 * removed old v:version<700 code as netrw now | |
3125 requires vim 7.0 | |
3126 * worked around a bug where register * was | |
3127 overwritten during local browsing | |
3128 v104: Sep 05, 2006 * as suggested by Rodolfo Borges, :Explore and | |
3129 variants will position the cursor on the file | |
3130 just having been edited | |
3131 * changed default |g:netrw_sort_sequence| order | |
3132 * changed b, Nb to simply mb (see |netrw-mb|) | |
3133 * changed B, NB to simply gb (see |netrw-gb|) | |
3134 * tree listing style (see |g:netrw_liststyle|) | |
3135 * attempts to retain the alternate file | |
3136 v103: Jul 26, 2006 * used Yakov Lerner's tip#1289 to improve netrw | |
3137 error message display | |
3138 * wide listings didn't handle files with backslashes | |
3139 in their names properly. A symptom was an | |
3140 inability to open files. | |
3141 Aug 09, 2006 * included "t" mapping for opening tabbed windows, | |
3142 both for remote and local browsing | |
3143 * changed netrw_longlist to netrw_liststyle | |
3144 Aug 15, 2006 * fixed one of the NB maps | |
3145 Aug 22, 2006 * changed *Explore commands to use -nargs=* instead | |
3146 of -nargs=?. Allows both -complete=dir _and_ the | |
3147 starstar arguments to work (-nargs=? seems to | |
3148 require one or the other). | |
3149 Aug 23, 2006 * copied all w:.. variables across splits to | |
3150 new windows | |
3151 Aug 25, 2006 * when g:netrw_browsex_viewer was '-' | |
3152 (see |g:netrw_browsex_viewer|) it wasn't causing | |
3153 netrwFileHandlers#Invoke() to be called as it | |
3154 was expected to. (tnx Steve Dugaro) | |
3155 Aug 29, 2006 * changed NetBrowseX() to use "setlocal ... noswf" | |
3156 instead of "set ... noswf" (tnx Benji Fisher) | |
3157 Aug 31, 2006 * tabs and fastbrowse<=1 didn't work together. | |
3158 v102: Jun 15, 2006 * chgd netrwPlugin to call netrw#LocalBrowseCheck() | |
3159 * bugfix: g:netrw_keepdir==0 had stopped working | |
3160 Jul 06, 2006 * bugfix: NetOptionSave/Restore now saves/restores | |
3161 the unnamed register (|registers|) | |
3162 Jul 07, 2006 * |g:netrw_menu| support included | |
3163 Jul 13, 2006 * :Texplore command implemented | |
3164 Jul 17, 2006 * NetSplit and (Local|Net)BrowseChgDir() were both | |
3165 splitting windows. This affected o, v, and | |
3166 g:netrw_browse_split. | |
3167 Jul 20, 2006 * works around wildignore setting (was causing | |
3168 netrw's local browser not to list wildignore'd | |
3169 files) | |
3170 Jul 24, 2006 * <leftmouse> acts as a <cr> for selecting a file | |
3171 <rightmouse> acts as a <del> for deleting a file | |
3172 v100: May 14, 2006 * when using Windows and shell==cmd.exe, the | |
3173 default for g:netrw_ignorenetrc is now 1 | |
3174 * bugfix: unwanted ^Ms now removed | |
3175 (affected shell==cmd.exe - Windows) | |
3176 * added Bookmarks and History to the menu | |
3177 * an error message about non-existing | |
3178 w:netrw_longlist was appearing during attempts to | |
3179 Explore (fixed) | |
3180 * g:netrw_shq now available to make netrw use | |
3181 specified style of quotes for commands | |
3182 May 29, 2006 * user NFH_*() functions were inadvertently being | |
3183 ignored | |
3184 * fixed a Windows non-cygwin ftp handling problem. | |
3185 * hiding pattern candidate separators included some | |
3186 characters it shouldn't have (tnx to Osei Poku) | |
3187 Jun 01, 2006 * for browsing, netrw was supposed to use "dir" | |
3188 instead of "ls -lF" when using | |
3189 ftp+non-cygwin+windows. Fixed. | |
3190 * an inadvertently left-in-place debugging statement | |
3191 was preventing use of the "x" key with browsing. | |
3192 Jun 05, 2006 * g:netrw_nogx available to prevent making the gx | |
3193 map (see |g:netrw_nogx|) | |
1209 | 3194 * bugfix, Explore wouldn't change directory |
1121 | 3195 properly (vim ., :Explore subdirname) |
3196 Jun 06, 2006 * moved history to 2nd line in Netrw menu | |
3197 * fixed delete for unix-based systems | |
3198 Jun 07, 2006 * x key now works for windows-noncygwin-ftp | |
3199 Jun 08, 2006 * Explore */pat and **//pat now wraps | |
3200 v99: May 09, 2006 * g:netrw_browse_split=3 for opening files in new | |
3201 tabs implemented. | |
3202 May 12, 2006 * deletes temporary file at end of NetRead() | |
3203 * visual mode based Obtain implemented | |
3204 * added -complete=dir to the various Explore | |
3205 commands | |
3206 v98: May 02, 2006 * the "p" key didn't work properly when the browsing | |
3207 directory name had spaces in it. | |
3208 v97: May 01, 2006 * exists("&acd") now used to determine if | |
3209 the 'acd' option exists | |
3210 * "obtain" now works again under Windows | |
1621 | 3211 v96: * bugfix - the |'acd'| option is not always defined |
3212 but is now bypassed only when it is | |
3213 v95: * bugfix - Hiding mode worked correctly (don't show | |
3214 any file matching any of the g:netrw_hide | |
3215 patterns), but showing mode was showing only those | |
3216 files that didn't match any of the g:netrw_hide | |
3217 patterns. Instead, it now shows all files that | |
3218 match any of the g:netrw_hide patterns (the | |
3219 difference between a logical and and logical or). | |
3220 v94: * bugfix - a Decho() had a missing quote; only | |
3221 affects things when debugging was enabled. | |
3222 v93: * bugfix - removed FocusGained event from causing a | |
3223 slow-browser refresh for Windows | |
3224 v92: * :Explore **//pattern implemented | |
3225 (**/filepattern was already taken) | |
3226 v91: * :Explore */pattern implemented | |
3227 * |'acd'| option bypassed | |
3228 v90: * mark ', as suggested by Yegappan Lakshmanan, used | |
3229 to help guarantee entry into the jump list when | |
3230 appropriate. | |
3231 * <s-down> and <s-up> are no longer defined until a | |
3232 :Explore **/pattern is used (if the user already | |
3233 has a map for them). They will be defined for new | |
3234 browser windows from that point forward. | |
3235 v89: * A <s-down>, <s-up>, :Nexplore, or a :Pexplore | |
3236 without having first done an :Explore **/pattern | |
3237 (see |netrw-starstar|) caused | |
3238 a lot of unhelpful error messages to appear | |
3239 v88: * moved DrChip.Netrw menu to Netrw. Now has | |
3240 priority 80 by default. | |
3241 g:NetrwTopLvlMenu == "Netrw" and can be changed | |
3242 by the user to suit. The priority is given by | |
3243 g:NetrwMenuPriority. | |
3244 * Changed filetype for browser displays from | |
3245 netrwlist to netrw. | |
3246 v87: * bug fix -- menus were partially disappearing | |
3247 v85: * bug fix -- missing an endif | |
3248 * bug fix -- handles spaces in names and directories | |
3249 when using ftp-based browsing | |
3250 v83: * disabled stop-acd handling; the change in directory | |
3251 handling may allow acd to be used again. | |
3252 * D was refusing to delete remote files/directories | |
3253 in wide listing mode. | |
3254 v81: * FocusGained also used to refresh/wipe local browser | |
3255 directory buffers | |
3256 * (bugfix) netrw was leaving [Scratch] buffers behind | |
3257 when the user had the "hidden" option set. The | |
3258 'hidden' option is now bypassed. | |
3259 v80: * ShellCmdPost event used in conjunction with | |
3260 g:netrw_fastbrowse to refresh/wipe local browser | |
3261 directory buffers. | |
3262 v79: * directories are now displayed with nowrap | |
3263 * (bugfix) if the column width was smaller than the | |
3264 largest file's name, then netrw would hang when | |
3265 using wide-listing mode - fixed | |
3266 * g:netrw_fastbrowse introduced | |
3267 v78: * progress has been made on allowing spaces inside | |
3268 directory names for remote work (reading, writing, | |
3269 browsing). (scp) | |
3270 v77: * Mikolaj Machowski fixed a bug in a substitute cmd | |
3271 * g:netrw_browsex_viewer implemented | |
3272 * Mikolaj Machowski pointed out that gnome-open is | |
3273 often executable under KDE systems, although it is | |
3274 effectively not functional. NetBrowseX now looks | |
3275 for "kicker" as a running process to determine if | |
3276 KDE is actually running. | |
3277 * Explorer's O functionality was inadvertently left | |
3278 out. Netrw now does the same thing, but with the | |
3279 "P" key. | |
3280 * added g:netrw_browse_split option | |
3281 * fixed a bug where the directory contained a "." but | |
3282 the file didn't (was treating the dirname from "." | |
3283 onwards as a suffix) | |
3284 v76: * "directory is missing" error message now restores | |
3285 echo highlighting | |
3286 v75: * file://... now conforms to RFC2396 (thanks to | |
3287 S. Zacchiroli) | |
3288 * if the binary option is set, then NetWrite() will | |
3289 only write the whole file (line numbers don't make | |
3290 sense with this). Supports writing of tar and zip | |
3291 files. | |
3292 v74: * bugfix (vim, then :Explore) now works | |
3293 * ctrl-L keeps cursor at same screen location (both | |
3294 local and remote browsing) | |
3295 * netrw now can read remote zip and tar files | |
3296 * Obtain now uses WinXP ftp+.netrc successfully | |
3297 v73: * bugfix -- scp://host/path/file was getting named | |
3298 incorrectly | |
3299 * netrw detects use of earlier-than-7.0 version of | |
3300 vim and issues a pertinent error message. | |
3301 * netrwSettings.vim is now uses autoloading. Only | |
3302 <netrwPlugin.vim> is needed as a pure plugin | |
3303 (ie. always loaded). | |
3304 v72: * bugfix -- formerly, one could prevent the loading | |
3305 of netrw by "let g:loaded_netrw=1"; when | |
3306 autoloading became supported, this feature was | |
3307 lost. It is now restored. | |
3308 v71: * bugfix -- made some "set nomodifiable"s into | |
3309 setlocal variants (allows :e somenewfile to be | |
3310 modifiable as usual) | |
3311 * NetrwSettings calls a netrw function, thereby | |
3312 assuring that netrw has loaded. However, if netrw | |
3313 does not load for whatever reason, then | |
3314 NetrwSettings will now issue a warning message. | |
3315 * For what reason I don't recall, when wget and fetch | |
3316 are both not present, and an attempt to read a | |
3317 http://... url is made, netrw exited. It now only | |
3318 returns. | |
3319 * When ch=1, on the second and subsequent uses of | |
3320 browsing Netrw would issue a blank line to clear | |
3321 the echo'd messages. This caused an annoying | |
3322 "Hit-Enter" prompt; now a blank line message | |
3323 is echo'd only if &ch>1. | |
3324 v70: * when using |netrw-O|, the "Obtaining filename" | |
3325 message is now shown using |hl-User9|. If User9 | |
3326 has not been defined, netrw itself will define it. | |
3327 v69: * Bugfix: win95/98 machines were experiencing a | |
3328 "E121: Undefined variable: g:netrw_win95ftp" | |
3329 message | |
3330 v68: * double-click-leftmouse selects word under mouse | |
3331 v67: * Passwords which contain blanks will now be | |
3332 surrounded by double-quotes automatically (Yongwei) | |
3333 v66: * Netrw now seems to work with a few more Windows | |
3334 situations | |
3335 * O now obtains a file: remote browsing | |
3336 file -> local copy, locally browsing | |
3337 file -> current directory (see :pwd) | |
3338 * i now cycles between thin, long, and wide listing | |
3339 styles | |
3340 * NB and Nb are maps that are always available; | |
3341 corresponding B and b maps are only available when | |
3342 not using wide listing in order to allow them to | |
3343 be used for motions | |
3344 v65: * Browser functions now use NetOptionSave/Restore; in | |
3345 particular, netrw now works around the report | |
3346 setting | |
3347 v64: * Bugfix - browsing a "/" directory (Unix) yielded | |
3348 buffers named "[Scratch]" instead of "/" | |
3349 * Bugfix - remote browsing with ftp was omitting | |
3350 the ./ and ../ | |
3351 v63: * netrw now takes advantage of autoload (needs 7.0) | |
3352 * Bugfix - using r (to reverse sort) working again | |
3353 v62: * Bugfix - spaces allowed again in directory names | |
3354 with g:netrw_keepdir=0. In fact, I've tested netrw | |
3355 with most ANSI punctuation marks for directory | |
3356 names. | |
3357 * Bugfix - NetrwSettings gave errors when | |
3358 g:netrw_silent had not be set. | |
3359 v61: * Document upgrade -- netrw variable-based settings | |
3360 all should have tags. Supports NetrwSettings cmd. | |
3361 * Several important variables are window-oriented. | |
3362 Netrw has to transfer these across a window split. | |
3363 See s:BufWinVars() and s:UseBufWinVars(). | |
3364 v60: * When using the i map to switch between long and | |
3365 short listings, netrw will now keep cursor on same | |
3366 line | |
3367 * "Match # of #" now uses status line | |
3368 * :Explore **/*.c will now work from a | |
3369 non-netrw-browser window | |
3370 * :Explore **/patterns can now be run in separate | |
3371 browser windows | |
3372 * active banner (hit <cr> will cause various things | |
3373 to happen) | |
3374 v59: * bugfix -- another keepalt work-around installed | |
3375 (for vim6.3) | |
3376 * "Match # of #" for Explore **/pattern matches | |
3377 v58: * Explore and relatives can now handle | |
3378 **/somefilepattern (v7) | |
3379 * Nexplore and Pexplore introduced (v7). shift-down | |
3380 and shift-up cursor keys will invoke Nexplore and | |
3381 Pexplore, respectively. | |
3382 * bug fixed with o and v | |
3383 * autochdir only worked around for vim when it has | |
3384 been compiled with either | |
3385 |+netbeans_intg| or |+sun_workshop| | |
3386 * Under Windows, all directories and files were | |
3387 being preceded with a "/" when local browsing. | |
3388 Fixed. | |
3389 * When: syntax highlighting is off, laststatus=2, and | |
3390 remote browsing is used, sometimes the laststatus | |
3391 highlighting bleeds into the entire display. Work | |
3392 around - do an extra redraw in that case. | |
3393 * Bugfix: when g:netrw_keepdir=0, due to re-use of | |
3394 buffers, netrw didn't change the directory when it | |
3395 should've | |
3396 * Bugfix: D and R commands work again | |
3397 v57: * Explore and relatives can now handle RO files | |
3398 * reverse sort restored with vim7's sort command | |
3399 * g:netrw_keepdir now being used to keep the current | |
3400 directory unchanged as intended (sense change) | |
3401 * vim 6.3 still supported | |
3402 v56: * LocalBrowse now saves autochdir setting, unsets it, | |
3403 and restores it before returning. | |
3404 * using vim's rename() instead of system + | |
3405 local_rename variable | |
3406 * avoids changing directory when g:netrw_keepdir is | |
3407 false | |
3408 v55: * -bar used with :Explore :Sexplore etc to allow | |
3409 multiple commands to be separated by |s | |
3410 * browser listings now use the "nowrap" option | |
3411 * browser: some unuseful error messages now | |
3412 suppressed | |
3413 v54: * For backwards compatibility, Explore and Sexplore | |
3414 have been implemented. In addition, Hexplore and | |
3415 Vexplore commands are available, too. | |
3416 * <amatch> used instead of <afile> in the | |
3417 transparency support (BufReadCmd, FileReadCmd, | |
3418 FileWriteCmd) | |
3419 * ***netrw*** prepended to various error messages | |
3420 netrw may emit | |
3421 * g:netrw_port used instead of b:netrw_port for scp | |
3422 * any leading [:#] is removed from port numbers | |
3423 v53: * backslashes as well as slashes placed in various | |
3424 patterns (ex. g:netrw_sort_sequence) to better | |
3425 support Windows | |
3426 v52: * nonumber'ing now set for browsing buffers | |
3427 * when the hiding list hid all files, error messages | |
3428 ensued. Fixed | |
3429 * when browsing, swf is set, but directory is not | |
3430 set, when netrw was attempting to restore options, | |
3431 vim wanted to save a swapfile to a local directory | |
3432 using an url-style path. Fixed | |
3433 v51: * cygwin detection now automated | |
3434 (using windows and &shell is bash) | |
3435 * customizable browser "file" rejection patterns | |
3436 * directory history | |
3437 * :[range]w url now supported (ie. netrw uses a | |
3438 FileWriteCmd event) | |
3439 * error messages have a "Press <cr> to continue" to | |
3440 allow them to be seen | |
3441 * directory browser displays no longer bother the | |
3442 swapfile | |
3443 * u/U commands to go up and down the history stack | |
3444 * history stack may be saved with viminfo with it's | |
3445 "!" option | |
3446 * bugfixes associated with unwanted [No Files] | |
3447 entries | |
3448 v50: * directories now displayed using buftype=nofile; | |
3449 should keep the directory names as-is | |
3450 * attempts to remove empty "[No File]" buffers | |
3451 leftover from :file ..name.. commands | |
3452 * bugfix: a "caps-lock" editing difficulty left in | |
3453 v49 was fixed | |
3454 * syntax highlighting for "Showing:" the hiding list | |
3455 included | |
3456 * bookmarks can now be retained if "!" is in the | |
3457 viminfo option | |
3458 v49: * will use ftp for http://.../ browsing | |
3459 v48: * One may use ftp to do remote host file browsing | |
3460 * (windows and !cygwin) remote browsing with ftp can | |
3461 now use the "dir" command internally to provide | |
3462 listings | |
3463 * g:netrw_keepdir now allows one to keep the initial | |
3464 current directory as the current directory | |
3465 (normally the local file browser makes the | |
3466 currently viewed directory the current directory) | |
3467 * g:netrw_alto and g:netrw_altv now support | |
3468 alternate placement of windows started with o or v | |
3469 * Nread ? and Nwrite ? now uses echomsg (instead of | |
3470 echo) so :messages can repeat showing the help | |
3471 * bugfix: avoids problems with partial matches of | |
3472 directory names to prior buffers with longer names | |
3473 * one can suppress error messages with g:netrw_quiet | |
3474 ctrl-h used | |
3475 * instead of <Leader>h for editing hiding list one | |
3476 may edit the sorting sequence with the S map, which | |
3477 now allows confirmation of deletion with | |
3478 [y(es) n(o) a(ll) q(uit)] | |
3479 * the "x" map now handles special file viewing with: | |
3480 (windows) rundll32 url.dll (gnome) gnome-open (kde) | |
3481 kfmclient If none of these are on the executable | |
3482 path, then netrwFileHandlers.vim is used. | |
3483 * directory bookmarking during both local and remote | |
3484 browsing implemented | |
3485 * one may view all, use the hiding list to suppress, | |
3486 or use the hiding list to show-only remote and | |
3487 local file/directory listings | |
3488 * improved unusual file and directory name handling | |
3489 preview window support | |
3490 v47: * now handles local browsing. | |
3491 v46: * now handles remote browsing | |
3492 * g:netrw_silent (if 1) will cause all transfers to | |
3493 be silent | |
3494 v45: * made the [user@]hostname:path form a bit more | |
3495 restrictive to better handle errors in using | |
3496 protocols (e.g. scp:usr@host:file was being | |
3497 recognized as an rcp request) | |
3498 v44: * changed from "rsync -a" to just "rsync" | |
3499 * somehow an editing error messed up the test to | |
3500 recognize use of the fetch method for NetRead. | |
3501 * more debugging statements included | |
3502 v43: * moved "Explanation" comments to <pi_netrw.txt> help | |
3503 file as "Network Reference" (|netrw-ref|) | |
3504 * <netrw.vim> now uses Dfunc() Decho() and Dret() for | |
3505 debugging | |
3506 * removed superfluous NetRestorePosn() calls | |
3507 v42: * now does BufReadPre and BufReadPost events on | |
3508 file:///* and file://localhost/* | |
3509 v41: * installed file:///* and file://localhost/* handling | |
3510 v40: * prevents redraw when a protocol error occurs so | |
3511 that the user may see it | |
3512 v39: * sftp support | |
3513 v38: * Now uses NetRestorePosn() calls with Nread/Nwrite | |
3514 commands | |
3515 * Temporary files now removed via bwipe! instead of | |
3516 bwipe (thanks to Dave Roberts) | |
3517 v37: * Claar's modifications which test if ftp is | |
3518 successful, otherwise give an error message | |
3519 * After a read, the alternate file was pointing to | |
3520 the temp file. The temp file buffer is now wiped | |
3521 out. | |
3522 * removed silent from transfer methods so user can | |
3523 see what's happening | |
7 | 3524 |
3525 | |
3526 ============================================================================== | |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
3527 13. Todo *netrw-todo* {{{1 |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
3528 |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
3529 07/29/09 : banner :|g:netrw_banner| can be used to suppress the |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
3530 suppression banner. This feature is new and experimental, |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
3531 so its in the process of being debugged. |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
3532 09/04/09 : "gp" : See if it can be made to work for remote systems. |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
3533 : See if it can be made to work with marked files. |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
3534 |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
3535 ============================================================================== |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
3536 14. Credits *netrw-credits* {{{1 |
7 | 3537 |
3538 Vim editor by Bram Moolenaar (Thanks, Bram!) | |
3539 dav support by C Campbell | |
3540 fetch support by Bram Moolenaar and C Campbell | |
534 | 3541 ftp support by C Campbell <NdrOchip@ScampbellPfamily.AbizM> |
7 | 3542 http support by Bram Moolenaar <bram@moolenaar.net> |
3543 rcp | |
3544 rsync support by C Campbell (suggested by Erik Warendorph) | |
3545 scp support by raf <raf@comdyn.com.au> | |
3546 sftp support by C Campbell | |
3547 | |
3548 inputsecret(), BufReadCmd, BufWriteCmd contributed by C Campbell | |
3549 | |
3550 Jérôme Augé -- also using new buffer method with ftp+.netrc | |
534 | 3551 Bram Moolenaar -- obviously vim itself, :e and v:cmdarg use, |
1209 | 3552 fetch,... |
7 | 3553 Yasuhiro Matsumoto -- pointing out undo+0r problem and a solution |
3554 Erik Warendorph -- for several suggestions (g:netrw_..._cmd | |
3555 variables, rsync etc) | |
534 | 3556 Doug Claar -- modifications to test for success with ftp |
1209 | 3557 operation |
7 | 3558 |
3559 ============================================================================== | |
1621 | 3560 Modelines: {{{1 |
459 | 3561 vim:tw=78:ts=8:ft=help:norl:fdm=marker |