Mercurial > vim
annotate runtime/doc/pi_netrw.txt @ 26300:0374f55a16be v8.2.3681
patch 8.2.3681: cannot drag popup window after click on a status line
Commit: https://github.com/vim/vim/commit/bfc5786a61693aaadc3e45f80a2f147c3a6711a3
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Nov 26 15:57:40 2021 +0000
patch 8.2.3681: cannot drag popup window after click on a status line
Problem: Cannot drag popup window after click on a status line. (Sergey
Vlasov)
Solution: Reset on_status_line. (closes #9221)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 26 Nov 2021 17:00:04 +0100 |
parents | d4faa2c5211b |
children | d19b7aee1925 |
rev | line source |
---|---|
25700 | 1 *pi_netrw.txt* For Vim version 8.2. Last change: 2021 Aug 16 |
4339 | 2 |
3 ------------------------------------------------ | |
4 NETRW REFERENCE MANUAL by Charles E. Campbell | |
5 ------------------------------------------------ | |
19099 | 6 Author: Charles E. Campbell <NcampObell@SdrPchip.AorgM-NOSPAM> |
2033
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 |
12785 | 9 Copyright: Copyright (C) 2017 Charles E Campbell *netrw-copyright* |
3456 | 10 The VIM LICENSE applies to the files in this package, including |
11 netrw.vim, pi_netrw.txt, netrwFileHandlers.vim, netrwSettings.vim, and | |
12 syntax/netrw.vim. Like anything else that's free, netrw.vim and its | |
13 associated files are provided *as is* and comes with no warranty of | |
14 any kind, either expressed or implied. No guarantees of | |
15 merchantability. No guarantees of suitability for any purpose. By | |
16 using this plugin, you agree that in no event will the copyright | |
17 holder be liable for any damages resulting from the use of this | |
18 software. Use at your own risk! | |
7 | 19 |
6476 | 20 *netrw* |
2152 | 21 *dav* *ftp* *netrw-file* *rcp* *scp* |
22 *davs* *http* *netrw.vim* *rsync* *sftp* | |
6476 | 23 *fetch* *network* |
7 | 24 |
25 ============================================================================== | |
1621 | 26 1. Contents *netrw-contents* {{{1 |
7 | 27 |
4339 | 28 1. Contents..............................................|netrw-contents| |
29 2. Starting With Netrw...................................|netrw-start| | |
30 3. Netrw Reference.......................................|netrw-ref| | |
31 EXTERNAL APPLICATIONS AND PROTOCOLS.................|netrw-externapp| | |
32 READING.............................................|netrw-read| | |
33 WRITING.............................................|netrw-write| | |
34 SOURCING............................................|netrw-source| | |
35 DIRECTORY LISTING...................................|netrw-dirlist| | |
36 CHANGING THE USERID AND PASSWORD....................|netrw-chgup| | |
37 VARIABLES AND SETTINGS..............................|netrw-variables| | |
38 PATHS...............................................|netrw-path| | |
39 4. Network-Oriented File Transfer........................|netrw-xfer| | |
40 NETRC...............................................|netrw-netrc| | |
41 PASSWORD............................................|netrw-passwd| | |
42 5. Activation............................................|netrw-activate| | |
43 6. Transparent Remote File Editing.......................|netrw-transparent| | |
44 7. Ex Commands...........................................|netrw-ex| | |
45 8. Variables and Options.................................|netrw-variables| | |
46 9. Browsing..............................................|netrw-browse| | |
47 Introduction To Browsing............................|netrw-intro-browse| | |
48 Quick Reference: Maps...............................|netrw-browse-maps| | |
49 Quick Reference: Commands...........................|netrw-browse-cmds| | |
8148
f5da459c5698
commit https://github.com/vim/vim/commit/e0fa3742ead676a3074a10edadbc955e1a89153d
Christian Brabandt <cb@256bit.org>
parents:
7188
diff
changeset
|
50 Banner Display......................................|netrw-I| |
4339 | 51 Bookmarking A Directory.............................|netrw-mb| |
52 Browsing............................................|netrw-cr| | |
8148
f5da459c5698
commit https://github.com/vim/vim/commit/e0fa3742ead676a3074a10edadbc955e1a89153d
Christian Brabandt <cb@256bit.org>
parents:
7188
diff
changeset
|
53 Squeezing the Current Tree-Listing Directory........|netrw-s-cr| |
4339 | 54 Browsing With A Horizontally Split Window...........|netrw-o| |
55 Browsing With A New Tab.............................|netrw-t| | |
56 Browsing With A Vertically Split Window.............|netrw-v| | |
25700 | 57 Change File Permission..............................|netrw-gp| |
4339 | 58 Change Listing Style.(thin wide long tree)..........|netrw-i| |
59 Changing To A Bookmarked Directory..................|netrw-gb| | |
60 Changing To A Predecessor Directory.................|netrw-u| | |
61 Changing To A Successor Directory...................|netrw-U| | |
6476 | 62 Customizing Browsing With A Special Handler.........|netrw-x| |
4339 | 63 Deleting Bookmarks..................................|netrw-mB| |
64 Deleting Files Or Directories.......................|netrw-D| | |
65 Directory Exploring Commands........................|netrw-explore| | |
66 Exploring With Stars and Patterns...................|netrw-star| | |
67 Displaying Information About File...................|netrw-qf| | |
68 Edit File Or Directory Hiding List..................|netrw-ctrl-h| | |
69 Editing The Sorting Sequence........................|netrw-S| | |
70 Forcing treatment as a file or directory............|netrw-gd| |netrw-gf| | |
71 Going Up............................................|netrw--| | |
72 Hiding Files Or Directories.........................|netrw-a| | |
73 Improving Browsing..................................|netrw-ssh-hack| | |
74 Listing Bookmarks And History.......................|netrw-qb| | |
75 Making A New Directory..............................|netrw-d| | |
12785 | 76 Making The Browsing Directory The Current Directory.|netrw-cd| |
4339 | 77 Marking Files.......................................|netrw-mf| |
78 Unmarking Files.....................................|netrw-mF| | |
8148
f5da459c5698
commit https://github.com/vim/vim/commit/e0fa3742ead676a3074a10edadbc955e1a89153d
Christian Brabandt <cb@256bit.org>
parents:
7188
diff
changeset
|
79 Marking Files By Location List......................|netrw-qL| |
4339 | 80 Marking Files By QuickFix List......................|netrw-qF| |
81 Marking Files By Regular Expression.................|netrw-mr| | |
6476 | 82 Marked Files: Arbitrary Shell Command...............|netrw-mx| |
83 Marked Files: Arbitrary Shell Command, En Bloc......|netrw-mX| | |
84 Marked Files: Arbitrary Vim Command.................|netrw-mv| | |
8148
f5da459c5698
commit https://github.com/vim/vim/commit/e0fa3742ead676a3074a10edadbc955e1a89153d
Christian Brabandt <cb@256bit.org>
parents:
7188
diff
changeset
|
85 Marked Files: Argument List.........................|netrw-ma| |netrw-mA| |
12785 | 86 Marked Files: Buffer List...........................|netrw-cb| |netrw-cB| |
4339 | 87 Marked Files: Compression And Decompression.........|netrw-mz| |
88 Marked Files: Copying...............................|netrw-mc| | |
89 Marked Files: Diff..................................|netrw-md| | |
90 Marked Files: Editing...............................|netrw-me| | |
91 Marked Files: Grep..................................|netrw-mg| | |
92 Marked Files: Hiding and Unhiding by Suffix.........|netrw-mh| | |
93 Marked Files: Moving................................|netrw-mm| | |
94 Marked Files: Printing..............................|netrw-mp| | |
95 Marked Files: Sourcing..............................|netrw-ms| | |
96 Marked Files: Setting the Target Directory..........|netrw-mt| | |
97 Marked Files: Tagging...............................|netrw-mT| | |
98 Marked Files: Target Directory Using Bookmarks......|netrw-Tb| | |
99 Marked Files: Target Directory Using History........|netrw-Th| | |
100 Marked Files: Unmarking.............................|netrw-mu| | |
101 Netrw Browser Variables.............................|netrw-browser-var| | |
102 Netrw Browsing And Option Incompatibilities.........|netrw-incompatible| | |
103 Netrw Settings Window...............................|netrw-settings-window| | |
104 Obtaining A File....................................|netrw-O| | |
105 Preview Window......................................|netrw-p| | |
106 Previous Window.....................................|netrw-P| | |
107 Refreshing The Listing..............................|netrw-ctrl-l| | |
108 Reversing Sorting Order.............................|netrw-r| | |
109 Renaming Files Or Directories.......................|netrw-R| | |
110 Selecting Sorting Style.............................|netrw-s| | |
111 Setting Editing Window..............................|netrw-C| | |
112 10. Problems and Fixes....................................|netrw-problems| | |
113 11. Debugging Netrw Itself................................|netrw-debug| | |
114 12. History...............................................|netrw-history| | |
115 13. Todo..................................................|netrw-todo| | |
116 14. Credits...............................................|netrw-credits| | |
7 | 117 |
118 ============================================================================== | |
1621 | 119 2. Starting With Netrw *netrw-start* {{{1 |
120 | |
121 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
|
122 local browsing easy! First, make sure that you have plugins enabled, so |
1621 | 123 you'll need to have at least the following in your <.vimrc>: |
124 (or see |netrw-activate|) > | |
650 | 125 |
1121 | 126 set nocp " 'compatible' is not set |
127 filetype plugin on " plugins are enabled | |
650 | 128 < |
129 (see |'cp'| and |:filetype-plugin-on|) | |
130 | |
131 Netrw supports "transparent" editing of files on other machines using urls | |
132 (see |netrw-transparent|). As an example of this, let's assume you have an | |
1621 | 133 account on some other machine; if you can use scp, try: > |
650 | 134 |
135 vim scp://hostname/path/to/file | |
136 < | |
1621 | 137 Want to make ssh/scp easier to use? Check out |netrw-ssh-hack|! |
138 | |
139 So, what if you have ftp, not ssh/scp? That's easy, too; try > | |
650 | 140 |
141 vim ftp://hostname/path/to/file | |
142 < | |
143 Want to make ftp simpler to use? See if your ftp supports a file called | |
144 <.netrc> -- typically it goes in your home directory, has read/write | |
145 permissions for only the user to read (ie. not group, world, other, etc), | |
146 and has lines resembling > | |
147 | |
148 machine HOSTNAME login USERID password "PASSWORD" | |
149 machine HOSTNAME login USERID password "PASSWORD" | |
150 ... | |
1121 | 151 default login USERID password "PASSWORD" |
650 | 152 < |
3456 | 153 Windows' ftp doesn't support .netrc; however, one may have in one's .vimrc: > |
154 | |
4502
605c9ce57ec3
Updated runtime files, language files and translations.
Bram Moolenaar <bram@vim.org>
parents:
4339
diff
changeset
|
155 let g:netrw_ftp_cmd= 'c:\Windows\System32\ftp -s:C:\Users\MyUserName\MACHINE' |
3920 | 156 < |
12785 | 157 Netrw will substitute the host's machine name for "MACHINE" from the URL it is |
3456 | 158 attempting to open, and so one may specify > |
159 userid | |
160 password | |
4502
605c9ce57ec3
Updated runtime files, language files and translations.
Bram Moolenaar <bram@vim.org>
parents:
4339
diff
changeset
|
161 for each site in a separate file: c:\Users\MyUserName\MachineName. |
3456 | 162 |
1621 | 163 Now about browsing -- when you just want to look around before editing a |
650 | 164 file. For browsing on your current host, just "edit" a directory: > |
165 | |
166 vim . | |
167 vim /home/userid/path | |
168 < | |
169 For browsing on a remote host, "edit" a directory (but make sure that | |
170 the directory name is followed by a "/"): > | |
171 | |
172 vim scp://hostname/ | |
173 vim ftp://hostname/path/to/dir/ | |
174 < | |
175 See |netrw-browse| for more! | |
176 | |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
177 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
|
178 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
|
179 netrw and vim. |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
180 |
5929 | 181 PREVENTING LOADING *netrw-noload* |
1621 | 182 |
183 If you want to use plugins, but for some reason don't wish to use netrw, then | |
184 you need to avoid loading both the plugin and the autoload portions of netrw. | |
185 You may do so by placing the following two lines in your <.vimrc>: > | |
186 | |
187 :let g:loaded_netrw = 1 | |
188 :let g:loaded_netrwPlugin = 1 | |
189 < | |
650 | 190 |
191 ============================================================================== | |
5929 | 192 3. Netrw Reference *netrw-ref* {{{1 |
1621 | 193 |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
194 Netrw supports several protocols in addition to scp and ftp as mentioned |
1621 | 195 in |netrw-start|. These include dav, fetch, http,... well, just look |
196 at the list in |netrw-externapp|. Each protocol is associated with a | |
197 variable which holds the default command supporting that protocol. | |
198 | |
199 EXTERNAL APPLICATIONS AND PROTOCOLS *netrw-externapp* {{{2 | |
7 | 200 |
5618 | 201 Protocol Variable Default Value |
202 -------- ---------------- ------------- | |
203 dav: *g:netrw_dav_cmd* = "cadaver" if cadaver is executable | |
204 dav: g:netrw_dav_cmd = "curl -o" elseif curl is available | |
205 fetch: *g:netrw_fetch_cmd* = "fetch -o" if fetch is available | |
206 ftp: *g:netrw_ftp_cmd* = "ftp" | |
207 http: *g:netrw_http_cmd* = "elinks" if elinks is available | |
208 http: g:netrw_http_cmd = "links" elseif links is available | |
209 http: g:netrw_http_cmd = "curl" elseif curl is available | |
210 http: g:netrw_http_cmd = "wget" elseif wget is available | |
211 http: g:netrw_http_cmd = "fetch" elseif fetch is available | |
212 http: *g:netrw_http_put_cmd* = "curl -T" | |
213 rcp: *g:netrw_rcp_cmd* = "rcp" | |
12785 | 214 rsync: *g:netrw_rsync_cmd* = "rsync" (see |g:netrw_rsync_sep|) |
5618 | 215 scp: *g:netrw_scp_cmd* = "scp -q" |
216 sftp: *g:netrw_sftp_cmd* = "sftp" | |
6476 | 217 file: *g:netrw_file_cmd* = "elinks" or "links" |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
218 |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
219 *g:netrw_http_xcmd* : the option string for http://... protocols are |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
220 specified via this variable and may be independently overridden. By |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
221 default, the option arguments for the http-handling commands are: > |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
222 |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
223 elinks : "-source >" |
3920 | 224 links : "-dump >" |
12785 | 225 curl : "-L -o" |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
226 wget : "-q -O" |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
227 fetch : "-o" |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
228 < |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
229 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
|
230 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
|
231 let g:netrw_http_xcmd= "-dump >" |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
232 < in your .vimrc. |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
233 |
5618 | 234 g:netrw_http_put_cmd: this option specifies both the executable and |
235 any needed options. This command does a PUT operation to the url. | |
236 | |
7 | 237 |
1621 | 238 READING *netrw-read* *netrw-nread* {{{2 |
239 | |
12785 | 240 Generally, one may just use the URL notation with a normal editing |
1621 | 241 command, such as > |
242 | |
243 :e ftp://[user@]machine/path | |
244 < | |
245 Netrw also provides the Nread command: | |
246 | |
7 | 247 :Nread ? give help |
22 | 248 :Nread "machine:path" uses rcp |
482 | 249 :Nread "machine path" uses ftp w/ <.netrc> |
22 | 250 :Nread "machine id password path" uses ftp |
251 :Nread "dav://machine[:port]/path" uses cadaver | |
252 :Nread "fetch://[user@]machine/path" uses fetch | |
482 | 253 :Nread "ftp://[user@]machine[[:#]port]/path" uses ftp w/ <.netrc> |
22 | 254 :Nread "http://[user@]machine/path" uses http uses wget |
255 :Nread "rcp://[user@]machine/path" uses rcp | |
256 :Nread "rsync://[user@]machine[:port]/path" uses rsync | |
257 :Nread "scp://[user@]machine[[:#]port]/path" uses scp | |
258 :Nread "sftp://[user@]machine/path" uses sftp | |
7 | 259 |
1621 | 260 WRITING *netrw-write* *netrw-nwrite* {{{2 |
261 | |
12785 | 262 One may just use the URL notation with a normal file writing |
1621 | 263 command, such as > |
264 | |
265 :w ftp://[user@]machine/path | |
266 < | |
267 Netrw also provides the Nwrite command: | |
268 | |
794 | 269 :Nwrite ? give help |
22 | 270 :Nwrite "machine:path" uses rcp |
482 | 271 :Nwrite "machine path" uses ftp w/ <.netrc> |
22 | 272 :Nwrite "machine id password path" uses ftp |
273 :Nwrite "dav://machine[:port]/path" uses cadaver | |
482 | 274 :Nwrite "ftp://[user@]machine[[:#]port]/path" uses ftp w/ <.netrc> |
22 | 275 :Nwrite "rcp://[user@]machine/path" uses rcp |
276 :Nwrite "rsync://[user@]machine[:port]/path" uses rsync | |
277 :Nwrite "scp://[user@]machine[[:#]port]/path" uses scp | |
278 :Nwrite "sftp://[user@]machine/path" uses sftp | |
7 | 279 http: not supported! |
280 | |
1621 | 281 SOURCING *netrw-source* {{{2 |
282 | |
12785 | 283 One may just use the URL notation with the normal file sourcing |
1621 | 284 command, such as > |
285 | |
286 :so ftp://[user@]machine/path | |
287 < | |
288 Netrw also provides the Nsource command: | |
289 | |
1121 | 290 :Nsource ? give help |
291 :Nsource "dav://machine[:port]/path" uses cadaver | |
292 :Nsource "fetch://[user@]machine/path" uses fetch | |
293 :Nsource "ftp://[user@]machine[[:#]port]/path" uses ftp w/ <.netrc> | |
294 :Nsource "http://[user@]machine/path" uses http uses wget | |
295 :Nsource "rcp://[user@]machine/path" uses rcp | |
296 :Nsource "rsync://[user@]machine[:port]/path" uses rsync | |
297 :Nsource "scp://[user@]machine[[:#]port]/path" uses scp | |
298 :Nsource "sftp://[user@]machine/path" uses sftp | |
299 | |
5929 | 300 DIRECTORY LISTING *netrw-trailingslash* *netrw-dirlist* {{{2 |
1621 | 301 |
302 One may browse a directory to get a listing by simply attempting to | |
303 edit the directory: > | |
304 | |
305 :e scp://[user]@hostname/path/ | |
306 :e ftp://[user]@hostname/path/ | |
307 < | |
2908 | 308 For remote directory listings (ie. those using scp or ftp), that |
309 trailing "/" is necessary (the slash tells netrw to treat the argument | |
310 as a directory to browse instead of as a file to download). | |
311 | |
312 The Nread command may also be used to accomplish this (again, that | |
313 trailing slash is necessary): > | |
314 | |
315 :Nread [protocol]://[user]@hostname/path/ | |
316 < | |
1621 | 317 *netrw-login* *netrw-password* |
318 CHANGING USERID AND PASSWORD *netrw-chgup* *netrw-userpass* {{{2 | |
1209 | 319 |
7 | 320 Attempts to use ftp will prompt you for a user-id and a password. |
3153 | 321 These will be saved in global variables |g:netrw_uid| and |
322 |s:netrw_passwd|; subsequent use of ftp will re-use those two strings, | |
323 thereby simplifying use of ftp. However, if you need to use a | |
324 different user id and/or password, you'll want to call |NetUserPass()| | |
1209 | 325 first. To work around the need to enter passwords, check if your ftp |
326 supports a <.netrc> file in your home directory. Also see | |
327 |netrw-passwd| (and if you're using ssh/scp hoping to figure out how | |
3153 | 328 to not need to use passwords for scp, look at |netrw-ssh-hack|). |
7 | 329 |
330 :NetUserPass [uid [password]] -- prompts as needed | |
331 :call NetUserPass() -- prompts for uid and password | |
332 :call NetUserPass("uid") -- prompts for password | |
333 :call NetUserPass("uid","password") -- sets global uid and password | |
334 | |
4502
605c9ce57ec3
Updated runtime files, language files and translations.
Bram Moolenaar <bram@vim.org>
parents:
4339
diff
changeset
|
335 (Related topics: |ftp| |netrw-userpass| |netrw-start|) |
605c9ce57ec3
Updated runtime files, language files and translations.
Bram Moolenaar <bram@vim.org>
parents:
4339
diff
changeset
|
336 |
1621 | 337 NETRW VARIABLES AND SETTINGS *netrw-variables* {{{2 |
3456 | 338 (Also see: |
339 |netrw-browser-var| : netrw browser option variables | |
340 |netrw-protocol| : file transfer protocol option variables | |
341 |netrw-settings| : additional file transfer options | |
342 |netrw-browser-options| : these options affect browsing directories | |
343 ) | |
1621 | 344 |
345 Netrw provides a lot of variables which allow you to customize netrw to your | |
346 preferences. One way to look at them is via the command :NetrwSettings (see | |
347 |netrw-settings|) which will display your current netrw settings. Most such | |
348 settings are described below, in |netrw-browser-options|, and in | |
349 |netrw-externapp|: | |
1121 | 350 |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
351 *b:netrw_lastfile* last file Network-read/written retained on a |
3456 | 352 per-buffer basis (supports plain :Nw ) |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
353 |
2420
6de9efd58dc0
Updated runtime files. New netrw plugin version.
Bram Moolenaar <bram@vim.org>
parents:
2413
diff
changeset
|
354 *g:netrw_bufsettings* the settings that netrw buffers have |
6476 | 355 (default) noma nomod nonu nowrap ro nobl |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
356 |
5929 | 357 *g:netrw_chgwin* specifies a window number where subsequent file edits |
358 will take place. (also see |netrw-C|) | |
359 (default) -1 | |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
360 |
2420
6de9efd58dc0
Updated runtime files. New netrw plugin version.
Bram Moolenaar <bram@vim.org>
parents:
2413
diff
changeset
|
361 *g:Netrw_funcref* specifies a function (or functions) to be called when |
3456 | 362 netrw edits a file. The file is first edited, and |
363 then the function reference (|Funcref|) is called. | |
364 This variable may also hold a |List| of Funcrefs. | |
365 (default) not defined. (the capital in g:Netrw... | |
366 is required by its holding a function reference) | |
2420
6de9efd58dc0
Updated runtime files. New netrw plugin version.
Bram Moolenaar <bram@vim.org>
parents:
2413
diff
changeset
|
367 > |
6de9efd58dc0
Updated runtime files. New netrw plugin version.
Bram Moolenaar <bram@vim.org>
parents:
2413
diff
changeset
|
368 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
|
369 fun! MyFuncRef() |
6de9efd58dc0
Updated runtime files. New netrw plugin version.
Bram Moolenaar <bram@vim.org>
parents:
2413
diff
changeset
|
370 endfun |
6de9efd58dc0
Updated runtime files. New netrw plugin version.
Bram Moolenaar <bram@vim.org>
parents:
2413
diff
changeset
|
371 let g:Netrw_funcref= function("MyFuncRef") |
7183
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
372 |
2420
6de9efd58dc0
Updated runtime files. New netrw plugin version.
Bram Moolenaar <bram@vim.org>
parents:
2413
diff
changeset
|
373 < |
7183
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
374 *g:Netrw_UserMaps* specifies a function or |List| of functions which can |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
375 be used to set up user-specified maps and functionality. |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
376 See |netrw-usermaps| |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
377 |
3456 | 378 *g:netrw_ftp* if it doesn't exist, use default ftp |
379 =0 use default ftp (uid password) | |
380 =1 use alternate ftp method (user uid password) | |
381 If you're having trouble with ftp, try changing the | |
382 value of this variable to see if the alternate ftp | |
383 method works for your setup. | |
384 | |
5929 | 385 *g:netrw_ftp_options* Chosen by default, these options are supposed to |
386 turn interactive prompting off and to restrain ftp | |
387 from attempting auto-login upon initial connection. | |
3456 | 388 However, it appears that not all ftp implementations |
389 support this (ex. ncftp). | |
390 ="-i -n" | |
482 | 391 |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
392 *g:netrw_ftpextracmd* default: doesn't exist |
3456 | 393 If this variable exists, then any string it contains |
394 will be placed into the commands set to your ftp | |
395 client. As an example: | |
396 ="passive" | |
1121 | 397 |
482 | 398 *g:netrw_ftpmode* ="binary" (default) |
3456 | 399 ="ascii" |
482 | 400 |
1121 | 401 *g:netrw_ignorenetrc* =0 (default for linux, cygwin) |
3456 | 402 =1 If you have a <.netrc> file but it doesn't work and |
403 you want it ignored, then set this variable as | |
404 shown. (default for Windows + cmd.exe) | |
1121 | 405 |
406 *g:netrw_menu* =0 disable netrw's menu | |
3456 | 407 =1 (default) netrw's menu enabled |
1121 | 408 |
409 *g:netrw_nogx* if this variable exists, then the "gx" map will not | |
3456 | 410 be available (see |netrw-gx|) |
482 | 411 |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
412 *g:netrw_uid* (ftp) user-id, retained on a per-vim-session basis |
6476 | 413 *s:netrw_passwd* (ftp) password, retained on a per-vim-session basis |
1621 | 414 |
415 *g:netrw_preview* =0 (default) preview window shown in a horizontally | |
3456 | 416 split window |
417 =1 preview window shown in a vertically split window. | |
5929 | 418 Also affects the "previous window" (see |netrw-P|) |
419 in the same way. | |
6476 | 420 The |g:netrw_alto| variable may be used to provide |
421 additional splitting control: | |
422 g:netrw_preview g:netrw_alto result | |
423 0 0 |:aboveleft| | |
424 0 1 |:belowright| | |
425 1 0 |:topleft| | |
426 1 1 |:botright| | |
427 To control sizing, see |g:netrw_winsize| | |
3456 | 428 |
429 *g:netrw_scpport* = "-P" : option to use to set port for scp | |
430 *g:netrw_sshport* = "-p" : option to use to set port for ssh | |
431 | |
6476 | 432 *g:netrw_sepchr* =\0xff |
3456 | 433 =\0x01 for enc == euc-jp (and perhaps it should be for |
434 others, too, please let me know) | |
435 Separates priority codes from filenames internally. | |
436 See |netrw-p12|. | |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
437 |
1621 | 438 *g:netrw_silent* =0 : transfers done normally |
3456 | 439 =1 : transfers done silently |
1621 | 440 |
22328 | 441 *g:netrw_use_errorwindow* =2: messages from netrw will use a popup window |
442 Move the mouse and pause to remove the popup window. | |
443 (default value if popup windows are availble) | |
444 =1 : messages from netrw will use a separate one | |
3456 | 445 line window. This window provides reliable |
22328 | 446 delivery of messages. |
447 (default value if popup windows are not availble) | |
2432
80229a724a11
Updated runtime files. :TOhtml improvements by Benjamin Fritz.
Bram Moolenaar <bram@vim.org>
parents:
2426
diff
changeset
|
448 =0 : messages from netrw will use echoerr ; |
80229a724a11
Updated runtime files. :TOhtml improvements by Benjamin Fritz.
Bram Moolenaar <bram@vim.org>
parents:
2426
diff
changeset
|
449 messages don't always seem to show up this |
80229a724a11
Updated runtime files. :TOhtml improvements by Benjamin Fritz.
Bram Moolenaar <bram@vim.org>
parents:
2426
diff
changeset
|
450 way, but one doesn't have to quit the window. |
1209 | 451 |
482 | 452 *g:netrw_win95ftp* =1 if using Win95, will remove four trailing blank |
3456 | 453 lines that o/s's ftp "provides" on transfers |
454 =0 force normal ftp behavior (no trailing line removal) | |
455 | |
6476 | 456 *g:netrw_cygwin* =1 assume scp under windows is from cygwin. Also |
3456 | 457 permits network browsing to use ls with time and |
458 size sorting (default if windows) | |
459 =0 assume Windows' scp accepts windows-style paths | |
460 Network browsing uses dir instead of ls | |
461 This option is ignored if you're using unix | |
482 | 462 |
463 *g:netrw_use_nt_rcp* =0 don't use the rcp of WinNT, Win2000 and WinXP | |
3456 | 464 =1 use WinNT's rcp in binary mode (default) |
22 | 465 |
1621 | 466 PATHS *netrw-path* {{{2 |
466 | 467 |
482 | 468 Paths to files are generally user-directory relative for most protocols. |
469 It is possible that some protocol will make paths relative to some | |
470 associated directory, however. | |
471 > | |
472 example: vim scp://user@host/somefile | |
473 example: vim scp://user@host/subdir1/subdir2/somefile | |
474 < | |
1621 | 475 where "somefile" is in the "user"'s home directory. If you wish to get a |
482 | 476 file using root-relative paths, use the full path: |
477 > | |
478 example: vim scp://user@host//somefile | |
479 example: vim scp://user@host//subdir1/subdir2/somefile | |
480 < | |
7 | 481 |
482 ============================================================================== | |
1621 | 483 4. Network-Oriented File Transfer *netrw-xfer* {{{1 |
7 | 484 |
12785 | 485 Network-oriented file transfer under Vim is implemented by a vim script |
559 | 486 (<netrw.vim>) using plugin techniques. It currently supports both reading and |
487 writing across networks using rcp, scp, ftp or ftp+<.netrc>, scp, fetch, | |
7 | 488 dav/cadaver, rsync, or sftp. |
489 | |
490 http is currently supported read-only via use of wget or fetch. | |
491 | |
492 <netrw.vim> is a standard plugin which acts as glue between Vim and the | |
493 various file transfer programs. It uses autocommand events (BufReadCmd, | |
494 FileReadCmd, BufWriteCmd) to intercept reads/writes with url-like filenames. > | |
495 | |
496 ex. vim ftp://hostname/path/to/file | |
497 < | |
559 | 498 The characters preceding the colon specify the protocol to use; in the |
1621 | 499 example, it's ftp. The <netrw.vim> script then formulates a command or a |
559 | 500 series of commands (typically ftp) which it issues to an external program |
501 (ftp, scp, etc) which does the actual file transfer/protocol. Files are read | |
502 from/written to a temporary file (under Unix/Linux, /tmp/...) which the | |
503 <netrw.vim> script will clean up. | |
7 | 504 |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
505 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
|
506 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
|
507 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
|
508 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
|
509 try to use scp or sftp instead. |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
510 |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
511 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
|
512 as the remote hostname remains the same. |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
513 |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
514 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
|
515 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
|
516 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
|
517 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
|
518 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
|
519 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
|
520 browsed remote directories, for example. |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
521 |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
522 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
|
523 vulnerabilities that netrw (and vim itself) had had in handling "crafted" |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
524 filenames. The |shellescape()| and |fnameescape()| functions were written in |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
525 response by Bram Moolenaar to handle these sort of problems, and netrw has |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
526 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
|
527 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
|
528 |
1121 | 529 *netrw-putty* *netrw-pscp* *netrw-psftp* |
559 | 530 One may modify any protocol's implementing external application by setting a |
531 variable (ex. scp uses the variable g:netrw_scp_cmd, which is defaulted to | |
794 | 532 "scp -q"). As an example, consider using PuTTY: > |
1121 | 533 |
534 let g:netrw_scp_cmd = '"c:\Program Files\PuTTY\pscp.exe" -q -batch' | |
535 let g:netrw_sftp_cmd= '"c:\Program Files\PuTTY\psftp.exe"' | |
794 | 536 < |
3153 | 537 (note: it has been reported that windows 7 with putty v0.6's "-batch" option |
12785 | 538 doesn't work, so its best to leave it off for that system) |
3153 | 539 |
1121 | 540 See |netrw-p8| for more about putty, pscp, psftp, etc. |
541 | |
7 | 542 Ftp, an old protocol, seems to be blessed by numerous implementations. |
559 | 543 Unfortunately, some implementations are noisy (ie., add junk to the end of the |
544 file). Thus, concerned users may decide to write a NetReadFixup() function | |
545 that will clean up after reading with their ftp. Some Unix systems (ie., | |
546 FreeBSD) provide a utility called "fetch" which uses the ftp protocol but is | |
547 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
|
548 Consequently, if "fetch" is available (ie. executable), it may be preferable |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
549 to use it for ftp://... based transfers. |
7 | 550 |
551 For rcp, scp, sftp, and http, one may use network-oriented file transfers | |
459 | 552 transparently; ie. |
7 | 553 > |
554 vim rcp://[user@]machine/path | |
555 vim scp://[user@]machine/path | |
556 < | |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
557 If your ftp supports <.netrc>, then it too can be transparently used |
7 | 558 if the needed triad of machine name, user id, and password are present in |
559 that file. Your ftp must be able to use the <.netrc> file on its own, however. | |
560 > | |
561 vim ftp://[user@]machine[[:#]portnumber]/path | |
562 < | |
2751 | 563 Windows provides an ftp (typically c:\Windows\System32\ftp.exe) which uses |
564 an option, -s:filename (filename can and probably should be a full path) | |
565 which contains ftp commands which will be automatically run whenever ftp | |
566 starts. You may use this feature to enter a user and password for one site: > | |
567 userid | |
568 password | |
5929 | 569 < *netrw-windows-netrc* *netrw-windows-s* |
570 If |g:netrw_ftp_cmd| contains -s:[path/]MACHINE, then (on Windows machines | |
571 only) netrw will substitute the current machine name requested for ftp | |
572 connections for MACHINE. Hence one can have multiple machine.ftp files | |
573 containing login and password for ftp. Example: > | |
2751 | 574 |
4339 | 575 let g:netrw_ftp_cmd= 'c:\Windows\System32\ftp -s:C:\Users\Myself\MACHINE' |
576 vim ftp://myhost.somewhere.net/ | |
5929 | 577 |
2751 | 578 will use a file > |
5929 | 579 |
2751 | 580 C:\Users\Myself\myhost.ftp |
581 < | |
582 Often, ftp will need to query the user for the userid and password. | |
459 | 583 The latter will be done "silently"; ie. asterisks will show up instead of |
7 | 584 the actually-typed-in password. Netrw will retain the userid and password |
585 for subsequent read/writes from the most recent transfer so subsequent | |
586 transfers (read/write) to or from that machine will take place without | |
587 additional prompting. | |
588 | |
589 *netrw-urls* | |
590 +=================================+============================+============+ | |
1121 | 591 | Reading | Writing | Uses | |
7 | 592 +=================================+============================+============+ |
1121 | 593 | DAV: | | | |
594 | dav://host/path | | cadaver | | |
595 | :Nread dav://host/path | :Nwrite dav://host/path | cadaver | | |
7 | 596 +---------------------------------+----------------------------+------------+ |
1621 | 597 | DAV + SSL: | | | |
598 | davs://host/path | | cadaver | | |
599 | :Nread davs://host/path | :Nwrite davs://host/path | cadaver | | |
600 +---------------------------------+----------------------------+------------+ | |
1121 | 601 | FETCH: | | | |
602 | fetch://[user@]host/path | | | | |
603 | fetch://[user@]host:http/path | Not Available | fetch | | |
604 | :Nread fetch://[user@]host/path| | | | |
7 | 605 +---------------------------------+----------------------------+------------+ |
1121 | 606 | FILE: | | | |
607 | file:///* | file:///* | | | |
608 | file://localhost/* | file://localhost/* | | | |
7 | 609 +---------------------------------+----------------------------+------------+ |
1121 | 610 | FTP: (*3) | (*3) | | |
611 | ftp://[user@]host/path | ftp://[user@]host/path | ftp (*2) | | |
612 | :Nread ftp://host/path | :Nwrite ftp://host/path | ftp+.netrc | | |
613 | :Nread host path | :Nwrite host path | ftp+.netrc | | |
614 | :Nread host uid pass path | :Nwrite host uid pass path | ftp | | |
7 | 615 +---------------------------------+----------------------------+------------+ |
1121 | 616 | HTTP: wget is executable: (*4) | | | |
617 | http://[user@]host/path | Not Available | wget | | |
7 | 618 +---------------------------------+----------------------------+------------+ |
1121 | 619 | HTTP: fetch is executable (*4) | | | |
620 | http://[user@]host/path | Not Available | fetch | | |
7 | 621 +---------------------------------+----------------------------+------------+ |
1121 | 622 | RCP: | | | |
623 | rcp://[user@]host/path | rcp://[user@]host/path | rcp | | |
7 | 624 +---------------------------------+----------------------------+------------+ |
1121 | 625 | RSYNC: | | | |
626 | rsync://[user@]host/path | rsync://[user@]host/path | rsync | | |
627 | :Nread rsync://host/path | :Nwrite rsync://host/path | rsync | | |
628 | :Nread rcp://host/path | :Nwrite rcp://host/path | rcp | | |
7 | 629 +---------------------------------+----------------------------+------------+ |
1121 | 630 | SCP: | | | |
631 | scp://[user@]host/path | scp://[user@]host/path | scp | | |
632 | :Nread scp://host/path | :Nwrite scp://host/path | scp (*1) | | |
7 | 633 +---------------------------------+----------------------------+------------+ |
1121 | 634 | SFTP: | | | |
635 | sftp://[user@]host/path | sftp://[user@]host/path | sftp | | |
636 | :Nread sftp://host/path | :Nwrite sftp://host/path | sftp (*1) | | |
7 | 637 +=================================+============================+============+ |
638 | |
639 (*1) For an absolute path use scp://machine//path. | |
640 | |
641 (*2) if <.netrc> is present, it is assumed that it will | |
642 work with your ftp client. Otherwise the script will | |
1121 | 643 prompt for user-id and password. |
7 | 644 |
1121 | 645 (*3) for ftp, "machine" may be machine#port or machine:port |
7 | 646 if a different port is needed than the standard ftp port |
647 | |
648 (*4) for http:..., if wget is available it will be used. Otherwise, | |
649 if fetch is available it will be used. | |
650 | |
651 Both the :Nread and the :Nwrite ex-commands can accept multiple filenames. | |
652 | |
653 | |
654 NETRC *netrw-netrc* | |
655 | |
1621 | 656 The <.netrc> file, typically located in your home directory, contains lines |
657 therein which map a hostname (machine name) to the user id and password you | |
658 prefer to use with it. | |
659 | |
7 | 660 The typical syntax for lines in a <.netrc> file is given as shown below. |
799 | 661 Ftp under Unix usually supports <.netrc>; ftp under Windows usually doesn't. |
7 | 662 > |
663 machine {full machine name} login {user-id} password "{password}" | |
664 default login {user-id} password "{password}" | |
665 | |
666 Your ftp client must handle the use of <.netrc> on its own, but if the | |
667 <.netrc> file exists, an ftp transfer will not ask for the user-id or | |
668 password. | |
669 | |
670 Note: | |
671 Since this file contains passwords, make very sure nobody else can | |
672 read this file! Most programs will refuse to use a .netrc that is | |
673 readable for others. Don't forget that the system administrator can | |
1621 | 674 still read the file! Ie. for Linux/Unix: chmod 600 .netrc |
7 | 675 |
3456 | 676 Even though Windows' ftp clients typically do not support .netrc, netrw has |
677 a work-around: see |netrw-windows-s|. | |
678 | |
7 | 679 |
680 PASSWORD *netrw-passwd* | |
681 | |
682 The script attempts to get passwords for ftp invisibly using |inputsecret()|, | |
2432
80229a724a11
Updated runtime files. :TOhtml improvements by Benjamin Fritz.
Bram Moolenaar <bram@vim.org>
parents:
2426
diff
changeset
|
683 a built-in Vim function. See |netrw-userpass| for how to change the password |
7 | 684 after one has set it. |
685 | |
559 | 686 Unfortunately there doesn't appear to be a way for netrw to feed a password to |
687 scp. Thus every transfer via scp will require re-entry of the password. | |
1621 | 688 However, |netrw-ssh-hack| can help with this problem. |
7 | 689 |
690 | |
691 ============================================================================== | |
1621 | 692 5. Activation *netrw-activate* {{{1 |
7 | 693 |
799 | 694 Network-oriented file transfers are available by default whenever Vim's |
1621 | 695 |'nocompatible'| mode is enabled. Netrw's script files reside in your |
696 system's plugin, autoload, and syntax directories; just the | |
697 plugin/netrwPlugin.vim script is sourced automatically whenever you bring up | |
698 vim. The main script in autoload/netrw.vim is only loaded when you actually | |
699 use netrw. I suggest that, at a minimum, you have at least the following in | |
700 your <.vimrc> customization file: > | |
799 | 701 |
559 | 702 set nocp |
703 if version >= 600 | |
704 filetype plugin indent on | |
705 endif | |
706 < | |
6476 | 707 By also including the following lines in your .vimrc, one may have netrw |
708 immediately activate when using [g]vim without any filenames, showing the | |
709 current directory: > | |
710 | |
711 " Augroup VimStartup: | |
712 augroup VimStartup | |
713 au! | |
714 au VimEnter * if expand("%") == "" | e . | endif | |
715 augroup END | |
716 < | |
7 | 717 |
718 ============================================================================== | |
5929 | 719 6. Transparent Remote File Editing *netrw-transparent* {{{1 |
7 | 720 |
721 Transparent file transfers occur whenever a regular file read or write | |
1621 | 722 (invoked via an |:autocmd| for |BufReadCmd|, |BufWriteCmd|, or |SourceCmd| |
723 events) is made. Thus one may read, write, or source files across networks | |
724 just as easily as if they were local files! > | |
7 | 725 |
726 vim ftp://[user@]machine/path | |
727 ... | |
728 :wq | |
729 | |
559 | 730 See |netrw-activate| for more on how to encourage your vim to use plugins |
731 such as netrw. | |
7 | 732 |
22328 | 733 For password-free use of scp:, see |netrw-ssh-hack|. |
734 | |
799 | 735 |
7 | 736 ============================================================================== |
1621 | 737 7. Ex Commands *netrw-ex* {{{1 |
7 | 738 |
799 | 739 The usual read/write commands are supported. There are also a few |
1621 | 740 additional commands available. Often you won't need to use Nwrite or |
1121 | 741 Nread as shown in |netrw-transparent| (ie. simply use > |
12785 | 742 :e URL |
743 :r URL | |
744 :w URL | |
1121 | 745 instead, as appropriate) -- see |netrw-urls|. In the explanations |
12785 | 746 below, a {netfile} is a URL to a remote file. |
7 | 747 |
2152 | 748 *:Nwrite* *:Nw* |
1621 | 749 :[range]Nw[rite] Write the specified lines to the current |
7 | 750 file as specified in b:netrw_lastfile. |
2152 | 751 (related: |netrw-nwrite|) |
7 | 752 |
1621 | 753 :[range]Nw[rite] {netfile} [{netfile}]... |
7 | 754 Write the specified lines to the {netfile}. |
755 | |
2152 | 756 *:Nread* *:Nr* |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
757 :Nr[ead] Read the lines from the file specified in b:netrw_lastfile |
2152 | 758 into the current buffer. (related: |netrw-nread|) |
7 | 759 |
1621 | 760 :Nr[ead] {netfile} {netfile}... |
7 | 761 Read the {netfile} after the current line. |
762 | |
2152 | 763 *:Nsource* *:Ns* |
1621 | 764 :Ns[ource] {netfile} |
1121 | 765 Source the {netfile}. |
766 To start up vim using a remote .vimrc, one may use | |
767 the following (all on one line) (tnx to Antoine Mechelynck) > | |
768 vim -u NORC -N | |
769 --cmd "runtime plugin/netrwPlugin.vim" | |
770 --cmd "source scp://HOSTNAME/.vimrc" | |
2152 | 771 < (related: |netrw-source|) |
772 | |
773 :call NetUserPass() *NetUserPass()* | |
1621 | 774 If g:netrw_uid and s:netrw_passwd don't exist, |
775 this function will query the user for them. | |
2152 | 776 (related: |netrw-userpass|) |
7 | 777 |
778 :call NetUserPass("userid") | |
1621 | 779 This call will set the g:netrw_uid and, if |
7 | 780 the password doesn't exist, will query the user for it. |
2152 | 781 (related: |netrw-userpass|) |
7 | 782 |
783 :call NetUserPass("userid","passwd") | |
1621 | 784 This call will set both the g:netrw_uid and s:netrw_passwd. |
7 | 785 The user-id and password are used by ftp transfers. One may |
1621 | 786 effectively remove the user-id and password by using empty |
787 strings (ie. ""). | |
2152 | 788 (related: |netrw-userpass|) |
7 | 789 |
1121 | 790 :NetrwSettings This command is described in |netrw-settings| -- used to |
791 display netrw settings and change netrw behavior. | |
482 | 792 |
7 | 793 |
794 ============================================================================== | |
5929 | 795 8. Variables and Options *netrw-var* *netrw-settings* {{{1 |
3153 | 796 |
797 (also see: |netrw-options| |netrw-variables| |netrw-protocol| | |
3456 | 798 |netrw-browser-settings| |netrw-browser-options| ) |
7 | 799 |
1121 | 800 The <netrw.vim> script provides several variables which act as options to |
1621 | 801 affect <netrw.vim>'s file transfer behavior. These variables typically may be |
802 set in the user's <.vimrc> file: (see also |netrw-settings| |netrw-protocol|) | |
3153 | 803 *netrw-options* |
1621 | 804 > |
1121 | 805 ------------- |
806 Netrw Options | |
807 ------------- | |
9 | 808 Option Meaning |
809 -------------- ----------------------------------------------- | |
810 < | |
1121 | 811 b:netrw_col Holds current cursor position (during NetWrite) |
812 g:netrw_cygwin =1 assume scp under windows is from cygwin | |
813 (default/windows) | |
814 =0 assume scp under windows accepts windows | |
815 style paths (default/else) | |
816 g:netrw_ftp =0 use default ftp (uid password) | |
817 g:netrw_ftpmode ="binary" (default) | |
818 ="ascii" (your choice) | |
819 g:netrw_ignorenetrc =1 (default) | |
820 if you have a <.netrc> file but you don't | |
7 | 821 want it used, then set this variable. Its |
822 mere existence is enough to cause <.netrc> | |
823 to be ignored. | |
1121 | 824 b:netrw_lastfile Holds latest method/machine/path. |
825 b:netrw_line Holds current line number (during NetWrite) | |
826 g:netrw_silent =0 transfers done normally | |
827 =1 transfers done silently | |
828 g:netrw_uid Holds current user-id for ftp. | |
829 g:netrw_use_nt_rcp =0 don't use WinNT/2K/XP's rcp (default) | |
830 =1 use WinNT/2K/XP's rcp, binary mode | |
831 g:netrw_win95ftp =0 use unix-style ftp even if win95/98/ME/etc | |
832 =1 use default method to do ftp > | |
9 | 833 ----------------------------------------------------------------------- |
834 < | |
5929 | 835 *netrw-internal-variables* |
7 | 836 The script will also make use of the following variables internally, albeit |
837 temporarily. | |
9 | 838 > |
839 ------------------- | |
840 Temporary Variables | |
841 ------------------- | |
842 Variable Meaning | |
843 -------- ------------------------------------ | |
844 < | |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
845 b:netrw_method Index indicating rcp/ftp+.netrc/ftp |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
846 w:netrw_method (same as b:netrw_method) |
7 | 847 g:netrw_machine Holds machine name parsed from input |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
848 b:netrw_fname Holds filename being accessed > |
9 | 849 ------------------------------------------------------------ |
850 < | |
1621 | 851 *netrw-protocol* |
7 | 852 |
9 | 853 Netrw supports a number of protocols. These protocols are invoked using the |
854 variables listed below, and may be modified by the user. | |
7 | 855 > |
856 ------------------------ | |
1121 | 857 Protocol Control Options |
7 | 858 ------------------------ |
1121 | 859 Option Type Setting Meaning |
860 --------- -------- -------------- --------------------------- | |
5618 | 861 < netrw_ftp variable =doesn't exist userid set by "user userid" |
1121 | 862 =0 userid set by "user userid" |
863 =1 userid set by "userid" | |
864 NetReadFixup function =doesn't exist no change | |
865 =exists Allows user to have files | |
866 read via ftp automatically | |
867 transformed however they wish | |
868 by NetReadFixup() | |
5618 | 869 g:netrw_dav_cmd var ="cadaver" if cadaver is executable |
870 g:netrw_dav_cmd var ="curl -o" elseif curl is executable | |
871 g:netrw_fetch_cmd var ="fetch -o" if fetch is available | |
872 g:netrw_ftp_cmd var ="ftp" | |
873 g:netrw_http_cmd var ="fetch -o" if fetch is available | |
874 g:netrw_http_cmd var ="wget -O" else if wget is available | |
875 g:netrw_http_put_cmd var ="curl -T" | |
12785 | 876 |g:netrw_list_cmd| var ="ssh USEPORT HOSTNAME ls -Fa" |
5618 | 877 g:netrw_rcp_cmd var ="rcp" |
12785 | 878 g:netrw_rsync_cmd var ="rsync" |
879 *g:netrw_rsync_sep* var ="/" used to separate the hostname | |
880 from the file spec | |
5618 | 881 g:netrw_scp_cmd var ="scp -q" |
882 g:netrw_sftp_cmd var ="sftp" > | |
9 | 883 ------------------------------------------------------------------------- |
7 | 884 < |
12 | 885 *netrw-ftp* |
1121 | 886 |
887 The g:netrw_..._cmd options (|g:netrw_ftp_cmd| and |g:netrw_sftp_cmd|) | |
888 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
|
889 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
|
890 |
6de9efd58dc0
Updated runtime files. New netrw plugin version.
Bram Moolenaar <bram@vim.org>
parents:
2413
diff
changeset
|
891 let g:netrw_ftp_cmd= "ftp -p" |
6de9efd58dc0
Updated runtime files. New netrw plugin version.
Bram Moolenaar <bram@vim.org>
parents:
2413
diff
changeset
|
892 < |
1121 | 893 Browsing is supported by using the |g:netrw_list_cmd|; the substring |
894 "HOSTNAME" will be changed via substitution with whatever the current request | |
895 is for a hostname. | |
7 | 896 |
1121 | 897 Two options (|g:netrw_ftp| and |netrw-fixup|) both help with certain ftp's |
898 that give trouble . In order to best understand how to use these options if | |
899 ftp is giving you troubles, a bit of discussion is provided on how netrw does | |
900 ftp reads. | |
9 | 901 |
902 For ftp, netrw typically builds up lines of one of the following formats in a | |
7 | 903 temporary file: |
904 > | |
905 IF g:netrw_ftp !exists or is not 1 IF g:netrw_ftp exists and is 1 | |
906 ---------------------------------- ------------------------------ | |
9 | 907 < |
1121 | 908 open machine [port] open machine [port] |
909 user userid password userid password | |
910 [g:netrw_ftpmode] password | |
2432
80229a724a11
Updated runtime files. :TOhtml improvements by Benjamin Fritz.
Bram Moolenaar <bram@vim.org>
parents:
2426
diff
changeset
|
911 [g:netrw_ftpextracmd] [g:netrw_ftpmode] |
1121 | 912 get filename tempfile [g:netrw_extracmd] |
913 get filename tempfile > | |
9 | 914 --------------------------------------------------------------------- |
7 | 915 < |
2432
80229a724a11
Updated runtime files. :TOhtml improvements by Benjamin Fritz.
Bram Moolenaar <bram@vim.org>
parents:
2426
diff
changeset
|
916 The |g:netrw_ftpmode| and |g:netrw_ftpextracmd| are optional. |
1121 | 917 |
7 | 918 Netrw then executes the lines above by use of a filter: |
919 > | |
920 :%! {g:netrw_ftp_cmd} -i [-n] | |
921 < | |
922 where | |
923 g:netrw_ftp_cmd is usually "ftp", | |
924 -i tells ftp not to be interactive | |
925 -n means don't use netrc and is used for Method #3 (ftp w/o <.netrc>) | |
926 | |
927 If <.netrc> exists it will be used to avoid having to query the user for | |
9 | 928 userid and password. The transferred file is put into a temporary file. |
7 | 929 The temporary file is then read into the main editing session window that |
930 requested it and the temporary file deleted. | |
931 | |
559 | 932 If your ftp doesn't accept the "user" command and immediately just demands a |
933 userid, then try putting "let netrw_ftp=1" in your <.vimrc>. | |
7 | 934 |
12 | 935 *netrw-cadaver* |
936 To handle the SSL certificate dialog for untrusted servers, one may pull | |
937 down the certificate and place it into /usr/ssl/cert.pem. This operation | |
938 renders the server treatment as "trusted". | |
939 | |
794 | 940 *netrw-fixup* *netreadfixup* |
7 | 941 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
|
942 messages) you may write a NetReadFixup() function: |
7 | 943 > |
944 function! NetReadFixup(method,line1,line2) | |
945 " a:line1: first new line in current file | |
946 " a:line2: last new line in current file | |
947 if a:method == 1 "rcp | |
948 elseif a:method == 2 "ftp + <.netrc> | |
949 elseif a:method == 3 "ftp + machine,uid,password,filename | |
950 elseif a:method == 4 "scp | |
951 elseif a:method == 5 "http/wget | |
952 elseif a:method == 6 "dav/cadaver | |
953 elseif a:method == 7 "rsync | |
954 elseif a:method == 8 "fetch | |
955 elseif a:method == 9 "sftp | |
1121 | 956 else " complain |
7 | 957 endif |
958 endfunction | |
959 > | |
559 | 960 The NetReadFixup() function will be called if it exists and thus allows you to |
961 customize your reading process. As a further example, <netrw.vim> contains | |
962 just such a function to handle Windows 95 ftp. For whatever reason, Windows | |
963 95's ftp dumps four blank lines at the end of a transfer, and so it is | |
964 desirable to automate their removal. Here's some code taken from <netrw.vim> | |
965 itself: | |
7 | 966 > |
967 if has("win95") && g:netrw_win95ftp | |
9 | 968 fun! NetReadFixup(method, line1, line2) |
7 | 969 if method == 3 " ftp (no <.netrc>) |
1121 | 970 let fourblanklines= line2 - 3 |
971 silent fourblanklines.",".line2."g/^\s*/d" | |
7 | 972 endif |
973 endfunction | |
974 endif | |
975 > | |
4502
605c9ce57ec3
Updated runtime files, language files and translations.
Bram Moolenaar <bram@vim.org>
parents:
4339
diff
changeset
|
976 (Related topics: |ftp| |netrw-userpass| |netrw-start|) |
7 | 977 |
978 ============================================================================== | |
1621 | 979 9. Browsing *netrw-browsing* *netrw-browse* *netrw-help* {{{1 |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
980 *netrw-browser* *netrw-dir* *netrw-list* |
1621 | 981 |
982 INTRODUCTION TO BROWSING *netrw-intro-browse* {{{2 | |
983 (Quick References: |netrw-quickmaps| |netrw-quickcoms|) | |
984 | |
985 Netrw supports the browsing of directories on your local system and on remote | |
986 hosts; browsing includes listing files and directories, entering directories, | |
987 editing files therein, deleting files/directories, making new directories, | |
988 moving (renaming) files and directories, copying files and directories, etc. | |
989 One may mark files and execute any system command on them! The Netrw browser | |
990 generally implements the previous explorer's maps and commands for remote | |
991 directories, although details (such as pertinent global variable names) | |
992 necessarily differ. To browse a directory, simply "edit" it! > | |
993 | |
994 vim /your/directory/ | |
995 vim . | |
996 vim c:\your\directory\ | |
997 < | |
998 (Related topics: |netrw-cr| |netrw-o| |netrw-p| |netrw-P| |netrw-t| | |
999 |netrw-mf| |netrw-mx| |netrw-D| |netrw-R| |netrw-v| ) | |
22 | 1000 |
1001 The Netrw remote file and directory browser handles two protocols: ssh and | |
1621 | 1002 ftp. The protocol in the url, if it is ftp, will cause netrw also to use ftp |
1003 in its remote browsing. Specifying any other protocol will cause it to be | |
1004 used for file transfers; but the ssh protocol will be used to do remote | |
1005 browsing. | |
1006 | |
1007 To use Netrw's remote directory browser, simply attempt to read a "file" with | |
1008 a trailing slash and it will be interpreted as a request to list a directory: | |
1009 > | |
9 | 1010 vim [protocol]://[user@]hostname/path/ |
1621 | 1011 < |
1012 where [protocol] is typically scp or ftp. As an example, try: > | |
1013 | |
1014 vim ftp://ftp.home.vim.org/pub/vim/ | |
719 | 1015 < |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1016 For local directories, the trailing slash is not required. Again, because it's |
12785 | 1017 easy to miss: to browse remote directories, the URL must terminate with a |
1621 | 1018 slash! |
1019 | |
1020 If you'd like to avoid entering the password repeatedly for remote directory | |
1021 listings with ssh or scp, see |netrw-ssh-hack|. To avoid password entry with | |
1022 ftp, see |netrw-netrc| (if your ftp supports it). | |
1023 | |
1024 There are several things you can do to affect the browser's display of files: | |
1025 | |
1026 * To change the listing style, press the "i" key (|netrw-i|). | |
1027 Currently there are four styles: thin, long, wide, and tree. | |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1028 To make that change "permanent", see |g:netrw_liststyle|. |
1621 | 1029 |
1030 * To hide files (don't want to see those xyz~ files anymore?) see | |
1031 |netrw-ctrl-h|. | |
1032 | |
1033 * Press s to sort files by name, time, or size. | |
1034 | |
1035 See |netrw-browse-cmds| for all the things you can do with netrw! | |
1036 | |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1037 *netrw-getftype* *netrw-filigree* *netrw-ftype* |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1038 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
|
1039 filetype to locally listed files: |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1040 |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1041 directory : / |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1042 executable : * |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1043 fifo : | |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1044 links : @ |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1045 sockets : = |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1046 |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1047 The filigree also affects the |g:netrw_sort_sequence|. |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1048 |
1621 | 1049 |
1050 QUICK HELP *netrw-quickhelp* {{{2 | |
1051 (Use ctrl-] to select a topic)~ | |
1052 Intro to Browsing...............................|netrw-intro-browse| | |
1053 Quick Reference: Maps.........................|netrw-quickmap| | |
1054 Quick Reference: Commands.....................|netrw-browse-cmds| | |
1055 Hiding | |
1056 Edit hiding list..............................|netrw-ctrl-h| | |
1057 Hiding Files or Directories...................|netrw-a| | |
1058 Hiding/Unhiding by suffix.....................|netrw-mh| | |
1059 Hiding dot-files.............................|netrw-gh| | |
1060 Listing Style | |
1061 Select listing style (thin/long/wide/tree)....|netrw-i| | |
1062 Associated setting variable...................|g:netrw_liststyle| | |
1063 Shell command used to perform listing.........|g:netrw_list_cmd| | |
1064 Quick file info...............................|netrw-qf| | |
1065 Sorted by | |
1066 Select sorting style (name/time/size).........|netrw-s| | |
1067 Editing the sorting sequence..................|netrw-S| | |
1668 | 1068 Sorting options...............................|g:netrw_sort_options| |
1621 | 1069 Associated setting variable...................|g:netrw_sort_sequence| |
1070 Reverse sorting order.........................|netrw-r| | |
1071 | |
1072 | |
22328 | 1073 *netrw-quickmap* *netrw-quickmaps* |
1621 | 1074 QUICK REFERENCE: MAPS *netrw-browse-maps* {{{2 |
466 | 1075 > |
1621 | 1076 --- ----------------- ---- |
1077 Map Quick Explanation Link | |
1078 --- ----------------- ---- | |
1079 < <F1> Causes Netrw to issue help | |
1080 <cr> Netrw will enter the directory or read the file |netrw-cr| | |
1081 <del> Netrw will attempt to remove the file/directory |netrw-del| | |
7183
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
1082 <c-h> Edit file hiding list |netrw-ctrl-h| |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
1083 <c-l> Causes Netrw to refresh the directory listing |netrw-ctrl-l| |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
1084 <c-r> Browse using a gvim server |netrw-ctrl-r| |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
1085 <c-tab> Shrink/expand a netrw/explore window |netrw-c-tab| |
1621 | 1086 - Makes Netrw go up one directory |netrw--| |
12785 | 1087 a Cycles between normal display, |netrw-a| |
5929 | 1088 hiding (suppress display of files matching g:netrw_list_hide) |
12785 | 1089 and showing (display only files which match g:netrw_list_hide) |
22328 | 1090 cd Make browsing directory the current directory |netrw-cd| |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1091 C Setting the editing window |netrw-C| |
1621 | 1092 d Make a directory |netrw-d| |
1093 D Attempt to remove the file(s)/directory(ies) |netrw-D| | |
1094 gb Go to previous bookmarked directory |netrw-gb| | |
6476 | 1095 gd Force treatment as directory |netrw-gd| |
1096 gf Force treatment as file |netrw-gf| | |
1621 | 1097 gh Quick hide/unhide of dot-files |netrw-gh| |
7183
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
1098 gn Make top of tree the directory below the cursor |netrw-gn| |
25700 | 1099 gp Change local-only file permissions |netrw-gp| |
1621 | 1100 i Cycle between thin, long, wide, and tree listings |netrw-i| |
12785 | 1101 I Toggle the displaying of the banner |netrw-I| |
1621 | 1102 mb Bookmark current directory |netrw-mb| |
1103 mc Copy marked files to marked-file target directory |netrw-mc| | |
1104 md Apply diff to marked files (up to 3) |netrw-md| | |
1105 me Place marked files on arg list and edit them |netrw-me| | |
1106 mf Mark a file |netrw-mf| | |
6476 | 1107 mF Unmark files |netrw-mF| |
1108 mg Apply vimgrep to marked files |netrw-mg| | |
1621 | 1109 mh Toggle marked file suffices' presence on hiding list |netrw-mh| |
1110 mm Move marked files to marked-file target directory |netrw-mm| | |
1111 mp Print marked files |netrw-mp| | |
6476 | 1112 mr Mark files using a shell-style |regexp| |netrw-mr| |
1621 | 1113 mt Current browsing directory becomes markfile target |netrw-mt| |
1114 mT Apply ctags to marked files |netrw-mT| | |
1115 mu Unmark all marked files |netrw-mu| | |
6476 | 1116 mv Apply arbitrary vim command to marked files |netrw-mv| |
1621 | 1117 mx Apply arbitrary shell command to marked files |netrw-mx| |
6476 | 1118 mX Apply arbitrary shell command to marked files en bloc|netrw-mX| |
1621 | 1119 mz Compress/decompress marked files |netrw-mz| |
1120 o Enter the file/directory under the cursor in a new |netrw-o| | |
5929 | 1121 browser window. A horizontal split is used. |
1621 | 1122 O Obtain a file specified by cursor |netrw-O| |
1123 p Preview the file |netrw-p| | |
1124 P Browse in the previously used window |netrw-P| | |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1125 qb List bookmarked directories and history |netrw-qb| |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1126 qf Display information on file |netrw-qf| |
6476 | 1127 qF Mark files using a quickfix list |netrw-qF| |
8148
f5da459c5698
commit https://github.com/vim/vim/commit/e0fa3742ead676a3074a10edadbc955e1a89153d
Christian Brabandt <cb@256bit.org>
parents:
7188
diff
changeset
|
1128 qL Mark files using a |location-list| |netrw-qL| |
1621 | 1129 r Reverse sorting order |netrw-r| |
7183
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
1130 R Rename the designated file(s)/directory(ies) |netrw-R| |
1621 | 1131 s Select sorting style: by name, time, or file size |netrw-s| |
1132 S Specify suffix priority for name-sorting |netrw-S| | |
1133 t Enter the file/directory under the cursor in a new tab|netrw-t| | |
1134 u Change to recently-visited directory |netrw-u| | |
1135 U Change to subsequently-visited directory |netrw-U| | |
1136 v Enter the file/directory under the cursor in a new |netrw-v| | |
5929 | 1137 browser window. A vertical split is used. |
1621 | 1138 x View file with an associated program |netrw-x| |
3920 | 1139 X Execute filename under cursor via |system()| |netrw-X| |
1621 | 1140 |
1668 | 1141 % Open a new file in netrw's current directory |netrw-%| |
1142 | |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1143 *netrw-mouse* *netrw-leftmouse* *netrw-middlemouse* *netrw-rightmouse* |
1621 | 1144 <leftmouse> (gvim only) selects word under mouse as if a <cr> |
1145 had been pressed (ie. edit file, change directory) | |
1146 <middlemouse> (gvim only) same as P selecting word under mouse; | |
1147 see |netrw-P| | |
1148 <rightmouse> (gvim only) delete file/directory using word under | |
1149 mouse | |
1150 <2-leftmouse> (gvim only) when: | |
5929 | 1151 * in a netrw-selected file, AND |
6476 | 1152 * |g:netrw_retmap| == 1 AND |
5929 | 1153 * the user doesn't already have a <2-leftmouse> |
4339 | 1154 mapping defined before netrw is autoloaded, |
1621 | 1155 then a double clicked leftmouse button will return |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1156 to the netrw browser window. See |g:netrw_retmap|. |
5618 | 1157 <s-leftmouse> (gvim only) like mf, will mark files. Dragging |
1158 the shifted leftmouse will mark multiple files. | |
1159 (see |netrw-mf|) | |
1621 | 1160 |
2152 | 1161 (to disable mouse buttons while browsing: |g:netrw_mousemaps|) |
1162 | |
1621 | 1163 *netrw-quickcom* *netrw-quickcoms* |
1164 QUICK REFERENCE: COMMANDS *netrw-explore-cmds* *netrw-browse-cmds* {{{2 | |
5618 | 1165 :NetrwClean[!]............................................|netrw-clean| |
1166 :NetrwSettings............................................|netrw-settings| | |
1167 :Ntree....................................................|netrw-ntree| | |
1621 | 1168 :Explore[!] [dir] Explore directory of current file......|netrw-explore| |
1169 :Hexplore[!] [dir] Horizontal Split & Explore.............|netrw-explore| | |
6476 | 1170 :Lexplore[!] [dir] Left Explorer Toggle...................|netrw-explore| |
1621 | 1171 :Nexplore[!] [dir] Vertical Split & Explore...............|netrw-explore| |
1172 :Pexplore[!] [dir] Vertical Split & Explore...............|netrw-explore| | |
1173 :Rexplore Return to Explorer.....................|netrw-explore| | |
1174 :Sexplore[!] [dir] Split & Explore directory .............|netrw-explore| | |
1175 :Texplore[!] [dir] Tab & Explore..........................|netrw-explore| | |
1176 :Vexplore[!] [dir] Vertical Split & Explore...............|netrw-explore| | |
1177 | |
8148
f5da459c5698
commit https://github.com/vim/vim/commit/e0fa3742ead676a3074a10edadbc955e1a89153d
Christian Brabandt <cb@256bit.org>
parents:
7188
diff
changeset
|
1178 |
f5da459c5698
commit https://github.com/vim/vim/commit/e0fa3742ead676a3074a10edadbc955e1a89153d
Christian Brabandt <cb@256bit.org>
parents:
7188
diff
changeset
|
1179 BANNER DISPLAY *netrw-I* |
f5da459c5698
commit https://github.com/vim/vim/commit/e0fa3742ead676a3074a10edadbc955e1a89153d
Christian Brabandt <cb@256bit.org>
parents:
7188
diff
changeset
|
1180 |
12785 | 1181 One may toggle the displaying of the banner by pressing "I". |
8148
f5da459c5698
commit https://github.com/vim/vim/commit/e0fa3742ead676a3074a10edadbc955e1a89153d
Christian Brabandt <cb@256bit.org>
parents:
7188
diff
changeset
|
1182 |
f5da459c5698
commit https://github.com/vim/vim/commit/e0fa3742ead676a3074a10edadbc955e1a89153d
Christian Brabandt <cb@256bit.org>
parents:
7188
diff
changeset
|
1183 Also See: |g:netrw_banner| |
f5da459c5698
commit https://github.com/vim/vim/commit/e0fa3742ead676a3074a10edadbc955e1a89153d
Christian Brabandt <cb@256bit.org>
parents:
7188
diff
changeset
|
1184 |
f5da459c5698
commit https://github.com/vim/vim/commit/e0fa3742ead676a3074a10edadbc955e1a89153d
Christian Brabandt <cb@256bit.org>
parents:
7188
diff
changeset
|
1185 |
12785 | 1186 BOOKMARKING A DIRECTORY *netrw-mb* *netrw-bookmark* *netrw-bookmarks* {{{2 |
6476 | 1187 |
1188 One may easily "bookmark" the currently browsed directory by using > | |
1621 | 1189 |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1190 mb |
839 | 1191 < |
6476 | 1192 *.netrwbook* |
12785 | 1193 Bookmarks are retained in between sessions of vim in a file called .netrwbook |
1194 as a |List|, which is typically stored in the first directory on the user's | |
19116 | 1195 'runtimepath'; entries are kept in sorted order. |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1196 |
6476 | 1197 If there are marked files and/or directories, mb will add them to the bookmark |
1198 list. | |
1199 | |
12785 | 1200 *netrw-:NetrwMB* |
6476 | 1201 Addtionally, one may use :NetrwMB to bookmark files or directories. > |
1202 | |
1203 :NetrwMB[!] [files/directories] | |
1204 | |
1205 < No bang: enters files/directories into Netrw's bookmark system | |
1206 | |
1207 No argument and in netrw buffer: | |
7183
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
1208 if there are marked files : bookmark marked files |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
1209 otherwise : bookmark file/directory under cursor |
6476 | 1210 No argument and not in netrw buffer: bookmarks current open file |
7183
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
1211 Has arguments : |glob()|s each arg and bookmarks them |
6476 | 1212 |
1213 With bang: deletes files/directories from Netrw's bookmark system | |
1214 | |
1215 The :NetrwMB command is available outside of netrw buffers (once netrw has been | |
1216 invoked in the session). | |
1217 | |
1218 The file ".netrwbook" holds bookmarks when netrw (and vim) is not active. By | |
12785 | 1219 default, its stored on the first directory on the user's |'runtimepath'|. |
6476 | 1220 |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1221 Related Topics: |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1222 |netrw-gb| how to return (go) to a bookmark |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1223 |netrw-mB| how to delete bookmarks |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1224 |netrw-qb| how to list bookmarks |
6476 | 1225 |g:netrw_home| controls where .netrwbook is kept |
1621 | 1226 |
1227 | |
8148
f5da459c5698
commit https://github.com/vim/vim/commit/e0fa3742ead676a3074a10edadbc955e1a89153d
Christian Brabandt <cb@256bit.org>
parents:
7188
diff
changeset
|
1228 BROWSING *netrw-enter* *netrw-cr* {{{2 |
12 | 1229 |
9 | 1230 Browsing is simple: move the cursor onto a file or directory of interest. |
11 | 1231 Hitting the <cr> (the return key) will select the file or directory. |
1232 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
|
1233 protocol given in the original read request. |
559 | 1234 |
1621 | 1235 CAVEAT: There are four forms of listing (see |netrw-i|). Netrw assumes that |
1236 two or more spaces delimit filenames and directory names for the long and | |
1237 wide listing formats. Thus, if your filename or directory name has two or | |
1238 more sequential spaces embedded in it, or any trailing spaces, then you'll | |
1239 need to use the "thin" format to select it. | |
519 | 1240 |
650 | 1241 The |g:netrw_browse_split| option, which is zero by default, may be used to |
1621 | 1242 cause the opening of files to be done in a new window or tab instead of the |
1243 default. When the option is one or two, the splitting will be taken | |
1244 horizontally or vertically, respectively. When the option is set to three, a | |
1245 <cr> will cause the file to appear in a new tab. | |
1246 | |
1247 | |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1248 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
|
1249 button. In addition, if |
1621 | 1250 |
6476 | 1251 * |g:netrw_retmap| == 1 AND (its default value is 0) |
1621 | 1252 * in a netrw-selected file, AND |
1253 * the user doesn't already have a <2-leftmouse> mapping defined before | |
1254 netrw is loaded | |
1255 | |
1256 then a doubly-clicked leftmouse button will return to the netrw browser | |
1257 window. | |
1258 | |
1259 Netrw attempts to speed up browsing, especially for remote browsing where one | |
1260 may have to enter passwords, by keeping and re-using previously obtained | |
1261 directory listing buffers. The |g:netrw_fastbrowse| variable is used to | |
1262 control this behavior; one may have slow browsing (no buffer re-use), medium | |
1263 speed browsing (re-use directory buffer listings only for remote directories), | |
1264 and fast browsing (re-use directory buffer listings as often as possible). | |
1265 The price for such re-use is that when changes are made (such as new files | |
1266 are introduced into a directory), the listing may become out-of-date. One may | |
1267 always refresh directory listing buffers by pressing ctrl-L (see | |
1268 |netrw-ctrl-l|). | |
8148
f5da459c5698
commit https://github.com/vim/vim/commit/e0fa3742ead676a3074a10edadbc955e1a89153d
Christian Brabandt <cb@256bit.org>
parents:
7188
diff
changeset
|
1269 |
f5da459c5698
commit https://github.com/vim/vim/commit/e0fa3742ead676a3074a10edadbc955e1a89153d
Christian Brabandt <cb@256bit.org>
parents:
7188
diff
changeset
|
1270 *netrw-s-cr* |
f5da459c5698
commit https://github.com/vim/vim/commit/e0fa3742ead676a3074a10edadbc955e1a89153d
Christian Brabandt <cb@256bit.org>
parents:
7188
diff
changeset
|
1271 Squeezing the Current Tree-Listing Directory~ |
f5da459c5698
commit https://github.com/vim/vim/commit/e0fa3742ead676a3074a10edadbc955e1a89153d
Christian Brabandt <cb@256bit.org>
parents:
7188
diff
changeset
|
1272 |
f5da459c5698
commit https://github.com/vim/vim/commit/e0fa3742ead676a3074a10edadbc955e1a89153d
Christian Brabandt <cb@256bit.org>
parents:
7188
diff
changeset
|
1273 When the tree listing style is enabled (see |netrw-i|) and one is using |
f5da459c5698
commit https://github.com/vim/vim/commit/e0fa3742ead676a3074a10edadbc955e1a89153d
Christian Brabandt <cb@256bit.org>
parents:
7188
diff
changeset
|
1274 gvim, then the <s-cr> mapping may be used to squeeze (close) the |
f5da459c5698
commit https://github.com/vim/vim/commit/e0fa3742ead676a3074a10edadbc955e1a89153d
Christian Brabandt <cb@256bit.org>
parents:
7188
diff
changeset
|
1275 directory currently containing the cursor. |
f5da459c5698
commit https://github.com/vim/vim/commit/e0fa3742ead676a3074a10edadbc955e1a89153d
Christian Brabandt <cb@256bit.org>
parents:
7188
diff
changeset
|
1276 |
f5da459c5698
commit https://github.com/vim/vim/commit/e0fa3742ead676a3074a10edadbc955e1a89153d
Christian Brabandt <cb@256bit.org>
parents:
7188
diff
changeset
|
1277 Otherwise, one may remap a key combination of one's own choice to get |
f5da459c5698
commit https://github.com/vim/vim/commit/e0fa3742ead676a3074a10edadbc955e1a89153d
Christian Brabandt <cb@256bit.org>
parents:
7188
diff
changeset
|
1278 this effect: > |
f5da459c5698
commit https://github.com/vim/vim/commit/e0fa3742ead676a3074a10edadbc955e1a89153d
Christian Brabandt <cb@256bit.org>
parents:
7188
diff
changeset
|
1279 |
f5da459c5698
commit https://github.com/vim/vim/commit/e0fa3742ead676a3074a10edadbc955e1a89153d
Christian Brabandt <cb@256bit.org>
parents:
7188
diff
changeset
|
1280 nmap <buffer> <silent> <nowait> YOURKEYCOMBO <Plug>NetrwTreeSqueeze |
f5da459c5698
commit https://github.com/vim/vim/commit/e0fa3742ead676a3074a10edadbc955e1a89153d
Christian Brabandt <cb@256bit.org>
parents:
7188
diff
changeset
|
1281 < |
f5da459c5698
commit https://github.com/vim/vim/commit/e0fa3742ead676a3074a10edadbc955e1a89153d
Christian Brabandt <cb@256bit.org>
parents:
7188
diff
changeset
|
1282 Put this line in $HOME/ftplugin/netrw/netrw.vim; it needs to be generated |
f5da459c5698
commit https://github.com/vim/vim/commit/e0fa3742ead676a3074a10edadbc955e1a89153d
Christian Brabandt <cb@256bit.org>
parents:
7188
diff
changeset
|
1283 for netrw buffers only. |
5734 | 1284 |
6476 | 1285 Related topics: |
1286 |netrw-ctrl-r| |netrw-o| |netrw-p| | |
1287 |netrw-P| |netrw-t| |netrw-v| | |
1288 Associated setting variables: | |
1289 |g:netrw_browse_split| |g:netrw_fastbrowse| | |
1290 |g:netrw_ftp_list_cmd| |g:netrw_ftp_sizelist_cmd| | |
1291 |g:netrw_ftp_timelist_cmd| |g:netrw_ssh_browse_reject| | |
1292 |g:netrw_ssh_cmd| |g:netrw_use_noswf| | |
1621 | 1293 |
1294 | |
1295 BROWSING WITH A HORIZONTALLY SPLIT WINDOW *netrw-o* *netrw-horiz* {{{2 | |
1296 | |
1297 Normally one enters a file or directory using the <cr>. However, the "o" map | |
1298 allows one to open a new window to hold the new directory listing or file. A | |
1299 horizontal split is used. (for vertical splitting, see |netrw-v|) | |
1300 | |
1301 Normally, the o key splits the window horizontally with the new window and | |
3153 | 1302 cursor at the top. |
1621 | 1303 |
1304 Associated setting variables: |g:netrw_alto| |g:netrw_winsize| | |
1305 | |
6476 | 1306 Related topics: |
1307 |netrw-ctrl-r| |netrw-o| |netrw-p| | |
1308 |netrw-P| |netrw-t| |netrw-v| | |
3153 | 1309 Associated setting variables: |
1310 |g:netrw_alto| control above/below splitting | |
1311 |g:netrw_winsize| control initial sizing | |
1621 | 1312 |
6476 | 1313 BROWSING WITH A NEW TAB *netrw-t* {{{2 |
1621 | 1314 |
1315 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
|
1316 allows one to open a new window holding the new directory listing or file in |
4339 | 1317 a new tab. |
1318 | |
1319 If you'd like to have the new listing in a background tab, use |gT|. | |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1320 |
6476 | 1321 Related topics: |
1322 |netrw-ctrl-r| |netrw-o| |netrw-p| | |
1323 |netrw-P| |netrw-t| |netrw-v| | |
3153 | 1324 Associated setting variables: |
1325 |g:netrw_winsize| control initial sizing | |
1621 | 1326 |
1327 BROWSING WITH A VERTICALLY SPLIT WINDOW *netrw-v* {{{2 | |
1328 | |
1329 Normally one enters a file or directory using the <cr>. However, the "v" map | |
1330 allows one to open a new window to hold the new directory listing or file. A | |
1331 vertical split is used. (for horizontal splitting, see |netrw-o|) | |
1332 | |
1333 Normally, the v key splits the window vertically with the new window and | |
3153 | 1334 cursor at the left. |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1335 |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1336 There is only one tree listing buffer; using "v" on a displayed subdirectory |
1621 | 1337 will split the screen, but the same buffer will be shown twice. |
1338 | |
6476 | 1339 Related topics: |
1340 |netrw-ctrl-r| |netrw-o| |netrw-p| | |
1341 |netrw-P| |netrw-t| |netrw-v| | |
3153 | 1342 Associated setting variables: |
1343 |g:netrw_altv| control right/left splitting | |
1344 |g:netrw_winsize| control initial sizing | |
1345 | |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1346 |
6476 | 1347 BROWSING USING A GVIM SERVER *netrw-ctrl-r* {{{2 |
1348 | |
1349 One may keep a browsing gvim separate from the gvim being used to edit. | |
1350 Use the <c-r> map on a file (not a directory) in the netrw browser, and it | |
1351 will use a gvim server (see |g:netrw_servername|). Subsequent use of <cr> | |
1352 (see |netrw-cr|) will re-use that server for editing files. | |
1353 | |
1354 Related topics: | |
1355 |netrw-ctrl-r| |netrw-o| |netrw-p| | |
1356 |netrw-P| |netrw-t| |netrw-v| | |
1357 Associated setting variables: | |
1358 |g:netrw_servername| : sets name of server | |
1359 |g:netrw_browse_split| : controls how <cr> will open files | |
1360 | |
1361 | |
1362 CHANGE LISTING STYLE (THIN LONG WIDE TREE) *netrw-i* {{{2 | |
519 | 1363 |
1121 | 1364 The "i" map cycles between the thin, long, wide, and tree listing formats. |
12 | 1365 |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1366 The thin listing format gives just the files' and directories' names. |
519 | 1367 |
15 | 1368 The long listing is either based on the "ls" command via ssh for remote |
559 | 1369 directories or displays the filename, file size (in bytes), and the time and |
1370 date of last modification for local directories. With the long listing | |
1371 format, netrw is not able to recognize filenames which have trailing spaces. | |
1372 Use the thin listing format for such files. | |
519 | 1373 |
1121 | 1374 The wide listing format uses two or more contiguous spaces to delineate |
1375 filenames; when using that format, netrw won't be able to recognize or use | |
1376 filenames which have two or more contiguous spaces embedded in the name or any | |
1377 trailing spaces. The thin listing format will, however, work with such files. | |
5929 | 1378 The wide listing format is the most compact. |
1121 | 1379 |
1380 The tree listing format has a top directory followed by files and directories | |
5929 | 1381 preceded by one or more "|"s, which indicate the directory depth. One may |
1382 open and close directories by pressing the <cr> key while atop the directory | |
1383 name. | |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1384 |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1385 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
|
1386 As an example, by putting the following line in your .vimrc, > |
6476 | 1387 let g:netrw_liststyle= 3 |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1388 the tree style will become your default listing style. |
15 | 1389 |
3456 | 1390 One typical way to use the netrw tree display is to: > |
1391 | |
1392 vim . | |
1393 (use i until a tree display shows) | |
1394 navigate to a file | |
1395 v (edit as desired in vertically split window) | |
1396 ctrl-w h (to return to the netrw listing) | |
1397 P (edit newly selected file in the previous window) | |
1398 ctrl-w h (to return to the netrw listing) | |
1399 P (edit newly selected file in the previous window) | |
1400 ...etc... | |
1401 < | |
1621 | 1402 Associated setting variables: |g:netrw_liststyle| |g:netrw_maxfilenamelen| |
1403 |g:netrw_timefmt| |g:netrw_list_cmd| | |
1404 | |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1405 CHANGE FILE PERMISSION *netrw-gp* {{{2 |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1406 |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1407 "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
|
1408 Currently, this only works for local files. |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1409 |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1410 Associated setting variables: |g:netrw_chgperm| |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1411 |
1621 | 1412 |
1413 CHANGING TO A BOOKMARKED DIRECTORY *netrw-gb* {{{2 | |
1414 | |
1415 To change directory back to a bookmarked directory, use | |
1416 | |
1417 {cnt}gb | |
1418 | |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1419 Any count may be used to reference any of the bookmarks. |
4339 | 1420 Note that |netrw-qb| shows both bookmarks and history; to go |
1421 to a location stored in the history see |netrw-u| and |netrw-U|. | |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1422 |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1423 Related Topics: |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1424 |netrw-mB| how to delete bookmarks |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1425 |netrw-mb| how to make a bookmark |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1426 |netrw-qb| how to list bookmarks |
1621 | 1427 |
1428 | |
2152 | 1429 CHANGING TO A PREDECESSOR DIRECTORY *netrw-u* *netrw-updir* {{{2 |
36 | 1430 |
12785 | 1431 Every time you change to a new directory (new for the current session), netrw |
1432 will save the directory in a recently-visited directory history list (unless | |
1433 |g:netrw_dirhistmax| is zero; by default, it holds ten entries). With the "u" | |
1434 map, one can change to an earlier directory (predecessor). To do the | |
1435 opposite, see |netrw-U|. | |
1436 | |
1437 The "u" map also accepts counts to go back in the history several slots. For | |
1438 your convenience, qb (see |netrw-qb|) lists the history number which may be | |
1439 used in that count. | |
4339 | 1440 |
6476 | 1441 *.netrwhist* |
4339 | 1442 See |g:netrw_dirhistmax| for how to control the quantity of history stack |
6476 | 1443 slots. The file ".netrwhist" holds history when netrw (and vim) is not |
12785 | 1444 active. By default, its stored on the first directory on the user's |
6476 | 1445 |'runtimepath'|. |
1446 | |
1447 Related Topics: | |
1448 |netrw-U| changing to a successor directory | |
1449 |g:netrw_home| controls where .netrwhist is kept | |
4339 | 1450 |
36 | 1451 |
1621 | 1452 CHANGING TO A SUCCESSOR DIRECTORY *netrw-U* *netrw-downdir* {{{2 |
36 | 1453 |
1454 With the "U" map, one can change to a later directory (successor). | |
1455 This map is the opposite of the "u" map. (see |netrw-u|) Use the | |
7183
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
1456 qb map to list both the bookmarks and history. (see |netrw-qb|) |
1621 | 1457 |
4339 | 1458 The "U" map also accepts counts to go forward in the history several slots. |
1459 | |
1460 See |g:netrw_dirhistmax| for how to control the quantity of history stack | |
1461 slots. | |
1462 | |
1621 | 1463 |
7183
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
1464 CHANGING TREE TOP *netrw-ntree* *:Ntree* *netrw-gn* {{{2 |
5618 | 1465 |
1466 One may specify a new tree top for tree listings using > | |
1467 | |
1468 :Ntree [dirname] | |
1469 | |
1470 Without a "dirname", the current line is used (and any leading depth | |
1471 information is elided). | |
1472 With a "dirname", the specified directory name is used. | |
1473 | |
7183
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
1474 The "gn" map will take the word below the cursor and use that for |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
1475 changing the top of the tree listing. |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
1476 |
5618 | 1477 |
6476 | 1478 NETRW CLEAN *netrw-clean* *:NetrwClean* {{{2 |
1621 | 1479 |
12785 | 1480 With :NetrwClean one may easily remove netrw from one's home directory; |
1621 | 1481 more precisely, from the first directory on your |'runtimepath'|. |
1482 | |
12785 | 1483 With :NetrwClean!, netrw will attempt to remove netrw from all directories on |
7183
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
1484 your |'runtimepath'|. Of course, you have to have write/delete permissions |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
1485 correct to do this. |
1621 | 1486 |
1487 With either form of the command, netrw will first ask for confirmation | |
1488 that the removal is in fact what you want to do. If netrw doesn't have | |
1489 permission to remove a file, it will issue an error message. | |
36 | 1490 |
1121 | 1491 *netrw-gx* |
6476 | 1492 CUSTOMIZING BROWSING WITH A SPECIAL HANDLER *netrw-x* *netrw-handler* {{{2 |
1121 | 1493 (also see |netrw_filehandler|) |
650 | 1494 |
1495 Certain files, such as html, gif, jpeg, (word/office) doc, etc, files, are | |
6476 | 1496 best seen with a special handler (ie. a tool provided with your computer's |
1497 operating system). Netrw allows one to invoke such special handlers by: > | |
12 | 1498 |
650 | 1499 * when Exploring, hit the "x" key |
1500 * when editing, hit gx with the cursor atop the special filename | |
6476 | 1501 < (latter not available if the |g:netrw_nogx| variable exists) |
7183
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
1502 |
650 | 1503 Netrw determines which special handler by the following method: |
1504 | |
1505 * if |g:netrw_browsex_viewer| exists, then it will be used to attempt to | |
1506 view files. Examples of useful settings (place into your <.vimrc>): > | |
1507 | |
1508 :let g:netrw_browsex_viewer= "kfmclient exec" | |
1509 < or > | |
6476 | 1510 :let g:netrw_browsex_viewer= "xdg-open" |
650 | 1511 < |
6476 | 1512 If g:netrw_browsex_viewer == '-', then netrwFileHandlers#Invoke() will be |
1513 used instead (see |netrw_filehandler|). | |
12 | 1514 |
25700 | 1515 If the viewer you wish to use does not support handling of a remote URL |
1516 directory, set |g:netrw_browsex_support_remote| to 0. | |
12785 | 1517 * for Windows 32 or 64, the URL and FileProtocolHandler dlls are used. |
650 | 1518 * for Gnome (with gnome-open): gnome-open is used. |
6476 | 1519 * for KDE (with kfmclient) : kfmclient is used |
1621 | 1520 * for Mac OS X : open is used. |
559 | 1521 * otherwise the netrwFileHandler plugin is used. |
482 | 1522 |
1523 The file's suffix is used by these various approaches to determine an | |
559 | 1524 appropriate application to use to "handle" these files. Such things as |
1525 OpenOffice (*.sfx), visualization (*.jpg, *.gif, etc), and PostScript (*.ps, | |
1526 *.eps) can be handled. | |
482 | 1527 |
6476 | 1528 The gx mapping extends to all buffers; apply "gx" while atop a word and netrw |
1529 will apply a special handler to it (like "x" works when in a netrw buffer). | |
1530 One may also use visual mode (see |visual-start|) to select the text that the | |
1531 special handler will use. Normally gx uses expand("<cfile>") to pick up the | |
1532 text under the cursor; one may change what |expand()| uses via the | |
12785 | 1533 |g:netrw_gx| variable (options include "<cword>", "<cWORD>"). Note that |
1534 expand("<cfile>") depends on the |'isfname'| setting. Alternatively, one may | |
1535 select the text to be used by gx by making a visual selection (see | |
1536 |visual-block|) and then pressing gx. | |
6476 | 1537 |
1538 Associated setting variables: | |
1539 |g:netrw_gx| control how gx picks up the text under the cursor | |
1540 |g:netrw_nogx| prevent gx map while editing | |
8951
0bdeaf7092bc
commit https://github.com/vim/vim/commit/aa3b15dbebf333282503d6031e2f9ba6ee4398ed
Christian Brabandt <cb@256bit.org>
parents:
8148
diff
changeset
|
1541 |g:netrw_suppress_gx_mesg| controls gx's suppression of browser messages |
6476 | 1542 |
650 | 1543 *netrw_filehandler* |
1121 | 1544 |
6476 | 1545 When |g:netrw_browsex_viewer| exists and is "-", then netrw will attempt to |
1546 handle the special file with a vim function. The "x" map applies a function | |
1547 to a file, based on its extension. Of course, the handler function must exist | |
1548 for it to be called! | |
12 | 1549 > |
6476 | 1550 Ex. mypgm.html x -> NFH_html("scp://user@host/some/path/mypgm.html") |
1551 | |
1552 < Users may write their own netrw File Handler functions to | |
1553 support more suffixes with special handling. See | |
1554 <autoload/netrwFileHandlers.vim> for examples on how to make | |
1555 file handler functions. As an example: > | |
12 | 1556 |
1121 | 1557 " NFH_suffix(filename) |
1558 fun! NFH_suffix(filename) | |
1559 ..do something special with filename.. | |
1560 endfun | |
1561 < | |
1562 These functions need to be defined in some file in your .vim/plugin | |
1563 (vimfiles\plugin) directory. Vim's function names may not have punctuation | |
1564 characters (except for the underscore) in them. To support suffices that | |
1565 contain such characters, netrw will first convert the suffix using the | |
1566 following table: > | |
650 | 1567 |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1568 @ -> AT ! -> EXCLAMATION % -> PERCENT |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1569 : -> COLON = -> EQUAL ? -> QUESTION |
1121 | 1570 , -> COMMA - -> MINUS ; -> SEMICOLON |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1571 $ -> DOLLAR + -> PLUS ~ -> TILDE |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1572 < |
1121 | 1573 So, for example: > |
650 | 1574 |
1121 | 1575 file.rcs,v -> NFH_rcsCOMMAv() |
1576 < | |
1577 If more such translations are necessary, please send me email: > | |
19099 | 1578 NcampObell@SdrPchip.AorgM-NOSPAM |
1579 with a request. (remove the embedded NOSPAM first) | |
482 | 1580 |
1621 | 1581 Associated setting variable: |g:netrw_browsex_viewer| |
1582 | |
1583 *netrw-curdir* | |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1584 DELETING BOOKMARKS *netrw-mB* {{{2 |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1585 |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1586 To delete a bookmark, use > |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1587 |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1588 {cnt}mB |
6476 | 1589 |
1590 If there are marked files, then mB will remove them from the | |
1591 bookmark list. | |
1592 | |
1593 Alternatively, one may use :NetrwMB! (see |netrw-:NetrwMB|). > | |
1594 | |
1595 :NetrwMB! [files/directories] | |
1596 | |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1597 Related Topics: |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1598 |netrw-gb| how to return (go) to a bookmark |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1599 |netrw-mb| how to make a bookmark |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1600 |netrw-qb| how to list bookmarks |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1601 |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1602 |
1621 | 1603 DELETING FILES OR DIRECTORIES *netrw-delete* *netrw-D* *netrw-del* {{{2 |
1604 | |
1605 If files have not been marked with |netrw-mf|: (local marked file list) | |
1606 | |
1607 Deleting/removing files and directories involves moving the cursor to the | |
1608 file/directory to be deleted and pressing "D". Directories must be empty | |
1609 first before they can be successfully removed. If the directory is a | |
1610 softlink to a directory, then netrw will make two requests to remove the | |
1611 directory before succeeding. Netrw will ask for confirmation before doing | |
1612 the removal(s). You may select a range of lines with the "V" command | |
1613 (visual selection), and then pressing "D". | |
1614 | |
1615 If files have been marked with |netrw-mf|: (local marked file list) | |
1616 | |
1617 Marked files (and empty directories) will be deleted; again, you'll be | |
1618 asked to confirm the deletion before it actually takes place. | |
1619 | |
5929 | 1620 A further approach is to delete files which match a pattern. |
1621 | |
1622 * use :MF pattern (see |netrw-:MF|); then press "D". | |
1623 | |
1624 * use mr (see |netrw-mr|) which will prompt you for pattern. | |
1625 This will cause the matching files to be marked. Then, | |
1626 press "D". | |
1627 | |
12785 | 1628 If your vim has 7.4 with patch#1107, then |g:netrw_localrmdir| no longer |
1629 is used to remove directories; instead, vim's |delete()| is used with | |
1630 the "d" option. Please note that only empty directories may be deleted | |
1631 with the "D" mapping. Regular files are deleted with |delete()|, too. | |
1632 | |
1621 | 1633 The |g:netrw_rm_cmd|, |g:netrw_rmf_cmd|, and |g:netrw_rmdir_cmd| variables are |
5929 | 1634 used to control the attempts to remove remote files and directories. The |
1621 | 1635 g:netrw_rm_cmd is used with files, and its default value is: |
1636 | |
1637 g:netrw_rm_cmd: ssh HOSTNAME rm | |
1638 | |
1639 The g:netrw_rmdir_cmd variable is used to support the removal of directories. | |
1640 Its default value is: | |
1641 | |
5929 | 1642 |g:netrw_rmdir_cmd|: ssh HOSTNAME rmdir |
1621 | 1643 |
1644 If removing a directory fails with g:netrw_rmdir_cmd, netrw then will attempt | |
1645 to remove it again using the g:netrw_rmf_cmd variable. Its default value is: | |
1646 | |
5929 | 1647 |g:netrw_rmf_cmd|: ssh HOSTNAME rm -f |
1621 | 1648 |
3153 | 1649 Related topics: |netrw-d| |
3456 | 1650 Associated setting variable: |g:netrw_localrmdir| |g:netrw_rm_cmd| |
1621 | 1651 |g:netrw_rmdir_cmd| |g:netrw_ssh_cmd| |
1652 | |
1653 | |
1654 *netrw-explore* *netrw-hexplore* *netrw-nexplore* *netrw-pexplore* | |
5618 | 1655 *netrw-rexplore* *netrw-sexplore* *netrw-texplore* *netrw-vexplore* *netrw-lexplore* |
1621 | 1656 DIRECTORY EXPLORATION COMMANDS {{{2 |
1657 | |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1658 :[N]Explore[!] [dir]... Explore directory of current file *:Explore* |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1659 :[N]Hexplore[!] [dir]... Horizontal Split & Explore *:Hexplore* |
6476 | 1660 :[N]Lexplore[!] [dir]... Left Explorer Toggle *:Lexplore* |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1661 :[N]Sexplore[!] [dir]... Split&Explore current file's directory *:Sexplore* |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1662 :[N]Vexplore[!] [dir]... Vertical Split & Explore *:Vexplore* |
6476 | 1663 :Texplore [dir]... Tab & Explore *:Texplore* |
1664 :Rexplore ... Return to/from Explorer *:Rexplore* | |
1621 | 1665 |
1666 Used with :Explore **/pattern : (also see |netrw-starstar|) | |
1667 :Nexplore............. go to next matching file *:Nexplore* | |
1668 :Pexplore............. go to previous matching file *:Pexplore* | |
1669 | |
5734 | 1670 *netrw-:Explore* |
1621 | 1671 :Explore will open the local-directory browser on the current file's |
1672 directory (or on directory [dir] if specified). The window will be | |
6476 | 1673 split only if the file has been modified and |'hidden'| is not set, |
1674 otherwise the browsing window will take over that window. Normally | |
1675 the splitting is taken horizontally. | |
5734 | 1676 Also see: |netrw-:Rexplore| |
1621 | 1677 :Explore! is like :Explore, but will use vertical splitting. |
6476 | 1678 |
5734 | 1679 *netrw-:Hexplore* |
1621 | 1680 :Hexplore [dir] does an :Explore with |:belowright| horizontal splitting. |
1681 :Hexplore! [dir] does an :Explore with |:aboveleft| horizontal splitting. | |
6476 | 1682 |
1683 *netrw-:Lexplore* | |
1684 :[N]Lexplore [dir] toggles a full height Explorer window on the left hand side | |
1685 of the current tab. It will open a netrw window on the current | |
1686 directory if [dir] is omitted; a :Lexplore [dir] will show the | |
1687 specified directory in the left-hand side browser display no matter | |
7183
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
1688 from which window the command is issued. |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
1689 |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
1690 By default, :Lexplore will change an uninitialized |g:netrw_chgwin| |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
1691 to 2; edits will thus preferentially be made in window#2. |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
1692 |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
1693 The [N] specifies a |g:netrw_winsize| just for the new :Lexplore |
6476 | 1694 window. |
7183
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
1695 |
12785 | 1696 Those who like this method often also like tree style displays; |
6476 | 1697 see |g:netrw_liststyle|. |
1698 | |
12785 | 1699 :[N]Lexplore! [dir] is similar to :Lexplore, except that the full-height |
1700 Explorer window will open on the right hand side and an | |
1701 uninitialized |g:netrw_chgwin| will be set to 1 (eg. edits will | |
1702 preferentially occur in the leftmost window). | |
1703 | |
7183
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
1704 Also see: |netrw-C| |g:netrw_browse_split| |g:netrw_wiw| |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
1705 |netrw-p| |netrw-P| |g:netrw_chgwin| |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
1706 |netrw-c-tab| |g:netrw_winsize| |
6476 | 1707 |
1708 *netrw-:Sexplore* | |
1709 :[N]Sexplore will always split the window before invoking the local-directory | |
1710 browser. As with Explore, the splitting is normally done | |
1711 horizontally. | |
1712 :[N]Sexplore! [dir] is like :Sexplore, but the splitting will be done vertically. | |
1713 | |
5734 | 1714 *netrw-:Texplore* |
5618 | 1715 :Texplore [dir] does a |:tabnew| before generating the browser window |
1621 | 1716 |
6476 | 1717 *netrw-:Vexplore* |
1718 :[N]Vexplore [dir] does an :Explore with |:leftabove| vertical splitting. | |
1719 :[N]Vexplore! [dir] does an :Explore with |:rightbelow| vertical splitting. | |
1720 | |
1721 The optional parameters are: | |
1722 | |
1723 [N]: This parameter will override |g:netrw_winsize| to specify the quantity of | |
1724 rows and/or columns the new explorer window should have. | |
1725 Otherwise, the |g:netrw_winsize| variable, if it has been specified by the | |
1726 user, is used to control the quantity of rows and/or columns new | |
1727 explorer windows should have. | |
1728 | |
1729 [dir]: By default, these explorer commands use the current file's directory. | |
1730 However, one may explicitly provide a directory (path) to use instead; | |
1731 ie. > | |
1732 | |
1733 :Explore /some/path | |
1734 < | |
5734 | 1735 *netrw-:Rexplore* |
6476 | 1736 :Rexplore This command is a little different from the other Explore commands |
1737 as it doesn't necessarily open an Explorer window. | |
5734 | 1738 |
1739 Return to Explorer~ | |
6476 | 1740 When one edits a file using netrw which can occur, for example, |
1741 when pressing <cr> while the cursor is atop a filename in a netrw | |
1742 browser window, a :Rexplore issued while editing that file will | |
1743 return the display to that of the last netrw browser display in | |
1744 that window. | |
5734 | 1745 |
1746 Return from Explorer~ | |
1747 Conversely, when one is editing a directory, issuing a :Rexplore | |
5929 | 1748 will return to editing the file that was last edited in that |
5734 | 1749 window. |
1750 | |
1751 The <2-leftmouse> map (which is only available under gvim and | |
1752 cooperative terms) does the same as :Rexplore. | |
1621 | 1753 |
5618 | 1754 Also see: |g:netrw_alto| |g:netrw_altv| |g:netrw_winsize| |
1755 | |
1621 | 1756 |
6476 | 1757 *netrw-star* *netrw-starpat* *netrw-starstar* *netrw-starstarpat* *netrw-grep* |
1758 EXPLORING WITH STARS AND PATTERNS {{{2 | |
1621 | 1759 |
1760 When Explore, Sexplore, Hexplore, or Vexplore are used with one of the | |
8148
f5da459c5698
commit https://github.com/vim/vim/commit/e0fa3742ead676a3074a10edadbc955e1a89153d
Christian Brabandt <cb@256bit.org>
parents:
7188
diff
changeset
|
1761 following four patterns Explore generates a list of files which satisfy the |
f5da459c5698
commit https://github.com/vim/vim/commit/e0fa3742ead676a3074a10edadbc955e1a89153d
Christian Brabandt <cb@256bit.org>
parents:
7188
diff
changeset
|
1762 request for the local file system. These exploration patterns will not work |
f5da459c5698
commit https://github.com/vim/vim/commit/e0fa3742ead676a3074a10edadbc955e1a89153d
Christian Brabandt <cb@256bit.org>
parents:
7188
diff
changeset
|
1763 with remote file browsing. |
1621 | 1764 |
1765 */filepat files in current directory which satisfy filepat | |
1766 **/filepat files in current directory or below which satisfy the | |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1767 file pattern |
1621 | 1768 *//pattern files in the current directory which contain the |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1769 pattern (vimgrep is used) |
1621 | 1770 **//pattern files in the current directory or below which contain |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1771 the pattern (vimgrep is used) |
464 | 1772 < |
1621 | 1773 The cursor will be placed on the first file in the list. One may then |
1774 continue to go to subsequent files on that list via |:Nexplore| or to | |
1775 preceding files on that list with |:Pexplore|. Explore will update the | |
1776 directory and place the cursor appropriately. | |
1777 | |
1778 A plain > | |
1779 :Explore | |
1780 will clear the explore list. | |
1781 | |
1782 If your console or gui produces recognizable shift-up or shift-down sequences, | |
1783 then you'll likely find using shift-downarrow and shift-uparrow convenient. | |
6476 | 1784 They're mapped by netrw as follows: |
1621 | 1785 |
1786 <s-down> == Nexplore, and | |
1787 <s-up> == Pexplore. | |
1788 | |
1789 As an example, consider | |
1790 > | |
1791 :Explore */*.c | |
1792 :Nexplore | |
1793 :Nexplore | |
1794 :Pexplore | |
1795 < | |
1796 The status line will show, on the right hand side of the status line, a | |
1797 message like "Match 3 of 20". | |
1798 | |
5734 | 1799 Associated setting variables: |
1800 |g:netrw_keepdir| |g:netrw_browse_split| | |
1801 |g:netrw_fastbrowse| |g:netrw_ftp_browse_reject| | |
1802 |g:netrw_ftp_list_cmd| |g:netrw_ftp_sizelist_cmd| | |
1803 |g:netrw_ftp_timelist_cmd| |g:netrw_list_cmd| | |
1804 |g:netrw_liststyle| | |
1621 | 1805 |
1806 | |
1807 DISPLAYING INFORMATION ABOUT FILE *netrw-qf* {{{2 | |
1808 | |
1809 With the cursor atop a filename, pressing "qf" will reveal the file's size | |
1810 and last modification timestamp. Currently this capability is only available | |
1811 for local files. | |
1812 | |
1813 | |
1814 EDIT FILE OR DIRECTORY HIDING LIST *netrw-ctrl-h* *netrw-edithide* {{{2 | |
1815 | |
1816 The "<ctrl-h>" map brings up a requestor allowing the user to change the | |
1817 file/directory hiding list contained in |g:netrw_list_hide|. The hiding list | |
1818 consists of one or more patterns delimited by commas. Files and/or | |
1819 directories satisfying these patterns will either be hidden (ie. not shown) or | |
1820 be the only ones displayed (see |netrw-a|). | |
1821 | |
1822 The "gh" mapping (see |netrw-gh|) quickly alternates between the usual | |
1823 hiding list and the hiding of files or directories that begin with ".". | |
1824 | |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1825 As an example, > |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1826 let g:netrw_list_hide= '\(^\|\s\s\)\zs\.\S\+' |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1827 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
|
1828 What it means: |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1829 |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1830 \(^\|\s\s\) : if the line begins with the following, -or- |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1831 two consecutive spaces are encountered |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1832 \zs : start the hiding match now |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1833 \. : if it now begins with a dot |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1834 \S\+ : and is followed by one or more non-whitespace |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1835 characters |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1836 |
1621 | 1837 Associated setting variables: |g:netrw_hide| |g:netrw_list_hide| |
1838 Associated topics: |netrw-a| |netrw-gh| |netrw-mh| | |
1839 | |
3153 | 1840 *netrw-sort-sequence* |
1621 | 1841 EDITING THE SORTING SEQUENCE *netrw-S* *netrw-sortsequence* {{{2 |
1842 | |
1843 When "Sorted by" is name, one may specify priority via the sorting sequence | |
1844 (g:netrw_sort_sequence). The sorting sequence typically prioritizes the | |
1845 name-listing by suffix, although any pattern will do. Patterns are delimited | |
1846 by commas. The default sorting sequence is (all one line): | |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1847 |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1848 For Unix: > |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1849 '[\/]$,\<core\%(\.\d\+\)\=,\.[a-np-z]$,\.h$,\.c$,\.cpp$,*,\.o$,\.obj$, |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1850 \.info$,\.swp$,\.bak$,\~$' |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1851 < |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1852 Otherwise: > |
1621 | 1853 '[\/]$,\.[a-np-z]$,\.h$,\.c$,\.cpp$,*,\.o$,\.obj$,\.info$, |
1854 \.swp$,\.bak$,\~$' | |
1855 < | |
1856 The lone * is where all filenames not covered by one of the other patterns | |
1857 will end up. One may change the sorting sequence by modifying the | |
1858 g:netrw_sort_sequence variable (either manually or in your <.vimrc>) or by | |
1859 using the "S" map. | |
1860 | |
1668 | 1861 Related topics: |netrw-s| |netrw-S| |
1862 Associated setting variables: |g:netrw_sort_sequence| |g:netrw_sort_options| | |
1621 | 1863 |
1864 | |
6476 | 1865 EXECUTING FILE UNDER CURSOR VIA SYSTEM() *netrw-X* {{{2 |
3920 | 1866 |
1867 Pressing X while the cursor is atop an executable file will yield a prompt | |
1868 using the filename asking for any arguments. Upon pressing a [return], netrw | |
12785 | 1869 will then call |system()| with that command and arguments. The result will be |
1870 displayed by |:echomsg|, and so |:messages| will repeat display of the result. | |
1871 Ansi escape sequences will be stripped out. | |
1872 | |
1873 See |cmdline-window| for directions for more on how to edit the arguments. | |
3920 | 1874 |
1875 | |
2751 | 1876 FORCING TREATMENT AS A FILE OR DIRECTORY *netrw-gd* *netrw-gf* {{{2 |
1877 | |
1878 Remote symbolic links (ie. those listed via ssh or ftp) are problematic | |
1879 in that it is difficult to tell whether they link to a file or to a | |
1880 directory. | |
1881 | |
1882 To force treatment as a file: use > | |
3920 | 1883 gf |
2751 | 1884 < |
1885 To force treatment as a directory: use > | |
3920 | 1886 gd |
2751 | 1887 < |
1888 | |
1621 | 1889 GOING UP *netrw--* {{{2 |
1890 | |
1891 To go up a directory, press "-" or press the <cr> when atop the ../ directory | |
1892 entry in the listing. | |
1893 | |
1894 Netrw will use the command in |g:netrw_list_cmd| to perform the directory | |
1895 listing operation after changing HOSTNAME to the host specified by the | |
5734 | 1896 user-prpvided url. By default netrw provides the command as: > |
1621 | 1897 |
1898 ssh HOSTNAME ls -FLa | |
5734 | 1899 < |
1621 | 1900 where the HOSTNAME becomes the [user@]hostname as requested by the attempt to |
1901 read. Naturally, the user may override this command with whatever is | |
1902 preferred. The NetList function which implements remote browsing | |
1903 expects that directories will be flagged by a trailing slash. | |
1904 | |
1905 | |
1906 HIDING FILES OR DIRECTORIES *netrw-a* *netrw-hiding* {{{2 | |
1907 | |
1908 Netrw's browsing facility allows one to use the hiding list in one of three | |
1909 ways: ignore it, hide files which match, and show only those files which | |
1910 match. | |
1911 | |
1912 If no files have been marked via |netrw-mf|: | |
1913 | |
1914 The "a" map allows the user to cycle through the three hiding modes. | |
1915 | |
1916 The |g:netrw_list_hide| variable holds a comma delimited list of patterns | |
1917 based on regular expressions (ex. ^.*\.obj$,^\.) which specify the hiding list. | |
1918 (also see |netrw-ctrl-h|) To set the hiding list, use the <c-h> map. As an | |
1919 example, to hide files which begin with a ".", one may use the <c-h> map to | |
1920 set the hiding list to '^\..*' (or one may put let g:netrw_list_hide= '^\..*' | |
1921 in one's <.vimrc>). One may then use the "a" key to show all files, hide | |
1922 matching files, or to show only the matching files. | |
1923 | |
1924 Example: \.[ch]$ | |
1925 This hiding list command will hide/show all *.c and *.h files. | |
1926 | |
1927 Example: \.c$,\.h$ | |
1928 This hiding list command will also hide/show all *.c and *.h | |
1929 files. | |
1930 | |
1931 Don't forget to use the "a" map to select the mode (normal/hiding/show) you | |
1932 want! | |
1933 | |
1934 If files have been marked using |netrw-mf|, then this command will: | |
1935 | |
1936 if showing all files or non-hidden files: | |
1937 modify the g:netrw_list_hide list by appending the marked files to it | |
1938 and showing only non-hidden files. | |
1939 | |
1940 else if showing hidden files only: | |
1941 modify the g:netrw_list_hide list by removing the marked files from it | |
1942 and showing only non-hidden files. | |
1943 endif | |
1944 | |
1945 *netrw-gh* *netrw-hide* | |
1946 As a quick shortcut, one may press > | |
1947 gh | |
1948 to toggle between hiding files which begin with a period (dot) and not hiding | |
1949 them. | |
1950 | |
5618 | 1951 Associated setting variables: |g:netrw_list_hide| |g:netrw_hide| |
1621 | 1952 Associated topics: |netrw-a| |netrw-ctrl-h| |netrw-mh| |
1953 | |
5618 | 1954 *netrw-gitignore* |
1955 Netrw provides a helper function 'netrw_gitignore#Hide()' that, when used with | |
1956 |g:netrw_list_hide| automatically hides all git-ignored files. | |
1957 | |
6476 | 1958 'netrw_gitignore#Hide' searches for patterns in the following files: > |
1959 | |
5618 | 1960 './.gitignore' |
1961 './.git/info/exclude' | |
1962 global gitignore file: `git config --global core.excludesfile` | |
1963 system gitignore file: `git config --system core.excludesfile` | |
6476 | 1964 < |
5618 | 1965 Files that do not exist, are ignored. |
1966 Git-ignore patterns are taken from existing files, and converted to patterns for | |
1967 hiding files. For example, if you had '*.log' in your '.gitignore' file, it | |
1968 would be converted to '.*\.log'. | |
1969 | |
6476 | 1970 To use this function, simply assign its output to |g:netrw_list_hide| option. > |
5618 | 1971 |
1972 Example: let g:netrw_list_hide= netrw_gitignore#Hide() | |
1973 Git-ignored files are hidden in Netrw. | |
1974 | |
1975 Example: let g:netrw_list_hide= netrw_gitignore#Hide('my_gitignore_file') | |
1976 Function can take additional files with git-ignore patterns. | |
1977 | |
1978 Example: g:netrw_list_hide= netrw_gitignore#Hide() . '.*\.swp$' | |
1979 Combining 'netrw_gitignore#Hide' with custom patterns. | |
6476 | 1980 < |
5618 | 1981 |
1621 | 1982 IMPROVING BROWSING *netrw-listhack* *netrw-ssh-hack* {{{2 |
12 | 1983 |
1984 Especially with the remote directory browser, constantly entering the password | |
1985 is tedious. | |
1986 | |
1121 | 1987 For Linux/Unix systems, the book "Linux Server Hacks - 100 industrial strength |
1209 | 1988 tips & tools" by Rob Flickenger (O'Reilly, ISBN 0-596-00461-3) gives a tip |
1989 for setting up no-password ssh and scp and discusses associated security | |
1121 | 1990 issues. It used to be available at http://hacks.oreilly.com/pub/h/66 , |
1991 but apparently that address is now being redirected to some "hackzine". | |
1698 | 1992 I'll attempt a summary based on that article and on a communication from |
1993 Ben Schmidt: | |
1994 | |
1995 1. Generate a public/private key pair on the local machine | |
1996 (ssh client): > | |
1997 ssh-keygen -t rsa | |
1998 (saving the file in ~/.ssh/id_rsa as prompted) | |
1999 < | |
2000 2. Just hit the <CR> when asked for passphrase (twice) for no | |
2001 passphrase. If you do use a passphrase, you will also need to use | |
2002 ssh-agent so you only have to type the passphrase once per session. | |
2003 If you don't use a passphrase, simply logging onto your local | |
2004 computer or getting access to the keyfile in any way will suffice | |
2005 to access any ssh servers which have that key authorized for login. | |
2006 | |
2007 3. This creates two files: > | |
2008 ~/.ssh/id_rsa | |
2009 ~/.ssh/id_rsa.pub | |
2010 < | |
2011 4. On the target machine (ssh server): > | |
2012 cd | |
2013 mkdir -p .ssh | |
2014 chmod 0700 .ssh | |
2015 < | |
2016 5. On your local machine (ssh client): (one line) > | |
2017 ssh {serverhostname} | |
2018 cat '>>' '~/.ssh/authorized_keys2' < ~/.ssh/id_rsa.pub | |
2019 < | |
2020 or, for OpenSSH, (one line) > | |
2021 ssh {serverhostname} | |
2022 cat '>>' '~/.ssh/authorized_keys' < ~/.ssh/id_rsa.pub | |
2023 < | |
2024 You can test it out with > | |
2025 ssh {serverhostname} | |
2026 and you should be log onto the server machine without further need to type | |
2027 anything. | |
2028 | |
2029 If you decided to use a passphrase, do: > | |
2030 ssh-agent $SHELL | |
2031 ssh-add | |
2032 ssh {serverhostname} | |
2033 You will be prompted for your key passphrase when you use ssh-add, but not | |
2034 subsequently when you use ssh. For use with vim, you can use > | |
2035 ssh-agent vim | |
2036 and, when next within vim, use > | |
2037 :!ssh-add | |
2038 Alternatively, you can apply ssh-agent to the terminal you're planning on | |
2039 running vim in: > | |
2040 ssh-agent xterm & | |
2041 and do ssh-add whenever you need. | |
9 | 2042 |
1121 | 2043 For Windows, folks on the vim mailing list have mentioned that Pageant helps |
2044 with avoiding the constant need to enter the password. | |
794 | 2045 |
1621 | 2046 Kingston Fung wrote about another way to avoid constantly needing to enter |
2047 passwords: | |
2048 | |
2049 In order to avoid the need to type in the password for scp each time, you | |
2050 provide a hack in the docs to set up a non password ssh account. I found a | |
2051 better way to do that: I can use a regular ssh account which uses a | |
2052 password to access the material without the need to key-in the password | |
2053 each time. It's good for security and convenience. I tried ssh public key | |
2054 authorization + ssh-agent, implementing this, and it works! Here are two | |
2055 links with instructions: | |
2056 | |
2057 http://www.ibm.com/developerworks/library/l-keyc2/ | |
2058 http://sial.org/howto/openssh/publickey-auth/ | |
2059 | |
2060 | |
5618 | 2061 Ssh hints: |
2062 | |
2063 Thomer Gil has provided a hint on how to speed up netrw+ssh: | |
2064 http://thomer.com/howtos/netrw_ssh.html | |
2065 | |
2066 Alex Young has several hints on speeding ssh up: | |
2067 http://usevim.com/2012/03/16/editing-remote-files/ | |
2068 | |
2069 | |
1621 | 2070 LISTING BOOKMARKS AND HISTORY *netrw-qb* *netrw-listbookmark* {{{2 |
2071 | |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2072 Pressing "qb" (query bookmarks) will list both the bookmarked directories and |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2073 directory traversal history. |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2074 |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2075 Related Topics: |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2076 |netrw-gb| how to return (go) to a bookmark |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2077 |netrw-mb| how to make a bookmark |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2078 |netrw-mB| how to delete bookmarks |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2079 |netrw-u| change to a predecessor directory via the history stack |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2080 |netrw-U| change to a successor directory via the history stack |
1621 | 2081 |
2082 MAKING A NEW DIRECTORY *netrw-d* {{{2 | |
2083 | |
2084 With the "d" map one may make a new directory either remotely (which depends | |
2085 on the global variable g:netrw_mkdir_cmd) or locally (which depends on the | |
3456 | 2086 global variable g:netrw_localmkdir). Netrw will issue a request for the new |
1621 | 2087 directory's name. A bare <CR> at that point will abort the making of the |
2088 directory. Attempts to make a local directory that already exists (as either | |
2089 a file or a directory) will be detected, reported on, and ignored. | |
2090 | |
3153 | 2091 Related topics: |netrw-D| |
5618 | 2092 Associated setting variables: |g:netrw_localmkdir| |g:netrw_mkdir_cmd| |
2093 |g:netrw_remote_mkdir| |netrw-%| | |
1621 | 2094 |
2095 | |
12785 | 2096 MAKING THE BROWSING DIRECTORY THE CURRENT DIRECTORY *netrw-cd* {{{2 |
1621 | 2097 |
2098 By default, |g:netrw_keepdir| is 1. This setting means that the current | |
4339 | 2099 directory will not track the browsing directory. (done for backwards |
2100 compatibility with v6's file explorer). | |
2101 | |
2102 Setting g:netrw_keepdir to 0 tells netrw to make vim's current directory | |
1621 | 2103 track netrw's browsing directory. |
2104 | |
2105 However, given the default setting for g:netrw_keepdir of 1 where netrw | |
2106 maintains its own separate notion of the current directory, in order to make | |
17433 | 2107 the two directories the same, use the "cd" map (type cd). That map will |
1621 | 2108 set Vim's notion of the current directory to netrw's current browsing |
2109 directory. | |
2110 | |
25700 | 2111 |netrw-cd| : This map's name was changed from "c" to cd (see |netrw-cd|). |
2112 This change was done to allow for |netrw-cb| and |netrw-cB| maps. | |
12785 | 2113 |
1621 | 2114 Associated setting variable: |g:netrw_keepdir| |
2115 | |
5734 | 2116 MARKING FILES *netrw-:MF* *netrw-mf* {{{2 |
1621 | 2117 (also see |netrw-mr|) |
2118 | |
6476 | 2119 Netrw provides several ways to mark files: |
5734 | 2120 |
2121 * One may mark files with the cursor atop a filename and | |
5929 | 2122 then pressing "mf". |
5734 | 2123 |
2124 * With gvim, in addition one may mark files with | |
5929 | 2125 <s-leftmouse>. (see |netrw-mouse|) |
5734 | 2126 |
2127 * One may use the :MF command, which takes a list of | |
5929 | 2128 files (for local directories, the list may include |
2129 wildcards -- see |glob()|) > | |
5734 | 2130 |
2131 :MF *.c | |
2132 < | |
8148
f5da459c5698
commit https://github.com/vim/vim/commit/e0fa3742ead676a3074a10edadbc955e1a89153d
Christian Brabandt <cb@256bit.org>
parents:
7188
diff
changeset
|
2133 (Note that :MF uses |<f-args>| to break the line |
f5da459c5698
commit https://github.com/vim/vim/commit/e0fa3742ead676a3074a10edadbc955e1a89153d
Christian Brabandt <cb@256bit.org>
parents:
7188
diff
changeset
|
2134 at spaces) |
f5da459c5698
commit https://github.com/vim/vim/commit/e0fa3742ead676a3074a10edadbc955e1a89153d
Christian Brabandt <cb@256bit.org>
parents:
7188
diff
changeset
|
2135 |
f5da459c5698
commit https://github.com/vim/vim/commit/e0fa3742ead676a3074a10edadbc955e1a89153d
Christian Brabandt <cb@256bit.org>
parents:
7188
diff
changeset
|
2136 * Mark files using the |argument-list| (|netrw-mA|) |
f5da459c5698
commit https://github.com/vim/vim/commit/e0fa3742ead676a3074a10edadbc955e1a89153d
Christian Brabandt <cb@256bit.org>
parents:
7188
diff
changeset
|
2137 |
f5da459c5698
commit https://github.com/vim/vim/commit/e0fa3742ead676a3074a10edadbc955e1a89153d
Christian Brabandt <cb@256bit.org>
parents:
7188
diff
changeset
|
2138 * Mark files based upon a |location-list| (|netrw-qL|) |
5929 | 2139 |
2140 * Mark files based upon the quickfix list (|netrw-qF|) | |
8148
f5da459c5698
commit https://github.com/vim/vim/commit/e0fa3742ead676a3074a10edadbc955e1a89153d
Christian Brabandt <cb@256bit.org>
parents:
7188
diff
changeset
|
2141 (|quickfix-error-lists|) |
5734 | 2142 |
2143 The following netrw maps make use of marked files: | |
1621 | 2144 |
2145 |netrw-a| Hide marked files/directories | |
2146 |netrw-D| Delete marked files/directories | |
8148
f5da459c5698
commit https://github.com/vim/vim/commit/e0fa3742ead676a3074a10edadbc955e1a89153d
Christian Brabandt <cb@256bit.org>
parents:
7188
diff
changeset
|
2147 |netrw-ma| Move marked files' names to |arglist| |
f5da459c5698
commit https://github.com/vim/vim/commit/e0fa3742ead676a3074a10edadbc955e1a89153d
Christian Brabandt <cb@256bit.org>
parents:
7188
diff
changeset
|
2148 |netrw-mA| Move |arglist| filenames to marked file list |
6476 | 2149 |netrw-mb| Append marked files to bookmarks |
2150 |netrw-mB| Delete marked files from bookmarks | |
1621 | 2151 |netrw-mc| Copy marked files to target |
2152 |netrw-md| Apply vimdiff to marked files | |
2153 |netrw-me| Edit marked files | |
4339 | 2154 |netrw-mF| Unmark marked files |
1621 | 2155 |netrw-mg| Apply vimgrep to marked files |
5734 | 2156 |netrw-mm| Move marked files to target |
1621 | 2157 |netrw-mp| Print marked files |
12785 | 2158 |netrw-ms| Netrw will source marked files |
1621 | 2159 |netrw-mt| Set target for |netrw-mm| and |netrw-mc| |
2160 |netrw-mT| Generate tags using marked files | |
6476 | 2161 |netrw-mv| Apply vim command to marked files |
1621 | 2162 |netrw-mx| Apply shell command to marked files |
6476 | 2163 |netrw-mX| Apply shell command to marked files, en bloc |
1621 | 2164 |netrw-mz| Compress/Decompress marked files |
2165 |netrw-O| Obtain marked files | |
2166 |netrw-R| Rename marked files | |
2167 | |
2168 One may unmark files one at a time the same way one marks them; ie. place | |
2169 the cursor atop a marked file and press "mf". This process also works | |
2170 with <s-leftmouse> using gvim. One may unmark all files by pressing | |
2171 "mu" (see |netrw-mu|). | |
2172 | |
2751 | 2173 Marked files are highlighted using the "netrwMarkFile" highlighting group, |
2174 which by default is linked to "Identifier" (see Identifier under | |
2175 |group-name|). You may change the highlighting group by putting something | |
2176 like > | |
2177 | |
2178 highlight clear netrwMarkFile | |
2179 hi link netrwMarkFile ..whatever.. | |
2180 < | |
2181 into $HOME/.vim/after/syntax/netrw.vim . | |
2182 | |
5618 | 2183 If the mouse is enabled and works with your vim, you may use <s-leftmouse> to |
2184 mark one or more files. You may mark multiple files by dragging the shifted | |
2185 leftmouse. (see |netrw-mouse|) | |
2186 | |
6476 | 2187 *markfilelist* *global_markfilelist* *local_markfilelist* |
1621 | 2188 All marked files are entered onto the global marked file list; there is only |
6476 | 2189 one such list. In addition, every netrw buffer also has its own buffer-local |
2190 marked file list; since netrw buffers are associated with specific | |
2191 directories, this means that each directory has its own local marked file | |
2192 list. The various commands which operate on marked files use one or the other | |
2193 of the marked file lists. | |
1621 | 2194 |
5734 | 2195 Known Problem: if one is using tree mode (|g:netrw_liststyle|) and several |
2196 directories have files with the same name, then marking such a file will | |
2197 result in all such files being highlighted as if they were all marked. The | |
2198 |markfilelist|, however, will only have the selected file in it. This problem | |
2199 is unlikely to be fixed. | |
2200 | |
1621 | 2201 |
4339 | 2202 UNMARKING FILES *netrw-mF* {{{2 |
7183
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
2203 (also see |netrw-mf|, |netrw-mu|) |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
2204 |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
2205 The "mF" command will unmark all files in the current buffer. One may also use |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
2206 mf (|netrw-mf|) on a specific, already marked, file to unmark just that file. |
4339 | 2207 |
8148
f5da459c5698
commit https://github.com/vim/vim/commit/e0fa3742ead676a3074a10edadbc955e1a89153d
Christian Brabandt <cb@256bit.org>
parents:
7188
diff
changeset
|
2208 MARKING FILES BY LOCATION LIST *netrw-qL* {{{2 |
f5da459c5698
commit https://github.com/vim/vim/commit/e0fa3742ead676a3074a10edadbc955e1a89153d
Christian Brabandt <cb@256bit.org>
parents:
7188
diff
changeset
|
2209 (also see |netrw-mf|) |
f5da459c5698
commit https://github.com/vim/vim/commit/e0fa3742ead676a3074a10edadbc955e1a89153d
Christian Brabandt <cb@256bit.org>
parents:
7188
diff
changeset
|
2210 |
f5da459c5698
commit https://github.com/vim/vim/commit/e0fa3742ead676a3074a10edadbc955e1a89153d
Christian Brabandt <cb@256bit.org>
parents:
7188
diff
changeset
|
2211 One may convert |location-list|s into a marked file list using "qL". |
f5da459c5698
commit https://github.com/vim/vim/commit/e0fa3742ead676a3074a10edadbc955e1a89153d
Christian Brabandt <cb@256bit.org>
parents:
7188
diff
changeset
|
2212 You may then proceed with commands such as me (|netrw-me|) to edit them. |
f5da459c5698
commit https://github.com/vim/vim/commit/e0fa3742ead676a3074a10edadbc955e1a89153d
Christian Brabandt <cb@256bit.org>
parents:
7188
diff
changeset
|
2213 |
f5da459c5698
commit https://github.com/vim/vim/commit/e0fa3742ead676a3074a10edadbc955e1a89153d
Christian Brabandt <cb@256bit.org>
parents:
7188
diff
changeset
|
2214 |
f5da459c5698
commit https://github.com/vim/vim/commit/e0fa3742ead676a3074a10edadbc955e1a89153d
Christian Brabandt <cb@256bit.org>
parents:
7188
diff
changeset
|
2215 MARKING FILES BY QUICKFIX LIST *netrw-qF* {{{2 |
4339 | 2216 (also see |netrw-mf|) |
2217 | |
7183
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
2218 One may convert |quickfix-error-lists| into a marked file list using "qF". |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
2219 You may then proceed with commands such as me (|netrw-me|) to edit them. |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
2220 Quickfix error lists are generated, for example, by calls to |:vimgrep|. |
4339 | 2221 |
2222 | |
1621 | 2223 MARKING FILES BY REGULAR EXPRESSION *netrw-mr* {{{2 |
2224 (also see |netrw-mf|) | |
2225 | |
2226 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
|
2227 "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
|
2228 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
|
2229 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
|
2230 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
|
2231 expressions (yet-another-option). |
1621 | 2232 |
12785 | 2233 See |cmdline-window| for directions on more on how to edit the regular |
2234 expression. | |
2235 | |
1621 | 2236 |
6476 | 2237 MARKED FILES, ARBITRARY VIM COMMAND *netrw-mv* {{{2 |
2238 (See |netrw-mf| and |netrw-mr| for how to mark files) | |
2239 (uses the local marked-file list) | |
2240 | |
7183
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
2241 The "mv" map causes netrw to execute an arbitrary vim command on each file on |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
2242 the local marked file list, individually: |
6476 | 2243 |
2244 * 1split | |
2245 * sil! keepalt e file | |
2246 * run vim command | |
2247 * sil! keepalt wq! | |
2248 | |
12785 | 2249 A prompt, "Enter vim command: ", will be issued to elicit the vim command you |
2250 wish used. See |cmdline-window| for directions for more on how to edit the | |
2251 command. | |
7183
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
2252 |
6476 | 2253 |
2254 MARKED FILES, ARBITRARY SHELL COMMAND *netrw-mx* {{{2 | |
1621 | 2255 (See |netrw-mf| and |netrw-mr| for how to mark files) |
2256 (uses the local marked-file list) | |
2257 | |
2258 Upon activation of the "mx" map, netrw will query the user for some (external) | |
2259 command to be applied to all marked files. All "%"s in the command will be | |
2260 substituted with the name of each marked file in turn. If no "%"s are in the | |
2261 command, then the command will be followed by a space and a marked filename. | |
2262 | |
6476 | 2263 Example: |
2264 (mark files) | |
2265 mx | |
2266 Enter command: cat | |
2267 | |
2268 The result is a series of shell commands: | |
2269 cat 'file1' | |
2270 cat 'file2' | |
2271 ... | |
2272 | |
2273 | |
2274 MARKED FILES, ARBITRARY SHELL COMMAND, EN BLOC *netrw-mX* {{{2 | |
2275 (See |netrw-mf| and |netrw-mr| for how to mark files) | |
2276 (uses the global marked-file list) | |
2277 | |
2278 Upon activation of the 'mX' map, netrw will query the user for some (external) | |
2279 command to be applied to all marked files on the global marked file list. The | |
2280 "en bloc" means that one command will be executed on all the files at once: > | |
2281 | |
2282 command files | |
2283 | |
7183
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
2284 This approach is useful, for example, to select files and make a tarball: > |
6476 | 2285 |
2286 (mark files) | |
2287 mX | |
2288 Enter command: tar cf mynewtarball.tar | |
7183
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
2289 < |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
2290 The command that will be run with this example: |
6476 | 2291 |
2292 tar cf mynewtarball.tar 'file1' 'file2' ... | |
2293 | |
1621 | 2294 |
8148
f5da459c5698
commit https://github.com/vim/vim/commit/e0fa3742ead676a3074a10edadbc955e1a89153d
Christian Brabandt <cb@256bit.org>
parents:
7188
diff
changeset
|
2295 MARKED FILES: ARGUMENT LIST *netrw-ma* *netrw-mA* |
f5da459c5698
commit https://github.com/vim/vim/commit/e0fa3742ead676a3074a10edadbc955e1a89153d
Christian Brabandt <cb@256bit.org>
parents:
7188
diff
changeset
|
2296 (See |netrw-mf| and |netrw-mr| for how to mark files) |
f5da459c5698
commit https://github.com/vim/vim/commit/e0fa3742ead676a3074a10edadbc955e1a89153d
Christian Brabandt <cb@256bit.org>
parents:
7188
diff
changeset
|
2297 (uses the global marked-file list) |
f5da459c5698
commit https://github.com/vim/vim/commit/e0fa3742ead676a3074a10edadbc955e1a89153d
Christian Brabandt <cb@256bit.org>
parents:
7188
diff
changeset
|
2298 |
f5da459c5698
commit https://github.com/vim/vim/commit/e0fa3742ead676a3074a10edadbc955e1a89153d
Christian Brabandt <cb@256bit.org>
parents:
7188
diff
changeset
|
2299 Using ma, one moves filenames from the marked file list to the argument list. |
f5da459c5698
commit https://github.com/vim/vim/commit/e0fa3742ead676a3074a10edadbc955e1a89153d
Christian Brabandt <cb@256bit.org>
parents:
7188
diff
changeset
|
2300 Using mA, one moves filenames from the argument list to the marked file list. |
f5da459c5698
commit https://github.com/vim/vim/commit/e0fa3742ead676a3074a10edadbc955e1a89153d
Christian Brabandt <cb@256bit.org>
parents:
7188
diff
changeset
|
2301 |
12785 | 2302 See Also: |netrw-cb| |netrw-cB| |netrw-qF| |argument-list| |:args| |
2303 | |
2304 | |
2305 MARKED FILES: BUFFER LIST *netrw-cb* *netrw-cB* | |
2306 (See |netrw-mf| and |netrw-mr| for how to mark files) | |
2307 (uses the global marked-file list) | |
2308 | |
2309 Using cb, one moves filenames from the marked file list to the buffer list. | |
2310 Using cB, one copies filenames from the buffer list to the marked file list. | |
2311 | |
2312 See Also: |netrw-ma| |netrw-mA| |netrw-qF| |buffer-list| |:buffers| | |
8148
f5da459c5698
commit https://github.com/vim/vim/commit/e0fa3742ead676a3074a10edadbc955e1a89153d
Christian Brabandt <cb@256bit.org>
parents:
7188
diff
changeset
|
2313 |
f5da459c5698
commit https://github.com/vim/vim/commit/e0fa3742ead676a3074a10edadbc955e1a89153d
Christian Brabandt <cb@256bit.org>
parents:
7188
diff
changeset
|
2314 |
1621 | 2315 MARKED FILES: COMPRESSION AND DECOMPRESSION *netrw-mz* {{{2 |
2316 (See |netrw-mf| and |netrw-mr| for how to mark files) | |
2317 (uses the local marked file list) | |
2318 | |
2319 If any marked files are compressed, then "mz" will decompress them. | |
2320 If any marked files are decompressed, then "mz" will compress them | |
2321 using the command specified by |g:netrw_compress|; by default, | |
2322 that's "gzip". | |
2323 | |
8148
f5da459c5698
commit https://github.com/vim/vim/commit/e0fa3742ead676a3074a10edadbc955e1a89153d
Christian Brabandt <cb@256bit.org>
parents:
7188
diff
changeset
|
2324 For decompression, netrw uses a |Dictionary| of suffices and their |
1621 | 2325 associated decompressing utilities; see |g:netrw_decompress|. |
2326 | |
6476 | 2327 Remember that one can mark multiple files by regular expression |
2328 (see |netrw-mr|); this is particularly useful to facilitate compressing and | |
2329 decompressing a large number of files. | |
2330 | |
1621 | 2331 Associated setting variables: |g:netrw_compress| |g:netrw_decompress| |
2332 | |
2333 MARKED FILES: COPYING *netrw-mc* {{{2 | |
2334 (See |netrw-mf| and |netrw-mr| for how to mark files) | |
2335 (Uses the global marked file list) | |
2336 | |
2337 Select a target directory with mt (|netrw-mt|). Then change directory, | |
2751 | 2338 select file(s) (see |netrw-mf|), and press "mc". The copy is done |
2339 from the current window (where one does the mf) to the target. | |
1621 | 2340 |
6476 | 2341 If one does not have a target directory set with |netrw-mt|, then netrw |
2342 will query you for a directory to copy to. | |
2343 | |
2344 One may also copy directories and their contents (local only) to a target | |
2345 directory. | |
2346 | |
2347 Associated setting variables: | |
12785 | 2348 |g:netrw_localcopycmd| |g:netrw_localcopycmdopt| |
2349 |g:netrw_localcopydircmd| |g:netrw_localcopydircmdopt| | |
6476 | 2350 |g:netrw_ssh_cmd| |
1621 | 2351 |
2352 MARKED FILES: DIFF *netrw-md* {{{2 | |
2353 (See |netrw-mf| and |netrw-mr| for how to mark files) | |
2354 (uses the global marked file list) | |
2355 | |
2356 Use |vimdiff| to visualize difference between selected files (two or | |
2357 three may be selected for this). Uses the global marked file list. | |
2358 | |
2359 MARKED FILES: EDITING *netrw-me* {{{2 | |
2360 (See |netrw-mf| and |netrw-mr| for how to mark files) | |
2361 (uses the global marked file list) | |
2362 | |
7183
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
2363 The "me" command will place the marked files on the |arglist| and commence |
1621 | 2364 editing them. One may return the to explorer window with |:Rexplore|. |
4339 | 2365 (use |:n| and |:p| to edit next and previous files in the arglist) |
1621 | 2366 |
2367 MARKED FILES: GREP *netrw-mg* {{{2 | |
2368 (See |netrw-mf| and |netrw-mr| for how to mark files) | |
2369 (uses the global marked file list) | |
2370 | |
7183
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
2371 The "mg" command will apply |:vimgrep| to the marked files. |
4339 | 2372 The command will ask for the requested pattern; one may then enter: > |
2373 | |
1621 | 2374 /pattern/[g][j] |
2375 ! /pattern/[g][j] | |
2376 pattern | |
2377 < | |
7183
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
2378 With /pattern/, editing will start with the first item on the |quickfix| list |
8148
f5da459c5698
commit https://github.com/vim/vim/commit/e0fa3742ead676a3074a10edadbc955e1a89153d
Christian Brabandt <cb@256bit.org>
parents:
7188
diff
changeset
|
2379 that vimgrep sets up (see |:copen|, |:cnext|, |:cprevious|, |:cclose|). The |:vimgrep| |
7183
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
2380 command is in use, so without 'g' each line is added to quickfix list only |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
2381 once; with 'g' every match is included. |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
2382 |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
2383 With /pattern/j, "mg" will winnow the current marked file list to just those |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
2384 marked files also possessing the specified pattern. Thus, one may use > |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
2385 |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
2386 mr ...file-pattern... |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
2387 mg /pattern/j |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
2388 < |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
2389 to have a marked file list satisfying the file-pattern but also restricted to |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
2390 files containing some desired pattern. |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
2391 |
4339 | 2392 |
1621 | 2393 MARKED FILES: HIDING AND UNHIDING BY SUFFIX *netrw-mh* {{{2 |
2394 (See |netrw-mf| and |netrw-mr| for how to mark files) | |
2395 (uses the local marked file list) | |
2396 | |
7183
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
2397 The "mh" command extracts the suffices of the marked files and toggles their |
1621 | 2398 presence on the hiding list. Please note that marking the same suffix |
2399 this way multiple times will result in the suffix's presence being toggled | |
2400 for each file (so an even quantity of marked files having the same suffix | |
2401 is the same as not having bothered to select them at all). | |
2402 | |
2403 Related topics: |netrw-a| |g:netrw_list_hide| | |
2404 | |
2405 MARKED FILES: MOVING *netrw-mm* {{{2 | |
2406 (See |netrw-mf| and |netrw-mr| for how to mark files) | |
2407 (uses the global marked file list) | |
2408 | |
1698 | 2409 WARNING: moving files is more dangerous than copying them. |
2410 A file being moved is first copied and then deleted; if the | |
2411 copy operation fails and the delete succeeds, you will lose | |
2412 the file. Either try things out with unimportant files | |
2413 first or do the copy and then delete yourself using mc and D. | |
2414 Use at your own risk! | |
2415 | |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2416 Select a target directory with mt (|netrw-mt|). Then change directory, |
2751 | 2417 select file(s) (see |netrw-mf|), and press "mm". The move is done |
2418 from the current window (where one does the mf) to the target. | |
1621 | 2419 |
2420 Associated setting variable: |g:netrw_localmovecmd| |g:netrw_ssh_cmd| | |
2421 | |
2422 MARKED FILES: PRINTING *netrw-mp* {{{2 | |
2423 (See |netrw-mf| and |netrw-mr| for how to mark files) | |
2424 (uses the local marked file list) | |
2425 | |
7183
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
2426 When "mp" is used, netrw will apply the |:hardcopy| command to marked files. |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
2427 What netrw does is open each file in a one-line window, execute hardcopy, then |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
2428 close the one-line window. |
1621 | 2429 |
2430 | |
2431 MARKED FILES: SOURCING *netrw-ms* {{{2 | |
2432 (See |netrw-mf| and |netrw-mr| for how to mark files) | |
2433 (uses the local marked file list) | |
2434 | |
7183
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
2435 With "ms", netrw will source the marked files (using vim's |:source| command) |
1621 | 2436 |
2437 | |
4339 | 2438 MARKED FILES: SETTING THE TARGET DIRECTORY *netrw-mt* {{{2 |
2439 (See |netrw-mf| and |netrw-mr| for how to mark files) | |
2440 | |
2441 Set the marked file copy/move-to target (see |netrw-mc| and |netrw-mm|): | |
2442 | |
2443 * If the cursor is atop a file name, then the netrw window's currently | |
2444 displayed directory is used for the copy/move-to target. | |
2445 | |
2446 * Also, if the cursor is in the banner, then the netrw window's currently | |
2447 displayed directory is used for the copy/move-to target. | |
2448 Unless the target already is the current directory. In which case, | |
6476 | 2449 typing "mf" clears the target. |
4339 | 2450 |
2451 * However, if the cursor is atop a directory name, then that directory is | |
2452 used for the copy/move-to target | |
2453 | |
5734 | 2454 * One may use the :MT [directory] command to set the target *netrw-:MT* |
2455 This command uses |<q-args>|, so spaces in the directory name are | |
2456 permitted without escaping. | |
2457 | |
7183
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
2458 * With mouse-enabled vim or with gvim, one may select a target by using |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
2459 <c-leftmouse> |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
2460 |
6476 | 2461 There is only one copy/move-to target at a time in a vim session; ie. the |
2462 target is a script variable (see |s:var|) and is shared between all netrw | |
2463 windows (in an instance of vim). | |
4339 | 2464 |
2465 When using menus and gvim, netrw provides a "Targets" entry which allows one | |
2466 to pick a target from the list of bookmarks and history. | |
2467 | |
2468 Related topics: | |
2469 Marking Files......................................|netrw-mf| | |
2470 Marking Files by Regular Expression................|netrw-mr| | |
2471 Marked Files: Target Directory Using Bookmarks.....|netrw-Tb| | |
2472 Marked Files: Target Directory Using History.......|netrw-Th| | |
2473 | |
2474 | |
1621 | 2475 MARKED FILES: TAGGING *netrw-mT* {{{2 |
2476 (See |netrw-mf| and |netrw-mr| for how to mark files) | |
2477 (uses the global marked file list) | |
2478 | |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2479 The "mT" mapping will apply the command in |g:netrw_ctags| (by default, it is |
1621 | 2480 "ctags") to marked files. For remote browsing, in order to create a tags file |
2481 netrw will use ssh (see |g:netrw_ssh_cmd|), and so ssh must be available for | |
2482 this to work on remote systems. For your local system, see |ctags| on how to | |
2483 get a version. I myself use hdrtags, currently available at | |
3920 | 2484 http://www.drchip.org/astronaut/src/index.html , and have > |
1621 | 2485 |
2486 let g:netrw_ctags= "hdrtag" | |
2487 < | |
2488 in my <.vimrc>. | |
2489 | |
2490 When a remote set of files are tagged, the resulting tags file is "obtained"; | |
5734 | 2491 ie. a copy is transferred to the local system's directory. The now local tags |
1621 | 2492 file is then modified so that one may use it through the network. The |
5734 | 2493 modification made concerns the names of the files in the tags; each filename is |
12785 | 2494 preceded by the netrw-compatible URL used to obtain it. When one subsequently |
2495 uses one of the go to tag actions (|tags|), the URL will be used by netrw to | |
1621 | 2496 edit the desired file and go to the tag. |
2497 | |
1668 | 2498 Associated setting variables: |g:netrw_ctags| |g:netrw_ssh_cmd| |
1621 | 2499 |
6476 | 2500 MARKED FILES: TARGET DIRECTORY USING BOOKMARKS *netrw-Tb* {{{2 |
4339 | 2501 |
5734 | 2502 Sets the marked file copy/move-to target. |
4339 | 2503 |
2504 The |netrw-qb| map will give you a list of bookmarks (and history). | |
2505 One may choose one of the bookmarks to become your marked file | |
2506 target by using [count]Tb (default count: 1). | |
2507 | |
2508 Related topics: | |
5734 | 2509 Copying files to target............................|netrw-mc| |
4339 | 2510 Listing Bookmarks and History......................|netrw-qb| |
2511 Marked Files: Setting The Target Directory.........|netrw-mt| | |
2512 Marked Files: Target Directory Using History.......|netrw-Th| | |
2513 Marking Files......................................|netrw-mf| | |
2514 Marking Files by Regular Expression................|netrw-mr| | |
5734 | 2515 Moving files to target.............................|netrw-mm| |
4339 | 2516 |
2517 | |
6476 | 2518 MARKED FILES: TARGET DIRECTORY USING HISTORY *netrw-Th* {{{2 |
4339 | 2519 |
5734 | 2520 Sets the marked file copy/move-to target. |
4339 | 2521 |
2522 The |netrw-qb| map will give you a list of history (and bookmarks). | |
2523 One may choose one of the history entries to become your marked file | |
2524 target by using [count]Th (default count: 0; ie. the current directory). | |
2525 | |
2526 Related topics: | |
5734 | 2527 Copying files to target............................|netrw-mc| |
4339 | 2528 Listing Bookmarks and History......................|netrw-qb| |
2529 Marked Files: Setting The Target Directory.........|netrw-mt| | |
2530 Marked Files: Target Directory Using Bookmarks.....|netrw-Tb| | |
2531 Marking Files......................................|netrw-mf| | |
2532 Marking Files by Regular Expression................|netrw-mr| | |
5734 | 2533 Moving files to target.............................|netrw-mm| |
4339 | 2534 |
1621 | 2535 |
2536 MARKED FILES: UNMARKING *netrw-mu* {{{2 | |
7183
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
2537 (See |netrw-mf|, |netrw-mF|) |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
2538 |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
2539 The "mu" mapping will unmark all currently marked files. This command differs |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
2540 from "mF" as the latter only unmarks files in the current directory whereas |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
2541 "mu" will unmark global and all buffer-local marked files. |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
2542 (see |netrw-mF|) |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
2543 |
1621 | 2544 |
3153 | 2545 *netrw-browser-settings* |
1621 | 2546 NETRW BROWSER VARIABLES *netrw-browser-options* *netrw-browser-var* {{{2 |
2547 | |
3153 | 2548 (if you're interested in the netrw file transfer settings, see |netrw-options| |
2549 and |netrw-protocol|) | |
1621 | 2550 |
2551 The <netrw.vim> browser provides settings in the form of variables which | |
2552 you may modify; by placing these settings in your <.vimrc>, you may customize | |
2553 your browsing preferences. (see also: |netrw-settings|) | |
2554 > | |
2555 --- ----------- | |
2556 Var Explanation | |
2557 --- ----------- | |
5618 | 2558 < *g:netrw_altfile* some like |CTRL-^| to return to the last |
2559 edited file. Choose that by setting this | |
2560 parameter to 1. | |
2561 Others like |CTRL-^| to return to the | |
2562 netrw browsing buffer. Choose that by setting | |
2563 this parameter to 0. | |
2564 default: =0 | |
2565 | |
2566 *g:netrw_alto* change from above splitting to below splitting | |
1621 | 2567 by setting this variable (see |netrw-o|) |
2568 default: =&sb (see |'sb'|) | |
2569 | |
4339 | 2570 *g:netrw_altv* change from left splitting to right splitting |
1621 | 2571 by setting this variable (see |netrw-v|) |
2572 default: =&spr (see |'spr'|) | |
2573 | |
4339 | 2574 *g:netrw_banner* enable/suppress the banner |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2575 =0: suppress the banner |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2576 =1: banner is enabled (default) |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2577 |
4502
605c9ce57ec3
Updated runtime files, language files and translations.
Bram Moolenaar <bram@vim.org>
parents:
4339
diff
changeset
|
2578 *g:netrw_bannerbackslash* if this variable exists and is not zero, the |
605c9ce57ec3
Updated runtime files, language files and translations.
Bram Moolenaar <bram@vim.org>
parents:
4339
diff
changeset
|
2579 banner will be displayed with backslashes |
605c9ce57ec3
Updated runtime files, language files and translations.
Bram Moolenaar <bram@vim.org>
parents:
4339
diff
changeset
|
2580 rather than forward slashes. |
605c9ce57ec3
Updated runtime files, language files and translations.
Bram Moolenaar <bram@vim.org>
parents:
4339
diff
changeset
|
2581 |
4339 | 2582 *g:netrw_browse_split* when browsing, <cr> will open the file by: |
6476 | 2583 =0: re-using the same window (default) |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2584 =1: horizontally splitting the window first |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2585 =2: vertically splitting the window first |
1621 | 2586 =3: open file in new tab |
2587 =4: act like "P" (ie. open previous window) | |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2588 Note that |g:netrw_preview| may be used |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2589 to get vertical splitting instead of |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2590 horizontal splitting. |
6476 | 2591 =[servername,tab-number,window-number] |
2592 Given a |List| such as this, a remote server | |
2593 named by the "servername" will be used for | |
2594 editing. It will also use the specified tab | |
2595 and window numbers to perform editing | |
2596 (see |clientserver|, |netrw-ctrl-r|) | |
12785 | 2597 This option does not affect the production of |
2598 |:Lexplore| windows. | |
1621 | 2599 |
5618 | 2600 Related topics: |
6476 | 2601 |g:netrw_alto| |g:netrw_altv| |
2602 |netrw-C| |netrw-cr| | |
2603 |netrw-ctrl-r| | |
5618 | 2604 |
4339 | 2605 *g:netrw_browsex_viewer* specify user's preference for a viewer: > |
1621 | 2606 "kfmclient exec" |
2607 "gnome-open" | |
2608 < If > | |
2609 "-" | |
2610 < is used, then netrwFileHandler() will look for | |
2611 a script/function to handle the given | |
2612 extension. (see |netrw_filehandler|). | |
2613 | |
25700 | 2614 *g:netrw_browsex_support_remote* |
2615 specify if the specified viewer supports a | |
2616 remote URL. (see |netrw-handler|). | |
2617 | |
4339 | 2618 *g:netrw_chgperm* Unix/Linux: "chmod PERM FILENAME" |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2619 Windows: "cacls FILENAME /e /p PERM" |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2620 Used to change access permission for a file. |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2621 |
25700 | 2622 *g:netrw_clipboard* =1 |
2623 By default, netrw will attempt to insure that | |
2624 the clipboard's values will remain unchanged. | |
2625 However, some users report that they have | |
2626 speed problems with this; consequently, this | |
2627 option, when set to zero, lets such users | |
2628 prevent netrw from saving and restoring the | |
2629 clipboard (the latter is done only as needed). | |
2630 That means that if the clipboard is changed | |
2631 (inadvertently) by normal netrw operation that | |
2632 it will not be restored to its prior state. | |
2633 | |
4339 | 2634 *g:netrw_compress* ="gzip" |
25700 | 2635 Will compress marked files with this |
2636 command | |
1621 | 2637 |
4339 | 2638 *g:Netrw_corehandler* Allows one to specify something additional |
3153 | 2639 to do when handling <core> files via netrw's |
2640 browser's "x" command (see |netrw-x|). If | |
2641 present, g:Netrw_corehandler specifies | |
2642 either one or more function references | |
2643 (see |Funcref|). (the capital g:Netrw... | |
2644 is required its holding a function reference) | |
2645 | |
2646 | |
4339 | 2647 *g:netrw_ctags* ="ctags" |
2648 The default external program used to create | |
2649 tags | |
2650 | |
2651 *g:netrw_cursor* = 2 (default) | |
6476 | 2652 This option controls the use of the |
2751 | 2653 |'cursorline'| (cul) and |'cursorcolumn'| |
2654 (cuc) settings by netrw: | |
2655 | |
2656 Value Thin-Long-Tree Wide | |
2657 =0 u-cul u-cuc u-cul u-cuc | |
2658 =1 u-cul u-cuc cul u-cuc | |
2659 =2 cul u-cuc cul u-cuc | |
2660 =3 cul u-cuc cul cuc | |
2661 =4 cul cuc cul cuc | |
25700 | 2662 =5 U-cul U-cuc U-cul U-cuc |
2663 =6 U-cul U-cuc cul U-cuc | |
2664 =7 cul U-cuc cul U-cuc | |
2665 =8 cul U-cuc cul cuc | |
2751 | 2666 |
2667 Where | |
25700 | 2668 u-cul : user's |'cursorline'| initial setting used |
2669 u-cuc : user's |'cursorcolumn'| initial setting used | |
2670 U-cul : user's |'cursorline'| current setting used | |
2671 U-cuc : user's |'cursorcolumn'| current setting used | |
2672 cul : |'cursorline'| will be locally set | |
2673 cuc : |'cursorcolumn'| will be locally set | |
2674 | |
2675 The "initial setting" means the values of | |
2676 the |'cuc'| and |'cul'| settings in effect when | |
2677 netrw last saw |g:netrw_cursor| >= 5 or when | |
2678 netrw was initially run. | |
2751 | 2679 |
4339 | 2680 *g:netrw_decompress* = { ".gz" : "gunzip" , |
1621 | 2681 ".bz2" : "bunzip2" , |
2682 ".zip" : "unzip" , | |
2683 ".tar" : "tar -xf"} | |
2684 A dictionary mapping suffices to | |
2685 decompression programs. | |
2686 | |
2751 | 2687 *g:netrw_dirhistmax* =10: controls maximum quantity of past |
25700 | 2688 history. May be zero to suppress |
2751 | 2689 history. |
2690 (related: |netrw-qb| |netrw-u| |netrw-U|) | |
2691 | |
3920 | 2692 *g:netrw_dynamic_maxfilenamelen* =32: enables dynamic determination of |
2693 |g:netrw_maxfilenamelen|, which affects | |
2694 local file long listing. | |
5734 | 2695 |
3456 | 2696 *g:netrw_errorlvl* =0: error levels greater than or equal to |
2697 this are permitted to be displayed | |
2698 0: notes | |
2699 1: warnings | |
2700 2: errors | |
2701 | |
4339 | 2702 *g:netrw_fastbrowse* =0: slow speed directory browsing; |
5929 | 2703 never re-uses directory listings; |
1621 | 2704 always obtains directory listings. |
2705 =1: medium speed directory browsing; | |
2706 re-use directory listings only | |
2707 when remote directory browsing. | |
2708 (default value) | |
2709 =2: fast directory browsing; | |
2710 only obtains directory listings when the | |
2711 directory hasn't been seen before | |
2712 (or |netrw-ctrl-l| is used). | |
2713 | |
2714 Fast browsing retains old directory listing | |
2715 buffers so that they don't need to be | |
2716 re-acquired. This feature is especially | |
2717 important for remote browsing. However, if | |
2718 a file is introduced or deleted into or from | |
2719 such directories, the old directory buffer | |
2720 becomes out-of-date. One may always refresh | |
2721 such a directory listing with |netrw-ctrl-l|. | |
2722 This option gives the user the choice of | |
2723 trading off accuracy (ie. up-to-date listing) | |
2724 versus speed. | |
2725 | |
5929 | 2726 *g:netrw_ffkeep* (default: doesn't exist) |
6476 | 2727 If this variable exists and is zero, then |
5929 | 2728 netrw will not do a save and restore for |
2729 |'fileformat'|. | |
2730 | |
4339 | 2731 *g:netrw_fname_escape* =' ?&;%' |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2732 Used on filenames before remote reading/writing |
1621 | 2733 |
4339 | 2734 *g:netrw_ftp_browse_reject* ftp can produce a number of errors and warnings |
1621 | 2735 that can show up as "directories" and "files" |
2736 in the listing. This pattern is used to | |
2737 remove such embedded messages. By default its | |
2738 value is: | |
2739 '^total\s\+\d\+$\| | |
2740 ^Trying\s\+\d\+.*$\| | |
2741 ^KERBEROS_V\d rejected\| | |
2742 ^Security extensions not\| | |
2743 No such file\| | |
2744 : connect to address [0-9a-fA-F:]* | |
2745 : No route to host$' | |
2746 | |
4339 | 2747 *g:netrw_ftp_list_cmd* options for passing along to ftp for directory |
1621 | 2748 listing. Defaults: |
2749 unix or g:netrw_cygwin set: : "ls -lF" | |
2750 otherwise "dir" | |
2751 | |
2752 | |
4339 | 2753 *g:netrw_ftp_sizelist_cmd* options for passing along to ftp for directory |
1621 | 2754 listing, sorted by size of file. |
2755 Defaults: | |
2756 unix or g:netrw_cygwin set: : "ls -slF" | |
2757 otherwise "dir" | |
2758 | |
4339 | 2759 *g:netrw_ftp_timelist_cmd* options for passing along to ftp for directory |
1621 | 2760 listing, sorted by time of last modification. |
2761 Defaults: | |
2762 unix or g:netrw_cygwin set: : "ls -tlF" | |
2763 otherwise "dir" | |
2764 | |
3456 | 2765 *g:netrw_glob_escape* ='[]*?`{~$' (unix) |
2152 | 2766 ='[]*?`{$' (windows |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2767 These characters in directory names are |
1621 | 2768 escaped before applying glob() |
2769 | |
6476 | 2770 *g:netrw_gx* ="<cfile>" |
2771 This option controls how gx (|netrw-gx|) picks | |
2772 up the text under the cursor. See |expand()| | |
2773 for possibilities. | |
2774 | |
4339 | 2775 *g:netrw_hide* Controlled by the "a" map (see |netrw-a|) |
2776 =0 : show all | |
2777 =1 : show not-hidden files | |
2778 =2 : show hidden files only | |
17433 | 2779 default: =1 |
1621 | 2780 |
4339 | 2781 *g:netrw_home* The home directory for where bookmarks and |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2782 history are saved (as .netrwbook and |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2783 .netrwhist). |
12785 | 2784 Netrw uses |expand()|on the string. |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2785 default: the first directory on the |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2786 |'runtimepath'| |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2787 |
4339 | 2788 *g:netrw_keepdir* =1 (default) keep current directory immune from |
1621 | 2789 the browsing directory. |
2790 =0 keep the current directory the same as the | |
2791 browsing directory. | |
2792 The current browsing directory is contained in | |
22328 | 2793 b:netrw_curdir (also see |netrw-cd|) |
1621 | 2794 |
6476 | 2795 *g:netrw_keepj* ="keepj" (default) netrw attempts to keep the |
2796 |:jumps| table unaffected. | |
2797 ="" netrw will not use |:keepjumps| with | |
2798 exceptions only for the | |
2799 saving/restoration of position. | |
2800 | |
4339 | 2801 *g:netrw_list_cmd* command for listing remote directories |
1621 | 2802 default: (if ssh is executable) |
2803 "ssh HOSTNAME ls -FLa" | |
2804 | |
12785 | 2805 *g:netrw_list_cmd_options* If this variable exists, then its contents are |
6476 | 2806 appended to the g:netrw_list_cmd. For |
2807 example, use "2>/dev/null" to get rid of banner | |
2808 messages on unix systems. | |
2809 | |
2810 | |
4339 | 2811 *g:netrw_liststyle* Set the default listing style: |
1621 | 2812 = 0: thin listing (one file per line) |
2813 = 1: long listing (one file per line with time | |
2814 stamp information and file size) | |
2815 = 2: wide listing (multiple files in columns) | |
2816 = 3: tree style listing | |
5618 | 2817 |
4339 | 2818 *g:netrw_list_hide* comma separated pattern list for hiding files |
1621 | 2819 Patterns are regular expressions (see |regexp|) |
5618 | 2820 There's some special support for git-ignore |
2821 files: you may add the output from the helper | |
2822 function 'netrw_gitignore#Hide() automatically | |
2823 hiding all gitignored files. | |
2824 For more details see |netrw-gitignore|. | |
2825 | |
2826 Examples: | |
2827 let g:netrw_list_hide= '.*\.swp$' | |
6476 | 2828 let g:netrw_list_hide= netrw_gitignore#Hide().'.*\.swp$' |
5618 | 2829 default: "" |
1621 | 2830 |
12785 | 2831 *g:netrw_localcopycmd* ="cp" Linux/Unix/MacOS/Cygwin |
2832 =expand("$COMSPEC") Windows | |
1621 | 2833 Copies marked files (|netrw-mf|) to target |
2834 directory (|netrw-mt|, |netrw-mc|) | |
2835 | |
12785 | 2836 *g:netrw_localcopycmdopt* ='' Linux/Unix/MacOS/Cygwin |
2837 =' \c copy' Windows | |
2838 Options for the |g:netrw_localcopycmd| | |
2839 | |
2840 *g:netrw_localcopydircmd* ="cp" Linux/Unix/MacOS/Cygwin | |
2841 =expand("$COMSPEC") Windows | |
6476 | 2842 Copies directories to target directory. |
2843 (|netrw-mc|, |netrw-mt|) | |
2844 | |
12785 | 2845 *g:netrw_localcopydircmdopt* =" -R" Linux/Unix/MacOS/Cygwin |
2846 =" /c xcopy /e /c /h/ /i /k" Windows | |
2847 Options for |g:netrw_localcopydircmd| | |
2848 | |
2849 *g:netrw_localmkdir* ="mkdir" Linux/Unix/MacOS/Cygwin | |
2850 =expand("$COMSPEC") Windows | |
2851 command for making a local directory | |
2852 | |
2853 *g:netrw_localmkdiropt* ="" Linux/Unix/MacOS/Cygwin | |
2854 =" /c mkdir" Windows | |
2855 Options for |g:netrw_localmkdir| | |
2856 | |
2857 *g:netrw_localmovecmd* ="mv" Linux/Unix/MacOS/Cygwin | |
2858 =expand("$COMSPEC") Windows | |
1621 | 2859 Moves marked files (|netrw-mf|) to target |
2860 directory (|netrw-mt|, |netrw-mm|) | |
2861 | |
12785 | 2862 *g:netrw_localmovecmdopt* ="" Linux/Unix/MacOS/Cygwin |
2863 =" /c move" Windows | |
2864 Options for |g:netrw_localmovecmd| | |
2865 | |
2866 *g:netrw_localrmdir* ="rmdir" Linux/Unix/MacOS/Cygwin | |
2867 =expand("$COMSPEC") Windows | |
2868 Remove directory command (rmdir) | |
2869 This variable is only used if your vim is | |
2870 earlier than 7.4 or if your vim doesn't | |
2871 have patch#1107. Otherwise, |delete()| | |
2872 is used with the "d" option. | |
2873 | |
2874 *g:netrw_localrmdiropt* ="" Linux/Unix/MacOS/Cygwin | |
2875 =" /c rmdir" Windows | |
2876 Options for |g:netrw_localrmdir| | |
1621 | 2877 |
4339 | 2878 *g:netrw_maxfilenamelen* =32 by default, selected so as to make long |
1621 | 2879 listings fit on 80 column displays. |
2880 If your screen is wider, and you have file | |
2881 or directory names longer than 32 bytes, | |
2882 you may set this option to keep listings | |
2883 columnar. | |
2884 | |
4339 | 2885 *g:netrw_mkdir_cmd* command for making a remote directory |
3153 | 2886 via ssh (also see |g:netrw_remote_mkdir|) |
1621 | 2887 default: "ssh USEPORT HOSTNAME mkdir" |
2888 | |
2908 | 2889 *g:netrw_mousemaps* =1 (default) enables mouse buttons while |
6476 | 2890 browsing to: |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2891 leftmouse : open file/directory |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2892 shift-leftmouse : mark file |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2893 middlemouse : same as P |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2894 rightmouse : remove file/directory |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2895 =0: disables mouse maps |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2896 |
3153 | 2897 *g:netrw_nobeval* doesn't exist (default) |
2898 If this variable exists, then balloon | |
2899 evaluation will be suppressed | |
2900 (see |'ballooneval'|) | |
2901 | |
8148
f5da459c5698
commit https://github.com/vim/vim/commit/e0fa3742ead676a3074a10edadbc955e1a89153d
Christian Brabandt <cb@256bit.org>
parents:
7188
diff
changeset
|
2902 *g:netrw_sizestyle* not defined: actual bytes (default) |
f5da459c5698
commit https://github.com/vim/vim/commit/e0fa3742ead676a3074a10edadbc955e1a89153d
Christian Brabandt <cb@256bit.org>
parents:
7188
diff
changeset
|
2903 ="b" : actual bytes (default) |
f5da459c5698
commit https://github.com/vim/vim/commit/e0fa3742ead676a3074a10edadbc955e1a89153d
Christian Brabandt <cb@256bit.org>
parents:
7188
diff
changeset
|
2904 ="h" : human-readable (ex. 5k, 4m, 3g) |
f5da459c5698
commit https://github.com/vim/vim/commit/e0fa3742ead676a3074a10edadbc955e1a89153d
Christian Brabandt <cb@256bit.org>
parents:
7188
diff
changeset
|
2905 uses 1000 base |
f5da459c5698
commit https://github.com/vim/vim/commit/e0fa3742ead676a3074a10edadbc955e1a89153d
Christian Brabandt <cb@256bit.org>
parents:
7188
diff
changeset
|
2906 ="H" : human-readable (ex. 5K, 4M, 3G) |
f5da459c5698
commit https://github.com/vim/vim/commit/e0fa3742ead676a3074a10edadbc955e1a89153d
Christian Brabandt <cb@256bit.org>
parents:
7188
diff
changeset
|
2907 uses 1024 base |
f5da459c5698
commit https://github.com/vim/vim/commit/e0fa3742ead676a3074a10edadbc955e1a89153d
Christian Brabandt <cb@256bit.org>
parents:
7188
diff
changeset
|
2908 The long listing (|netrw-i|) and query-file |
f5da459c5698
commit https://github.com/vim/vim/commit/e0fa3742ead676a3074a10edadbc955e1a89153d
Christian Brabandt <cb@256bit.org>
parents:
7188
diff
changeset
|
2909 maps (|netrw-qf|) will display file size |
f5da459c5698
commit https://github.com/vim/vim/commit/e0fa3742ead676a3074a10edadbc955e1a89153d
Christian Brabandt <cb@256bit.org>
parents:
7188
diff
changeset
|
2910 using the specified style. |
f5da459c5698
commit https://github.com/vim/vim/commit/e0fa3742ead676a3074a10edadbc955e1a89153d
Christian Brabandt <cb@256bit.org>
parents:
7188
diff
changeset
|
2911 |
7183
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
2912 *g:netrw_usetab* if this variable exists and is non-zero, then |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
2913 the <tab> map supporting shrinking/expanding a |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
2914 Lexplore or netrw window will be enabled. |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
2915 (see |netrw-c-tab|) |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
2916 |
5734 | 2917 *g:netrw_remote_mkdir* command for making a remote directory |
3153 | 2918 via ftp (also see |g:netrw_mkdir_cmd|) |
2919 default: "mkdir" | |
2920 | |
4339 | 2921 *g:netrw_retmap* if it exists and is set to one, then: |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2922 * if in a netrw-selected file, AND |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2923 * no normal-mode <2-leftmouse> mapping exists, |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2924 then the <2-leftmouse> will be mapped for easy |
1621 | 2925 return to the netrw browser window. |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2926 example: click once to select and open a file, |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2927 double-click to return. |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2928 |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2929 Note that one may instead choose to: |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2930 * let g:netrw_retmap= 1, AND |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2931 * nmap <silent> YourChoice <Plug>NetrwReturn |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2932 and have another mapping instead of |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2933 <2-leftmouse> to invoke the return. |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2934 |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2935 You may also use the |:Rexplore| command to do |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2936 the same thing. |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2937 |
1621 | 2938 default: =0 |
2939 | |
5929 | 2940 *g:netrw_rm_cmd* command for removing remote files |
1621 | 2941 default: "ssh USEPORT HOSTNAME rm" |
2942 | |
5929 | 2943 *g:netrw_rmdir_cmd* command for removing remote directories |
1621 | 2944 default: "ssh USEPORT HOSTNAME rmdir" |
2945 | |
5929 | 2946 *g:netrw_rmf_cmd* command for removing remote softlinks |
1621 | 2947 default: "ssh USEPORT HOSTNAME rm -f" |
2948 | |
6476 | 2949 *g:netrw_servername* use this variable to provide a name for |
2950 |netrw-ctrl-r| to use for its server. | |
2951 default: "NETRWSERVER" | |
2952 | |
7183
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
2953 *g:netrw_sort_by* sort by "name", "time", "size", or |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
2954 "exten". |
1621 | 2955 default: "name" |
2956 | |
4339 | 2957 *g:netrw_sort_direction* sorting direction: "normal" or "reverse" |
1621 | 2958 default: "normal" |
2959 | |
4339 | 2960 *g:netrw_sort_options* sorting is done using |:sort|; this |
1668 | 2961 variable's value is appended to the |
2962 sort command. Thus one may ignore case, | |
2963 for example, with the following in your | |
2964 .vimrc: > | |
2965 let g:netrw_sort_options="i" | |
2966 < default: "" | |
2967 | |
4339 | 2968 *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
|
2969 comma-separated pattern sequence. Note that |
5734 | 2970 any filigree added to indicate filetypes |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
2971 should be accounted for in your pattern. |
1621 | 2972 default: '[\/]$,*,\.bak$,\.o$,\.h$, |
2973 \.info$,\.swp$,\.obj$' | |
2974 | |
4339 | 2975 *g:netrw_special_syntax* If true, then certain files will be shown |
3456 | 2976 using special syntax in the browser: |
1621 | 2977 |
2978 netrwBak : *.bak | |
2979 netrwCompress: *.gz *.bz2 *.Z *.zip | |
17433 | 2980 netrwCoreDump: core.\d\+ |
1621 | 2981 netrwData : *.dat |
17433 | 2982 netrwDoc : *.doc,*.txt,*.pdf, |
2983 *.pdf,*.docx | |
1621 | 2984 netrwHdr : *.h |
17433 | 2985 netrwLex : *.l *.lex |
1621 | 2986 netrwLib : *.a *.so *.lib *.dll |
2987 netrwMakefile: [mM]akefile *.mak | |
2988 netrwObj : *.o *.obj | |
17433 | 2989 netrwPix : *.bmp,*.fit,*.fits,*.gif, |
2990 *.jpg,*.jpeg,*.pcx,*.ppc | |
2991 *.pgm,*.png,*.psd,*.rgb | |
2992 *.tif,*.xbm,*.xcf | |
1621 | 2993 netrwTags : tags ANmenu ANtags |
5734 | 2994 netrwTilde : * |
1621 | 2995 netrwTmp : tmp* *tmp |
17433 | 2996 netrwYacc : *.y |
1621 | 2997 |
12785 | 2998 In addition, those groups mentioned in |
2999 |'suffixes'| are also added to the special | |
3000 file highlighting group. | |
3001 These syntax highlighting groups are linked | |
3002 to netrwGray or Folded by default | |
3003 (see |hl-Folded|), but one may put lines like > | |
1621 | 3004 hi link netrwCompress Visual |
3005 < into one's <.vimrc> to use one's own | |
5734 | 3006 preferences. Alternatively, one may |
12785 | 3007 put such specifications into > |
3008 .vim/after/syntax/netrw.vim. | |
3009 < The netrwGray highlighting is set up by | |
3010 netrw when > | |
3011 * netrwGray has not been previously | |
3012 defined | |
3013 * the gui is running | |
3014 < As an example, I myself use a dark-background | |
5734 | 3015 colorscheme with the following in |
3016 .vim/after/syntax/netrw.vim: > | |
3017 | |
3018 hi netrwCompress term=NONE cterm=NONE gui=NONE ctermfg=10 guifg=green ctermbg=0 guibg=black | |
3019 hi netrwData term=NONE cterm=NONE gui=NONE ctermfg=9 guifg=blue ctermbg=0 guibg=black | |
3020 hi netrwHdr term=NONE cterm=NONE,italic gui=NONE guifg=SeaGreen1 | |
3021 hi netrwLex term=NONE cterm=NONE,italic gui=NONE guifg=SeaGreen1 | |
3022 hi netrwYacc term=NONE cterm=NONE,italic gui=NONE guifg=SeaGreen1 | |
3023 hi netrwLib term=NONE cterm=NONE gui=NONE ctermfg=14 guifg=yellow | |
3024 hi netrwObj term=NONE cterm=NONE gui=NONE ctermfg=12 guifg=red | |
3025 hi netrwTilde term=NONE cterm=NONE gui=NONE ctermfg=12 guifg=red | |
3026 hi netrwTmp term=NONE cterm=NONE gui=NONE ctermfg=12 guifg=red | |
3027 hi netrwTags term=NONE cterm=NONE gui=NONE ctermfg=12 guifg=red | |
3028 hi netrwDoc term=NONE cterm=NONE gui=NONE ctermfg=220 ctermbg=27 guifg=yellow2 guibg=Blue3 | |
3029 hi netrwSymLink term=NONE cterm=NONE gui=NONE ctermfg=220 ctermbg=27 guifg=grey60 | |
3030 < | |
4339 | 3031 *g:netrw_ssh_browse_reject* ssh can sometimes produce unwanted lines, |
1621 | 3032 messages, banners, and whatnot that one doesn't |
3033 want masquerading as "directories" and "files". | |
3034 Use this pattern to remove such embedded | |
3035 messages. By default its value is: | |
3036 '^total\s\+\d\+$' | |
3037 | |
4502
605c9ce57ec3
Updated runtime files, language files and translations.
Bram Moolenaar <bram@vim.org>
parents:
4339
diff
changeset
|
3038 *g:netrw_ssh_cmd* One may specify an executable command |
605c9ce57ec3
Updated runtime files, language files and translations.
Bram Moolenaar <bram@vim.org>
parents:
4339
diff
changeset
|
3039 to use instead of ssh for remote actions |
605c9ce57ec3
Updated runtime files, language files and translations.
Bram Moolenaar <bram@vim.org>
parents:
4339
diff
changeset
|
3040 such as listing, file removal, etc. |
605c9ce57ec3
Updated runtime files, language files and translations.
Bram Moolenaar <bram@vim.org>
parents:
4339
diff
changeset
|
3041 default: ssh |
605c9ce57ec3
Updated runtime files, language files and translations.
Bram Moolenaar <bram@vim.org>
parents:
4339
diff
changeset
|
3042 |
8951
0bdeaf7092bc
commit https://github.com/vim/vim/commit/aa3b15dbebf333282503d6031e2f9ba6ee4398ed
Christian Brabandt <cb@256bit.org>
parents:
8148
diff
changeset
|
3043 *g:netrw_suppress_gx_mesg* =1 : browsers sometimes produce messages |
0bdeaf7092bc
commit https://github.com/vim/vim/commit/aa3b15dbebf333282503d6031e2f9ba6ee4398ed
Christian Brabandt <cb@256bit.org>
parents:
8148
diff
changeset
|
3044 which are normally unwanted intermixed |
0bdeaf7092bc
commit https://github.com/vim/vim/commit/aa3b15dbebf333282503d6031e2f9ba6ee4398ed
Christian Brabandt <cb@256bit.org>
parents:
8148
diff
changeset
|
3045 with the page. |
0bdeaf7092bc
commit https://github.com/vim/vim/commit/aa3b15dbebf333282503d6031e2f9ba6ee4398ed
Christian Brabandt <cb@256bit.org>
parents:
8148
diff
changeset
|
3046 However, when using links, for example, |
0bdeaf7092bc
commit https://github.com/vim/vim/commit/aa3b15dbebf333282503d6031e2f9ba6ee4398ed
Christian Brabandt <cb@256bit.org>
parents:
8148
diff
changeset
|
3047 those messages are what the browser produces. |
0bdeaf7092bc
commit https://github.com/vim/vim/commit/aa3b15dbebf333282503d6031e2f9ba6ee4398ed
Christian Brabandt <cb@256bit.org>
parents:
8148
diff
changeset
|
3048 By setting this option to 0, netrw will not |
0bdeaf7092bc
commit https://github.com/vim/vim/commit/aa3b15dbebf333282503d6031e2f9ba6ee4398ed
Christian Brabandt <cb@256bit.org>
parents:
8148
diff
changeset
|
3049 suppress browser messages. |
1621 | 3050 |
4339 | 3051 *g:netrw_tmpfile_escape* =' &;' |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
3052 escape() is applied to all temporary files |
1621 | 3053 to escape these characters. |
3054 | |
4339 | 3055 *g:netrw_timefmt* specify format string to vim's strftime(). |
1621 | 3056 The default, "%c", is "the preferred date |
3057 and time representation for the current | |
3058 locale" according to my manpage entry for | |
3059 strftime(); however, not all are satisfied | |
3060 with it. Some alternatives: | |
3061 "%a %d %b %Y %T", | |
3062 " %a %Y-%m-%d %I-%M-%S %p" | |
3063 default: "%c" | |
3064 | |
4339 | 3065 *g:netrw_use_noswf* netrw normally avoids writing swapfiles |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
3066 for browser buffers. However, under some |
1621 | 3067 systems this apparently is causing nasty |
3068 ml_get errors to appear; if you're getting | |
3069 ml_get errors, try putting | |
3070 let g:netrw_use_noswf= 0 | |
3071 in your .vimrc. | |
5734 | 3072 default: 1 |
1621 | 3073 |
4339 | 3074 *g:netrw_winsize* specify initial size of new windows made with |
1621 | 3075 "o" (see |netrw-o|), "v" (see |netrw-v|), |
2908 | 3076 |:Hexplore| or |:Vexplore|. The g:netrw_winsize |
3077 is an integer describing the percentage of the | |
3078 current netrw buffer's window to be used for | |
3079 the new window. | |
3153 | 3080 If g:netrw_winsize is less than zero, then |
17433 | 3081 the absolute value of g:netrw_winsize will be |
3082 used to specify the quantity of lines or | |
3083 columns for the new window. | |
5929 | 3084 If g:netrw_winsize is zero, then a normal |
3085 split will be made (ie. |'equalalways'| will | |
3086 take effect, for example). | |
2908 | 3087 default: 50 (for 50%) |
1621 | 3088 |
7183
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3089 *g:netrw_wiw* =1 specifies the minimum window width to use |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3090 when shrinking a netrw/Lexplore window |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3091 (see |netrw-c-tab|). |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3092 |
4339 | 3093 *g:netrw_xstrlen* Controls how netrw computes string lengths, |
22328 | 3094 including multi-byte characters' string |
1621 | 3095 length. (thanks to N Weibull, T Mechelynck) |
3096 =0: uses Vim's built-in strlen() | |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
3097 =1: number of codepoints (Latin a + combining |
1621 | 3098 circumflex is two codepoints) (DEFAULT) |
3099 =2: number of spacing codepoints (Latin a + | |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
3100 combining circumflex is one spacing |
1621 | 3101 codepoint; a hard tab is one; wide and |
3102 narrow CJK are one each; etc.) | |
3103 =3: virtual length (counting tabs as anything | |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
3104 between 1 and |'tabstop'|, wide CJK as 2 |
1621 | 3105 rather than 1, Arabic alif as zero when |
3106 immediately preceded by lam, one | |
3107 otherwise, etc) | |
3108 | |
4339 | 3109 *g:NetrwTopLvlMenu* This variable specifies the top level |
1621 | 3110 menu name; by default, it's "Netrw.". If |
3111 you wish to change this, do so in your | |
3112 .vimrc. | |
3113 | |
3114 NETRW BROWSING AND OPTION INCOMPATIBILITIES *netrw-incompatible* {{{2 | |
3115 | |
3116 Netrw has been designed to handle user options by saving them, setting the | |
3117 options to something that's compatible with netrw's needs, and then restoring | |
3118 them. However, the autochdir option: > | |
3119 :set acd | |
5734 | 3120 is problematic. Autochdir sets the current directory to that containing the |
1621 | 3121 file you edit; this apparently also applies to directories. In other words, |
3122 autochdir sets the current directory to that containing the "file" (even if | |
3123 that "file" is itself a directory). | |
3124 | |
3153 | 3125 NETRW SETTINGS WINDOW *netrw-settings-window* {{{2 |
482 | 3126 |
3127 With the NetrwSettings.vim plugin, > | |
3128 :NetrwSettings | |
3129 will bring up a window with the many variables that netrw uses for its | |
559 | 3130 settings. You may change any of their values; when you save the file, the |
3131 settings therein will be used. One may also press "?" on any of the lines for | |
3132 help on what each of the variables do. | |
482 | 3133 |
3456 | 3134 (also see: |netrw-browser-var| |netrw-protocol| |netrw-variables|) |
1121 | 3135 |
482 | 3136 |
9 | 3137 ============================================================================== |
7183
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3138 OBTAINING A FILE *netrw-obtain* *netrw-O* {{{2 |
1621 | 3139 |
3140 If there are no marked files: | |
3141 | |
3142 When browsing a remote directory, one may obtain a file under the cursor | |
3143 (ie. get a copy on your local machine, but not edit it) by pressing the O | |
3144 key. | |
3145 | |
3146 If there are marked files: | |
3147 | |
3148 The marked files will be obtained (ie. a copy will be transferred to your | |
3149 local machine, but not set up for editing). | |
3150 | |
3151 Only ftp and scp are supported for this operation (but since these two are | |
3152 available for browsing, that shouldn't be a problem). The status bar will | |
3153 then show, on its right hand side, a message like "Obtaining filename". The | |
3154 statusline will be restored after the transfer is complete. | |
3155 | |
3156 Netrw can also "obtain" a file using the local browser. Netrw's display | |
3157 of a directory is not necessarily the same as Vim's "current directory", | |
3158 unless |g:netrw_keepdir| is set to 0 in the user's <.vimrc>. One may select | |
3159 a file using the local browser (by putting the cursor on it) and pressing | |
3160 "O" will then "obtain" the file; ie. copy it to Vim's current directory. | |
3161 | |
3162 Related topics: | |
3163 * To see what the current directory is, use |:pwd| | |
22328 | 3164 * To make the currently browsed directory the current directory, see |
3165 |netrw-cd| | |
1621 | 3166 * To automatically make the currently browsed directory the current |
3167 directory, see |g:netrw_keepdir|. | |
3168 | |
7183
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3169 *netrw-newfile* *netrw-createfile* |
6476 | 3170 OPEN A NEW FILE IN NETRW'S CURRENT DIRECTORY *netrw-%* {{{2 |
1668 | 3171 |
5734 | 3172 To open a new file in netrw's current directory, press "%". This map |
3173 will query the user for a new filename; an empty file by that name will | |
3174 be placed in the netrw's current directory (ie. b:netrw_curdir). | |
1668 | 3175 |
25700 | 3176 If Lexplore (|netrw-:Lexplore|) is in use, the new file will be generated |
3177 in the |g:netrw_chgwin| window. | |
3178 | |
5618 | 3179 Related topics: |netrw-d| |
3180 | |
1668 | 3181 |
1621 | 3182 PREVIEW WINDOW *netrw-p* *netrw-preview* {{{2 |
3183 | |
3184 One may use a preview window by using the "p" key when the cursor is atop the | |
3185 desired filename to be previewed. The display will then split to show both | |
6476 | 3186 the browser (where the cursor will remain) and the file (see |:pedit|). By |
3187 default, the split will be taken horizontally; one may use vertical splitting | |
3188 if one has set |g:netrw_preview| first. | |
1621 | 3189 |
2152 | 3190 An interesting set of netrw settings is: > |
3191 | |
3192 let g:netrw_preview = 1 | |
3193 let g:netrw_liststyle = 3 | |
3194 let g:netrw_winsize = 30 | |
3195 | |
3196 These will: | |
6476 | 3197 |
2152 | 3198 1. Make vertical splitting the default for previewing files |
3199 2. Make the default listing style "tree" | |
3200 3. When a vertical preview window is opened, the directory listing | |
3456 | 3201 will use only 30% of the columns available; the rest of the window |
3202 is used for the preview window. | |
1621 | 3203 |
7183
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3204 Related: if you like this idea, you may also find :Lexplore |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3205 (|netrw-:Lexplore|) or |g:netrw_chgwin| of interest |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3206 |
8148
f5da459c5698
commit https://github.com/vim/vim/commit/e0fa3742ead676a3074a10edadbc955e1a89153d
Christian Brabandt <cb@256bit.org>
parents:
7188
diff
changeset
|
3207 Also see: |g:netrw_chgwin| |netrw-P| |'previewwindow'| |CTRL-W_z| |:pclose| |
7183
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3208 |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3209 |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3210 PREVIOUS WINDOW *netrw-P* *netrw-prvwin* {{{2 |
1621 | 3211 |
8148
f5da459c5698
commit https://github.com/vim/vim/commit/e0fa3742ead676a3074a10edadbc955e1a89153d
Christian Brabandt <cb@256bit.org>
parents:
7188
diff
changeset
|
3212 To edit a file or directory under the cursor in the previously used (last |
f5da459c5698
commit https://github.com/vim/vim/commit/e0fa3742ead676a3074a10edadbc955e1a89153d
Christian Brabandt <cb@256bit.org>
parents:
7188
diff
changeset
|
3213 accessed) window (see :he |CTRL-W_p|), press a "P". If there's only one |
f5da459c5698
commit https://github.com/vim/vim/commit/e0fa3742ead676a3074a10edadbc955e1a89153d
Christian Brabandt <cb@256bit.org>
parents:
7188
diff
changeset
|
3214 window, then the one window will be horizontally split (by default). |
1621 | 3215 |
3216 If there's more than one window, the previous window will be re-used on | |
3217 the selected file/directory. If the previous window's associated buffer | |
3218 has been modified, and there's only one window with that buffer, then | |
3219 the user will be asked if s/he wishes to save the buffer first (yes, | |
3220 no, or cancel). | |
3221 | |
4339 | 3222 Related Actions |netrw-cr| |netrw-o| |netrw-t| |netrw-v| |
3153 | 3223 Associated setting variables: |
3224 |g:netrw_alto| control above/below splitting | |
3225 |g:netrw_altv| control right/left splitting | |
3226 |g:netrw_preview| control horizontal vs vertical splitting | |
3227 |g:netrw_winsize| control initial sizing | |
3228 | |
5734 | 3229 Also see: |g:netrw_chgwin| |netrw-p| |
3230 | |
1621 | 3231 |
7183
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3232 REFRESHING THE LISTING *netrw-refresh* *netrw-ctrl-l* *netrw-ctrl_l* {{{2 |
1621 | 3233 |
3234 To refresh either a local or remote directory listing, press ctrl-l (<c-l>) or | |
3235 hit the <cr> when atop the ./ directory entry in the listing. One may also | |
3236 refresh a local directory by using ":e .". | |
3237 | |
3238 | |
4339 | 3239 REVERSING SORTING ORDER *netrw-r* *netrw-reverse* {{{2 |
3240 | |
3241 One may toggle between normal and reverse sorting order by pressing the | |
3242 "r" key. | |
3243 | |
3244 Related topics: |netrw-s| | |
3245 Associated setting variable: |g:netrw_sort_direction| | |
3246 | |
3247 | |
1621 | 3248 RENAMING FILES OR DIRECTORIES *netrw-move* *netrw-rename* *netrw-R* {{{2 |
3249 | |
3250 If there are no marked files: (see |netrw-mf|) | |
3251 | |
7183
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3252 Renaming files and directories involves moving the cursor to the |
1621 | 3253 file/directory to be moved (renamed) and pressing "R". You will then be |
12785 | 3254 queried for what you want the file/directory to be renamed to. You may |
3255 select a range of lines with the "V" command (visual selection), and then | |
7183
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3256 press "R"; you will be queried for each file as to what you want it |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3257 renamed to. |
1621 | 3258 |
3259 If there are marked files: (see |netrw-mf|) | |
3260 | |
3261 Marked files will be renamed (moved). You will be queried as above in | |
3262 order to specify where you want the file/directory to be moved. | |
3263 | |
6476 | 3264 If you answer a renaming query with a "s/frompattern/topattern/", then |
3265 subsequent files on the marked file list will be renamed by taking each | |
3266 name, applying that substitute, and renaming each file to the result. | |
3267 As an example : > | |
3268 | |
3269 mr [query: reply with *.c] | |
3270 R [query: reply with s/^\(.*\)\.c$/\1.cpp/] | |
3271 < | |
3272 This example will mark all *.c files and then rename them to *.cpp | |
19099 | 3273 files. Netrw will protect you from overwriting local files without |
3274 confirmation, but not remote ones. | |
6476 | 3275 |
7183
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3276 The ctrl-X character has special meaning for renaming files: > |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3277 |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3278 <c-x> : a single ctrl-x tells netrw to ignore the portion of the response |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3279 lying between the last '/' and the ctrl-x. |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3280 |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3281 <c-x><c-x> : a pair of contiguous ctrl-x's tells netrw to ignore any |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3282 portion of the string preceding the double ctrl-x's. |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3283 < |
1621 | 3284 WARNING:~ |
3285 | |
3286 Note that moving files is a dangerous operation; copies are safer. That's | |
3287 because a "move" for remote files is actually a copy + delete -- and if | |
12785 | 3288 the copy fails and the delete succeeds you may lose the file. |
5734 | 3289 Use at your own risk. |
1621 | 3290 |
12785 | 3291 The *g:netrw_rename_cmd* variable is used to implement remote renaming. By |
3292 default its value is: > | |
1621 | 3293 |
3294 ssh HOSTNAME mv | |
12785 | 3295 < |
1621 | 3296 One may rename a block of files and directories by selecting them with |
12785 | 3297 V (|linewise-visual|) when using thin style. |
3298 | |
3299 See |cmdline-editing| for more on how to edit the command line; in particular, | |
3300 you'll find <ctrl-f> (initiates cmdline window editing) and <ctrl-c> (uses the | |
3301 command line under the cursor) useful in conjunction with the R command. | |
1621 | 3302 |
3303 | |
3304 SELECTING SORTING STYLE *netrw-s* *netrw-sort* {{{2 | |
3305 | |
3306 One may select the sorting style by name, time, or (file) size. The "s" map | |
3307 allows one to circulate amongst the three choices; the directory listing will | |
3308 automatically be refreshed to reflect the selected style. | |
3309 | |
3310 Related topics: |netrw-r| |netrw-S| | |
3311 Associated setting variables: |g:netrw_sort_by| |g:netrw_sort_sequence| | |
3312 | |
3313 | |
7183
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3314 SETTING EDITING WINDOW *netrw-editwindow* *netrw-C* *netrw-:NetrwC* {{{2 |
6476 | 3315 |
3316 One may select a netrw window for editing with the "C" mapping, using the | |
7183
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3317 :NetrwC [win#] command, or by setting |g:netrw_chgwin| to the selected window |
6476 | 3318 number. Subsequent selection of a file to edit (|netrw-cr|) will use that |
3319 window. | |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
3320 |
7183
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3321 * C : by itself, will select the current window holding a netrw buffer |
12785 | 3322 for subsequent editing via |netrw-cr|. The C mapping is only available |
3323 while in netrw buffers. | |
7183
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3324 |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3325 * [count]C : the count will be used as the window number to be used |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3326 for subsequent editing via |netrw-cr|. |
6476 | 3327 |
3328 * :NetrwC will set |g:netrw_chgwin| to the current window | |
3329 | |
3330 * :NetrwC win# will set |g:netrw_chgwin| to the specified window | |
3331 number | |
3332 | |
5929 | 3333 Using > |
3334 let g:netrw_chgwin= -1 | |
7183
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3335 will restore the default editing behavior |
12785 | 3336 (ie. subsequent editing will use the current window). |
5929 | 3337 |
5618 | 3338 Related topics: |netrw-cr| |g:netrw_browse_split| |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
3339 Associated setting variables: |g:netrw_chgwin| |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
3340 |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
3341 |
7183
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3342 SHRINKING OR EXPANDING A NETRW OR LEXPLORE WINDOW *netrw-c-tab* {{{2 |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3343 |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3344 The <c-tab> key will toggle a netrw or |:Lexplore| window's width, |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3345 but only if |g:netrw_usetab| exists and is non-zero (and, of course, |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3346 only if your terminal supports differentiating <c-tab> from a plain |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3347 <tab>). |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3348 |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3349 * If the current window is a netrw window, toggle its width |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3350 (between |g:netrw_wiw| and its original width) |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3351 |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3352 * Else if there is a |:Lexplore| window in the current tab, toggle |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3353 its width |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3354 |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3355 * Else bring up a |:Lexplore| window |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3356 |
12785 | 3357 If |g:netrw_usetab| exists and is zero, or if there is a pre-existing mapping |
8148
f5da459c5698
commit https://github.com/vim/vim/commit/e0fa3742ead676a3074a10edadbc955e1a89153d
Christian Brabandt <cb@256bit.org>
parents:
7188
diff
changeset
|
3358 for <c-tab>, then the <c-tab> will not be mapped. One may map something other |
12785 | 3359 than a <c-tab>, too: (but you'll still need to have had |g:netrw_usetab| set). > |
7183
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3360 |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3361 nmap <unique> (whatever) <Plug>NetrwShrink |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3362 < |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3363 Related topics: |:Lexplore| |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3364 Associated setting variable: |g:netrw_usetab| |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3365 |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3366 |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3367 USER SPECIFIED MAPS *netrw-usermaps* {{{1 |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3368 |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3369 One may make customized user maps. Specify a variable, |g:Netrw_UserMaps|, |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3370 to hold a |List| of lists of keymap strings and function names: > |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3371 |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3372 [["keymap-sequence","ExampleUserMapFunc"],...] |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3373 < |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3374 When netrw is setting up maps for a netrw buffer, if |g:Netrw_UserMaps| |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3375 exists, then the internal function netrw#UserMaps(islocal) is called. |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3376 This function goes through all the entries in the |g:Netrw_UserMaps| list: |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3377 |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3378 * sets up maps: > |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3379 nno <buffer> <silent> KEYMAP-SEQUENCE |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3380 :call s:UserMaps(islocal,"ExampleUserMapFunc") |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3381 < * refreshes if result from that function call is the string |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3382 "refresh" |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3383 * if the result string is not "", then that string will be |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3384 executed (:exe result) |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3385 * if the result is a List, then the above two actions on results |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3386 will be taken for every string in the result List |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3387 |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3388 The user function is passed one argument; it resembles > |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3389 |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3390 fun! ExampleUserMapFunc(islocal) |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3391 < |
12785 | 3392 where a:islocal is 1 if its a local-directory system call or 0 when |
7183
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3393 remote-directory system call. |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3394 |
12785 | 3395 *netrw-call* *netrw-expose* *netrw-modify* |
7183
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3396 Use netrw#Expose("varname") to access netrw-internal (script-local) |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3397 variables. |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3398 Use netrw#Modify("varname",newvalue) to change netrw-internal variables. |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3399 Use netrw#Call("funcname"[,args]) to call a netrw-internal function with |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3400 specified arguments. |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3401 |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3402 Example: Get a copy of netrw's marked file list: > |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3403 |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3404 let netrwmarkfilelist= netrw#Expose("netrwmarkfilelist") |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3405 < |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3406 Example: Modify the value of netrw's marked file list: > |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3407 |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3408 call netrw#Modify("netrwmarkfilelist",[]) |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3409 < |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3410 Example: Clear netrw's marked file list via a mapping on gu > |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3411 " ExampleUserMap: {{{2 |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3412 fun! ExampleUserMap(islocal) |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3413 call netrw#Modify("netrwmarkfilelist",[]) |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3414 call netrw#Modify('netrwmarkfilemtch_{bufnr("%")}',"") |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3415 let retval= ["refresh"] |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3416 return retval |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3417 endfun |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3418 let g:Netrw_UserMaps= [["gu","ExampleUserMap"]] |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3419 < |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3420 |
1621 | 3421 10. Problems and Fixes *netrw-problems* {{{1 |
24 | 3422 |
3423 (This section is likely to grow as I get feedback) | |
3424 (also see |netrw-debug|) | |
477 | 3425 *netrw-p1* |
17433 | 3426 P1. I use windows 95, and my ftp dumps four blank lines at the {{{2 |
24 | 3427 end of every read. |
3428 | |
3429 See |netrw-fixup|, and put the following into your | |
3430 <.vimrc> file: | |
3431 | |
3432 let g:netrw_win95ftp= 1 | |
466 | 3433 |
477 | 3434 *netrw-p2* |
17433 | 3435 P2. I use Windows, and my network browsing with ftp doesn't sort by {{{2 |
1121 | 3436 time or size! -or- The remote system is a Windows server; why |
3437 don't I get sorts by time or size? | |
24 | 3438 |
3439 Windows' ftp has a minimal support for ls (ie. it doesn't | |
3440 accept sorting options). It doesn't support the -F which | |
3441 gives an explanatory character (ABC/ for "ABC is a directory"). | |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
3442 Netrw then uses "dir" to get both its thin and long listings. |
1121 | 3443 If you think your ftp does support a full-up ls, put the |
3444 following into your <.vimrc>: > | |
24 | 3445 |
1121 | 3446 let g:netrw_ftp_list_cmd = "ls -lF" |
3447 let g:netrw_ftp_timelist_cmd= "ls -tlF" | |
3448 let g:netrw_ftp_sizelist_cmd= "ls -slF" | |
3449 < | |
24 | 3450 Alternatively, if you have cygwin on your Windows box, put |
1121 | 3451 into your <.vimrc>: > |
24 | 3452 |
3453 let g:netrw_cygwin= 1 | |
1121 | 3454 < |
3455 This problem also occurs when the remote system is Windows. | |
3456 In this situation, the various g:netrw_ftp_[time|size]list_cmds | |
3457 are as shown above, but the remote system will not correctly | |
3458 modify its listing behavior. | |
3459 | |
24 | 3460 |
477 | 3461 *netrw-p3* |
17433 | 3462 P3. I tried rcp://user@host/ (or protocol other than ftp) and netrw {{{2 |
24 | 3463 used ssh! That wasn't what I asked for... |
3464 | |
3465 Netrw has two methods for browsing remote directories: ssh | |
3466 and ftp. Unless you specify ftp specifically, ssh is used. | |
3467 When it comes time to do download a file (not just a directory | |
3468 listing), netrw will use the given protocol to do so. | |
3469 | |
477 | 3470 *netrw-p4* |
17433 | 3471 P4. I would like long listings to be the default. {{{2 |
24 | 3472 |
1621 | 3473 Put the following statement into your |.vimrc|: > |
3474 | |
1121 | 3475 let g:netrw_liststyle= 1 |
1621 | 3476 < |
3477 Check out |netrw-browser-var| for more customizations that | |
26 | 3478 you can set. |
24 | 3479 |
477 | 3480 *netrw-p5* |
17433 | 3481 P5. My times come up oddly in local browsing {{{2 |
24 | 3482 |
3483 Does your system's strftime() accept the "%c" to yield dates | |
4339 | 3484 such as "Sun Apr 27 11:49:23 1997"? If not, do a |
3485 "man strftime" and find out what option should be used. Then | |
3486 put it into your |.vimrc|: > | |
1621 | 3487 |
24 | 3488 let g:netrw_timefmt= "%X" (where X is the option) |
1621 | 3489 < |
477 | 3490 *netrw-p6* |
17433 | 3491 P6. I want my current directory to track my browsing. {{{2 |
26 | 3492 How do I do that? |
24 | 3493 |
1621 | 3494 Put the following line in your |.vimrc|: |
3495 > | |
794 | 3496 let g:netrw_keepdir= 0 |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
3497 < |
1121 | 3498 *netrw-p7* |
17433 | 3499 P7. I use Chinese (or other non-ascii) characters in my filenames, {{{2 |
3500 and netrw (Explore, Sexplore, Hexplore, etc) doesn't display them! | |
466 | 3501 |
1121 | 3502 (taken from an answer provided by Wu Yongwei on the vim |
3503 mailing list) | |
5734 | 3504 I now see the problem. Your code page is not 936, right? Vim |
1121 | 3505 seems only able to open files with names that are valid in the |
3506 current code page, as are many other applications that do not | |
3507 use the Unicode version of Windows APIs. This is an OS-related | |
3508 issue. You should not have such problems when the system | |
3509 locale uses UTF-8, such as modern Linux distros. | |
3510 | |
3511 (...it is one more reason to recommend that people use utf-8!) | |
3512 | |
3513 *netrw-p8* | |
17433 | 3514 P8. I'm getting "ssh is not executable on your system" -- what do I {{{2 |
1121 | 3515 do? |
3516 | |
3517 (Dudley Fox) Most people I know use putty for windows ssh. It | |
3518 is a free ssh/telnet application. You can read more about it | |
3519 here: | |
3520 | |
3521 http://www.chiark.greenend.org.uk/~sgtatham/putty/ Also: | |
3522 | |
3523 (Marlin Unruh) This program also works for me. It's a single | |
3524 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
|
3525 folder and create a shortcut to it. |
1121 | 3526 |
3527 (Dudley Fox) You might also wish to consider plink, as it | |
3528 sounds most similar to what you are looking for. plink is an | |
3529 application in the putty suite. | |
3530 | |
3531 http://the.earth.li/~sgtatham/putty/0.58/htmldoc/Chapter7.html#plink | |
3532 | |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
3533 (Vissale Neang) Maybe you can try OpenSSH for windows, which |
1121 | 3534 can be obtained from: |
3535 | |
3536 http://sshwindows.sourceforge.net/ | |
3537 | |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
3538 It doesn't need the full Cygwin package. |
1121 | 3539 |
3540 (Antoine Mechelynck) For individual Unix-like programs needed | |
3541 for work in a native-Windows environment, I recommend getting | |
3542 them from the GnuWin32 project on sourceforge if it has them: | |
3543 | |
3544 http://gnuwin32.sourceforge.net/ | |
3545 | |
3546 Unlike Cygwin, which sets up a Unix-like virtual machine on | |
3547 top of Windows, GnuWin32 is a rewrite of Unix utilities with | |
3548 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
|
3549 cmd.exe "Dos box". |
1121 | 3550 |
3551 (dave) Download WinSCP and use that to connect to the server. | |
3552 In Preferences > Editors, set gvim as your editor: | |
3553 | |
3554 - Click "Add..." | |
3555 - Set External Editor (adjust path as needed, include | |
3556 the quotes and !.! at the end): | |
19116 | 3557 "c:\Program Files\Vim\vim82\gvim.exe" !.! |
1121 | 3558 - Check that the filetype in the box below is |
3559 {asterisk}.{asterisk} (all files), or whatever types | |
3560 you want (cec: change {asterisk} to * ; I had to | |
3561 write it that way because otherwise the helptags | |
1621 | 3562 system thinks it's a tag) |
3563 - Make sure it's at the top of the listbox (click it, | |
3564 then click "Up" if it's not) | |
1121 | 3565 If using the Norton Commander style, you just have to hit <F4> |
3566 to edit a file in a local copy of gvim. | |
3567 | |
3568 (Vit Gottwald) How to generate public/private key and save | |
3569 public key it on server: > | |
2420
6de9efd58dc0
Updated runtime files. New netrw plugin version.
Bram Moolenaar <bram@vim.org>
parents:
2413
diff
changeset
|
3570 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
|
3571 (8.3 Getting ready for public key authentication) |
1121 | 3572 < |
1621 | 3573 How to use a private key with 'pscp': > |
3574 | |
2420
6de9efd58dc0
Updated runtime files. New netrw plugin version.
Bram Moolenaar <bram@vim.org>
parents:
2413
diff
changeset
|
3575 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
|
3576 (5.2.4 Using public key authentication with PSCP) |
1121 | 3577 < |
1621 | 3578 (Ben Schmidt) I find the ssh included with cwRsync is |
3579 brilliant, and install cwRsync or cwRsyncServer on most | |
3580 Windows systems I come across these days. I guess COPSSH, | |
3581 packed by the same person, is probably even better for use as | |
3582 just ssh on Windows, and probably includes sftp, etc. which I | |
3583 suspect the cwRsync doesn't, though it might | |
3584 | |
1121 | 3585 (cec) To make proper use of these suggestions above, you will |
3586 need to modify the following user-settable variables in your | |
3587 .vimrc: | |
3588 | |
1621 | 3589 |g:netrw_ssh_cmd| |g:netrw_list_cmd| |g:netrw_mkdir_cmd| |
3590 |g:netrw_rm_cmd| |g:netrw_rmdir_cmd| |g:netrw_rmf_cmd| | |
1121 | 3591 |
3592 The first one (|g:netrw_ssh_cmd|) is the most important; most | |
3593 of the others will use the string in g:netrw_ssh_cmd by | |
3594 default. | |
7183
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3595 |
1121 | 3596 *netrw-p9* *netrw-ml_get* |
17433 | 3597 P9. I'm browsing, changing directory, and bang! ml_get errors {{{2 |
1121 | 3598 appear and I have to kill vim. Any way around this? |
3599 | |
3600 Normally netrw attempts to avoid writing swapfiles for | |
3601 its temporary directory buffers. However, on some systems | |
3602 this attempt appears to be causing ml_get errors to | |
3603 appear. Please try setting |g:netrw_use_noswf| to 0 | |
3604 in your <.vimrc>: > | |
3605 let g:netrw_use_noswf= 0 | |
3606 < | |
1621 | 3607 *netrw-p10* |
17433 | 3608 P10. I'm being pestered with "[something] is a directory" and {{{2 |
1621 | 3609 "Press ENTER or type command to continue" prompts... |
3610 | |
3611 The "[something] is a directory" prompt is issued by Vim, | |
3612 not by netrw, and there appears to be no way to work around | |
3613 it. Coupled with the default cmdheight of 1, this message | |
3614 causes the "Press ENTER..." prompt. So: read |hit-enter|; | |
3615 I also suggest that you set your |'cmdheight'| to 2 (or more) in | |
3616 your <.vimrc> file. | |
3617 | |
3618 *netrw-p11* | |
17433 | 3619 P11. I want to have two windows; a thin one on the left and my {{{2 |
3620 editing window on the right. How may I accomplish this? | |
1621 | 3621 |
7183
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3622 You probably want netrw running as in a side window. If so, you |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3623 will likely find that ":[N]Lexplore" does what you want. The |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3624 optional "[N]" allows you to select the quantity of columns you |
7188
3ba0f29ba1d1
commit https://github.com/vim/vim/commit/d7464be9747fcaa8e6210e1f00a3882932df76e2
Christian Brabandt <cb@256bit.org>
parents:
7183
diff
changeset
|
3625 wish the |:Lexplore|r window to start with (see |g:netrw_winsize| |
7183
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3626 for how this parameter works). |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3627 |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3628 Previous solution: |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3629 |
1621 | 3630 * Put the following line in your <.vimrc>: |
3631 let g:netrw_altv = 1 | |
3632 * Edit the current directory: :e . | |
3633 * Select some file, press v | |
3634 * Resize the windows as you wish (see |CTRL-W_<| and | |
3635 |CTRL-W_>|). If you're using gvim, you can drag | |
3636 the separating bar with your mouse. | |
3637 * When you want a new file, use ctrl-w h to go back to the | |
3638 netrw browser, select a file, then press P (see |CTRL-W_h| | |
3639 and |netrw-P|). If you're using gvim, you can press | |
3640 <leftmouse> in the browser window and then press the | |
3641 <middlemouse> to select the file. | |
24 | 3642 |
7183
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3643 |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
3644 *netrw-p12* |
17433 | 3645 P12. My directory isn't sorting correctly, or unwanted letters are {{{2 |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
3646 appearing in the listed filenames, or things aren't lining |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
3647 up properly in the wide listing, ... |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
3648 |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
3649 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
|
3650 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
|
3651 Multibyte encodings use two (or more) bytes per character. |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
3652 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
|
3653 |
2152 | 3654 *netrw-p13* |
17433 | 3655 P13. I'm a Windows + putty + ssh user, and when I attempt to {{{2 |
3656 browse, the directories are missing trailing "/"s so netrw treats | |
3657 them as file transfers instead of as attempts to browse | |
2152 | 3658 subdirectories. How may I fix this? |
3659 | |
3660 (mikeyao) If you want to use vim via ssh and putty under Windows, | |
3661 try combining the use of pscp/psftp with plink. pscp/psftp will | |
3662 be used to connect and plink will be used to execute commands on | |
3663 the server, for example: list files and directory using 'ls'. | |
3664 | |
3665 These are the settings I use to do this: | |
3666 > | |
3667 " list files, it's the key setting, if you haven't set, | |
3668 " you will get a blank buffer | |
3669 let g:netrw_list_cmd = "plink HOSTNAME ls -Fa" | |
3670 " if you haven't add putty directory in system path, you should | |
3671 " specify scp/sftp command. For examples: | |
3672 "let g:netrw_sftp_cmd = "d:\\dev\\putty\\PSFTP.exe" | |
3673 "let g:netrw_scp_cmd = "d:\\dev\\putty\\PSCP.exe" | |
3674 < | |
2908 | 3675 *netrw-p14* |
17433 | 3676 P14. I would like to speed up writes using Nwrite and scp/ssh {{{2 |
2908 | 3677 style connections. How? (Thomer M. Gil) |
3678 | |
3679 Try using ssh's ControlMaster and ControlPath (see the ssh_config | |
3680 man page) to share multiple ssh connections over a single network | |
3681 connection. That cuts out the cryptographic handshake on each | |
3682 file write, sometimes speeding it up by an order of magnitude. | |
3683 (see http://thomer.com/howtos/netrw_ssh.html) | |
3684 (included by permission) | |
3685 | |
3686 Add the following to your ~/.ssh/config: > | |
3687 | |
3688 # you change "*" to the hostname you care about | |
3689 Host * | |
3690 ControlMaster auto | |
3691 ControlPath /tmp/%r@%h:%p | |
3692 | |
3693 < Then create an ssh connection to the host and leave it running: > | |
3694 | |
3695 ssh -N host.domain.com | |
3696 | |
3697 < Now remotely open a file with Vim's Netrw and enjoy the | |
3698 zippiness: > | |
3699 | |
3700 vim scp://host.domain.com//home/user/.bashrc | |
3701 < | |
3702 *netrw-p15* | |
17433 | 3703 P15. How may I use a double-click instead of netrw's usual single {{{2 |
3704 click to open a file or directory? (Ben Fritz) | |
2908 | 3705 |
3706 First, disable netrw's mapping with > | |
3707 let g:netrw_mousemaps= 0 | |
3708 < and then create a netrw buffer only mapping in | |
3709 $HOME/.vim/after/ftplugin/netrw.vim: > | |
3710 nmap <buffer> <2-leftmouse> <CR> | |
3711 < Note that setting g:netrw_mousemaps to zero will turn off | |
3712 all netrw's mouse mappings, not just the <leftmouse> one. | |
3713 (see |g:netrw_mousemaps|) | |
2152 | 3714 |
5929 | 3715 *netrw-p16* |
17433 | 3716 P16. When editing remote files (ex. :e ftp://hostname/path/file), {{{2 |
12785 | 3717 under Windows I get an |E303| message complaining that its unable |
5929 | 3718 to open a swap file. |
3719 | |
3720 (romainl) It looks like you are starting Vim from a protected | |
7183
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3721 directory. Start netrw from your $HOME or other writable |
5929 | 3722 directory. |
3723 | |
6476 | 3724 *netrw-p17* |
17433 | 3725 P17. Netrw is closing buffers on its own. {{{2 |
6476 | 3726 What steps will reproduce the problem? |
3727 1. :Explore, navigate directories, open a file | |
3728 2. :Explore, open another file | |
3729 3. Buffer opened in step 1 will be closed. o | |
3730 What is the expected output? What do you see instead? | |
3731 I expect both buffers to exist, but only the last one does. | |
3732 | |
3733 (Lance) Problem is caused by "set autochdir" in .vimrc. | |
3734 (drchip) I am able to duplicate this problem with |'acd'| set. | |
3735 It appears that the buffers are not exactly closed; | |
3736 a ":ls!" will show them (although ":ls" does not). | |
3737 | |
3738 *netrw-P18* | |
17433 | 3739 P18. How to locally edit a file that's only available via {{{2 |
6476 | 3740 another server accessible via ssh? |
3741 See http://stackoverflow.com/questions/12469645/ | |
3742 "Using Vim to Remotely Edit A File on ServerB Only | |
3743 Accessible From ServerA" | |
3744 | |
7183
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3745 *netrw-P19* |
17433 | 3746 P19. How do I get numbering on in directory listings? {{{2 |
7183
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3747 With |g:netrw_bufsettings|, you can control netrw's buffer |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3748 settings; try putting > |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3749 let g:netrw_bufsettings="noma nomod nu nobl nowrap ro nornu" |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3750 < in your .vimrc. If you'd like to have relative numbering |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3751 instead, try > |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3752 let g:netrw_bufsettings="noma nomod nonu nobl nowrap ro rnu" |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3753 < |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3754 *netrw-P20* |
17433 | 3755 P20. How may I have gvim start up showing a directory listing? {{{2 |
7183
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3756 Try putting the following code snippet into your .vimrc: > |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3757 augroup VimStartup |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3758 au! |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3759 au VimEnter * if expand("%") == "" && argc() == 0 && |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3760 \ (v:servername =~ 'GVIM\d*' || v:servername == "") |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3761 \ | e . | endif |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3762 augroup END |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3763 < You may use Lexplore instead of "e" if you're so inclined. |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3764 This snippet assumes that you have client-server enabled |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3765 (ie. a "huge" vim version). |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3766 |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3767 *netrw-P21* |
17433 | 3768 P21. I've made a directory (or file) with an accented character, {{{2 |
3769 but netrw isn't letting me enter that directory/read that file: | |
7183
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3770 |
12785 | 3771 Its likely that the shell or o/s is using a different encoding |
7183
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3772 than you have vim (netrw) using. A patch to vim supporting |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3773 "systemencoding" may address this issue in the future; for |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3774 now, just have netrw use the proper encoding. For example: > |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3775 |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3776 au FileType netrw set enc=latin1 |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3777 < |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3778 *netrw-P22* |
17433 | 3779 P22. I get an error message when I try to copy or move a file: {{{2 |
7183
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3780 |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3781 **error** (netrw) tried using g:netrw_localcopycmd<cp>; it doesn't work! |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3782 |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3783 What's wrong? |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3784 |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3785 Netrw uses several system level commands to do things (see |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3786 |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3787 |g:netrw_localcopycmd|, |g:netrw_localmovecmd|, |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3788 |g:netrw_localrmdir|, |g:netrw_mkdir_cmd|). |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3789 |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3790 You may need to adjust the default commands for one or more of |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3791 these commands by setting them properly in your .vimrc. Another |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3792 source of difficulty is that these commands use vim's local |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3793 directory, which may not be the same as the browsing directory |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3794 shown by netrw (see |g:netrw_keepdir|). |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3795 |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
3796 |
24 | 3797 ============================================================================== |
1621 | 3798 11. Debugging Netrw Itself *netrw-debug* {{{1 |
7 | 3799 |
6476 | 3800 Step 1: check that the problem you've encountered hasn't already been resolved |
3801 by obtaining a copy of the latest (often developmental) netrw at: | |
3802 | |
3803 http://www.drchip.org/astronaut/vim/index.html#NETRW | |
3804 | |
3805 The <netrw.vim> script is typically installed on systems as something like: | |
477 | 3806 > |
19116 | 3807 /usr/local/share/vim/vim8x/plugin/netrwPlugin.vim |
3808 /usr/local/share/vim/vim8x/autoload/netrw.vim | |
6476 | 3809 (see output of :echo &rtp) |
477 | 3810 < |
6476 | 3811 which is loaded automatically at startup (assuming :set nocp). If you |
3812 installed a new netrw, then it will be located at > | |
3813 | |
3814 $HOME/.vim/plugin/netrwPlugin.vim | |
3815 $HOME/.vim/autoload/netrw.vim | |
3816 < | |
3817 Step 2: assuming that you've installed the latest version of netrw, | |
3818 check that your problem is really due to netrw. Create a file | |
3819 called netrw.vimrc with the following contents: > | |
3820 | |
3821 set nocp | |
3822 so $HOME/.vim/plugin/netrwPlugin.vim | |
3823 < | |
3824 Then run netrw as follows: > | |
3825 | |
8148
f5da459c5698
commit https://github.com/vim/vim/commit/e0fa3742ead676a3074a10edadbc955e1a89153d
Christian Brabandt <cb@256bit.org>
parents:
7188
diff
changeset
|
3826 vim -u netrw.vimrc --noplugins -i NONE [some path here] |
6476 | 3827 < |
3828 Perform whatever netrw commands you need to, and check that the problem is | |
3829 still present. This procedure sidesteps any issues due to personal .vimrc | |
8148
f5da459c5698
commit https://github.com/vim/vim/commit/e0fa3742ead676a3074a10edadbc955e1a89153d
Christian Brabandt <cb@256bit.org>
parents:
7188
diff
changeset
|
3830 settings, .viminfo file, and other plugins. If the problem does not appear, |
f5da459c5698
commit https://github.com/vim/vim/commit/e0fa3742ead676a3074a10edadbc955e1a89153d
Christian Brabandt <cb@256bit.org>
parents:
7188
diff
changeset
|
3831 then you need to determine which setting in your .vimrc is causing the |
f5da459c5698
commit https://github.com/vim/vim/commit/e0fa3742ead676a3074a10edadbc955e1a89153d
Christian Brabandt <cb@256bit.org>
parents:
7188
diff
changeset
|
3832 conflict with netrw or which plugin(s) is/are involved. |
6476 | 3833 |
3834 Step 3: If the problem still is present, then get a debugging trace from | |
3835 netrw: | |
7 | 3836 |
3837 1. Get the <Decho.vim> script, available as: | |
3838 | |
3920 | 3839 http://www.drchip.org/astronaut/vim/index.html#DECHO |
7 | 3840 or |
534 | 3841 http://vim.sourceforge.net/scripts/script.php?script_id=120 |
7 | 3842 |
22328 | 3843 Decho.vim is provided as a "vimball"; see |vimball-intro|. You |
3844 should edit the Decho.vba.gz file and source it in: > | |
3845 | |
25700 | 3846 vim Decho.vba.gz |
22328 | 3847 :so % |
3848 :q | |
3849 < | |
3850 2. To turn on debug tracing in netrw, then edit the <netrw.vim> | |
3851 file by typing: > | |
22 | 3852 |
3853 vim netrw.vim | |
7 | 3854 :DechoOn |
22 | 3855 :wq |
1621 | 3856 < |
3857 To restore to normal non-debugging behavior, re-edit <netrw.vim> | |
3858 and type > | |
7 | 3859 |
22 | 3860 vim netrw.vim |
3861 :DechoOff | |
3862 :wq | |
1621 | 3863 < |
22 | 3864 This command, provided by <Decho.vim>, will comment out all |
3865 Decho-debugging statements (Dfunc(), Dret(), Decho(), Dredir()). | |
3866 | |
1621 | 3867 3. Then bring up vim and attempt to evoke the problem by doing a |
3868 transfer or doing some browsing. A set of messages should appear | |
3869 concerning the steps that <netrw.vim> took in attempting to | |
6476 | 3870 read/write your file over the network in a separate tab or |
3871 server vim window. | |
7 | 3872 |
22328 | 3873 Change the netrw.vimrc file to include the Decho plugin: > |
3874 | |
3875 set nocp | |
3876 so $HOME/.vim/plugin/Decho.vim | |
3877 so $HOME/.vim/plugin/netrwPlugin.vim | |
3878 < | |
3879 You should continue to run vim with > | |
3880 | |
3881 vim -u netrw.vimrc --noplugins -i NONE [some path here] | |
3882 < | |
3883 to avoid entanglements with options and other plugins. | |
3884 | |
3885 To save the file: under linux, the output will be in a separate | |
3886 remote server window; in it, just save the file with > | |
3887 | |
3888 :w! DBG | |
3889 | |
3890 < Under a vim that doesn't support clientserver, your debugging | |
3891 output will appear in another tab: > | |
5618 | 3892 |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
3893 :tabnext |
1121 | 3894 :set bt= |
3895 :w! DBG | |
22328 | 3896 < |
3897 Furthermore, it'd be helpful if you would type > | |
3898 | |
5734 | 3899 :Dsep <command> |
22328 | 3900 |
5734 | 3901 < where <command> is the command you're about to type next, |
3902 thereby making it easier to associate which part of the | |
3903 debugging trace is due to which command. | |
3904 | |
3905 Please send that information to <netrw.vim>'s maintainer along | |
6476 | 3906 with the o/s you're using and the vim version that you're using |
19099 | 3907 (see |:version|) (remove the embedded NOSPAM first) > |
22328 | 3908 |
19099 | 3909 NcampObell@SdrPchip.AorgM-NOSPAM |
1121 | 3910 < |
7 | 3911 ============================================================================== |
1121 | 3912 12. History *netrw-history* {{{1 |
7 | 3913 |
25700 | 3914 v171: Oct 09, 2020 * included code in s:NetrwOptionsSafe() |
3915 to allow |'bh'| to be set to delete when | |
3916 rather than hide when g:netrw_fastbrowse | |
3917 was zero. | |
3918 * Installed |g:netrw_clipboard| setting | |
3919 * Installed option bypass for |'guioptions'| | |
3920 a/A settings | |
3921 * Changed popup_beval() to |popup_atcursor|() | |
3922 in netrw#ErrorMsg (lacygoill). Apparently | |
3923 popup_beval doesn't reliably close the | |
3924 popup when the mouse is moved. | |
3925 * VimEnter() now using win_execute to examine | |
3926 buffers for an attempt to open a directory. | |
3927 Avoids issues with popups/terminal from | |
3928 command line. (lacygoill) | |
3929 Jun 28, 2021 * (zeertzjq) provided a patch for use of | |
3930 xmap,xno instead of vmap,vno in | |
3931 netrwPlugin.vim. Avoids entanglement with | |
3932 select mode. | |
3933 Jul 14, 2021 * Fixed problem addressed by tst976; opening | |
3934 a file using tree mode, going up a | |
3935 directory, and opening a file there was | |
3936 opening the file in the wrong directory. | |
3937 Jul 28, 2021 * (Ingo Karkat) provided a patch fixing an | |
3938 E488 error with netrwPlugin.vim | |
3939 (occurred for vim versions < 8.02) | |
22328 | 3940 v170: Mar 11, 2020 * (reported by Reiner Herrmann) netrw+tree |
3941 would not hide with the ^\..* pattern | |
3942 correctly. | |
3943 * (Marcin Szamotulski) NetrwOptionRestore | |
3944 did not restore options correctly that | |
3945 had a single quote in the option string. | |
3946 Apr 13, 2020 * implemented error handling via popup | |
3947 windows (see |popup_beval()|) | |
3948 Apr 30, 2020 * (reported by Manatsu Takahashi) while | |
3949 using Lexplore, a modified file could | |
3950 be overwritten. Sol'n: will not overwrite, | |
3951 but will emit an |E37| (although one cannot | |
3952 add an ! to override) | |
3953 Jun 07, 2020 * (reported by Jo Totland) repeatedly invoking | |
3954 :Lexplore and quitting it left unused | |
3955 hidden buffers. Netrw will now set netrw | |
25700 | 3956 buffers created by :Lexplore to |'bh'|=wipe. |
19099 | 3957 v169: Dec 20, 2019 * (reported by amkarthik) that netrw's x |
3958 (|netrw-x|) would throw an error when | |
3959 attempting to open a local directory. | |
3960 v168: Dec 12, 2019 * scp timeout error message not reported, | |
3961 hopefully now fixed (Shane Xb Qian) | |
18750 | 3962 v167: Nov 29, 2019 * netrw does a save&restore on @* and @+. |
3963 That causes problems with the clipboard. | |
3964 Now restores occurs only if @* or @+ have | |
3965 been changed. | |
3966 * netrw will change @* or @+ less often. | |
3967 Never if I happen to have caught all the | |
3968 operations that modify the unnamed | |
3969 register (which also writes @*). | |
3970 * Modified hiding behavior so that "s" | |
3971 will not ignore hiding. | |
18594 | 3972 v166: Nov 06, 2019 * Removed a space from a nmap for "-" |
3973 * Numerous debugging statement changes | |
17433 | 3974 v163: Dec 05, 2017 * (Cristi Balan) reported that a setting ('sel') |
3975 was left changed | |
3976 * (Holger Mitschke) reported a problem with | |
3977 saving and restoring history. Fixed. | |
3978 * Hopefully I fixed a nasty bug that caused a | |
3979 file rename to wipe out a buffer that it | |
3980 should not have wiped out. | |
3981 * (Holger Mitschke) amended this help file | |
3982 with additional |g:netrw_special_syntax| | |
3983 items | |
18594 | 3984 * Prioritized wget over curl for |
3985 g:netrw_http_cmd | |
12785 | 3986 v162: Sep 19, 2016 * (haya14busa) pointed out two syntax errors |
3987 with a patch; these are now fixed. | |
3988 Oct 26, 2016 * I started using mate-terminal and found that | |
3989 x and gx (|netrw-x| and |netrw-gx|) were no | |
3990 longer working. Fixed (using atril when | |
3991 $DESKTOP_SESSION is "mate"). | |
3992 Nov 04, 2016 * (Martin Vuille) pointed out that @+ was | |
3993 being restored with keepregstar rather than | |
3994 keepregplus. | |
3995 Nov 09, 2016 * Broke apart the command from the options, | |
3996 mostly for Windows. Introduced new netrw | |
3997 settings: |g:netrw_localcopycmdopt| | |
3998 |g:netrw_localcopydircmdopt| |g:netrw_localmkdiropt| | |
3999 |g:netrw_localmovecmdopt| |g:netrw_localrmdiropt| | |
4000 Nov 21, 2016 * (mattn) provided a patch for preview; swapped | |
4001 winwidth() with winheight() | |
4002 Nov 22, 2016 * (glacambre) reported that files containing | |
4003 spaces weren't being obtained properly via | |
4004 scp. Fix: apparently using single quotes | |
4005 such as with 'file name' wasn't enough; the | |
4006 spaces inside the quotes also had to be | |
4007 escaped (ie. 'file\ name'). | |
4008 * Also fixed obtain (|netrw-O|) to be able to | |
4009 obtain files with spaces in their names | |
4010 Dec 20, 2016 * (xc1427) Reported that using "I" (|netrw-I|) | |
4011 when atop "Hiding" in the banner also caused | |
4012 the active-banner hiding control to occur | |
4013 Jan 03, 2017 * (Enno Nagel) reported that attempting to | |
4014 apply netrw to a directory that was without | |
4015 read permission caused a syntax error. | |
4016 Jan 13, 2017 * (Ingo Karkat) provided a patch which makes | |
4017 using netrw#Call() better. Now returns | |
4018 value of internal routines return, for example. | |
4019 Jan 13, 2017 * (Ingo Karkat) changed netrw#FileUrlRead to | |
4020 use |:edit| instead of |:read|. I also | |
4021 changed the routine name to netrw#FileUrlEdit. | |
4022 Jan 16, 2017 * (Sayem) reported a problem where :Lexplore | |
4023 could generate a new listing buffer and | |
4024 window instead of toggling the netrw display. | |
4025 Unfortunately, the directions for eliciting | |
4026 the problem weren't complete, so I may or | |
4027 may not have fixed that issue. | |
4028 Feb 06, 2017 * Implemented cb and cB. Changed "c" to "cd". | |
4029 (see |netrw-cb|, |netrw-cB|, and |netrw-cd|) | |
4030 Mar 21, 2017 * previously, netrw would specify (safe) settings | |
4031 even when the setting was already safe for | |
4032 netrw. Netrw now attempts to leave such | |
4033 already-netrw-safe settings alone. | |
4034 (affects s:NetrwOptionRestore() and | |
4035 s:NetrwSafeOptions(); also introduced | |
4036 s:NetrwRestoreSetting()) | |
4037 Jun 26, 2017 * (Christian Brabandt) provided a patch to | |
4038 allow curl to follow redirects (ie. -L | |
4039 option) | |
4040 Jun 26, 2017 * (Callum Howard) reported a problem with | |
4041 :Lexpore not removing the Lexplore window | |
4042 after a change-directory | |
4043 Aug 30, 2017 * (Ingo Karkat) one cannot switch to the | |
4044 previously edited file (e.g. with CTRL-^) | |
4045 after editing a file:// URL. Patch to | |
4046 have a "keepalt" included. | |
4047 Oct 17, 2017 * (Adam Faryna) reported that gn (|netrw-gn|) | |
4048 did not work on directories in the current | |
4049 tree | |
4050 v157: Apr 20, 2016 * (Nicola) had set up a "nmap <expr> ..." with | |
4051 a function that returned a 0 while silently | |
4052 invoking a shell command. The shell command | |
4053 activated a ShellCmdPost event which in turn | |
4054 called s:LocalBrowseRefresh(). That looks | |
4055 over all netrw buffers for changes needing | |
4056 refreshes. However, inside a |:map-<expr>|, | |
4057 tab and window changes are disallowed. Fixed. | |
4058 (affects netrw's s:LocalBrowseRefresh()) | |
4059 * |g:netrw_localrmdir| not used any more, but | |
4060 the relevant patch that causes |delete()| to | |
4061 take over was #1107 (not #1109). | |
4062 * |expand()| is now used on |g:netrw_home|; | |
4063 consequently, g:netrw_home may now use | |
4064 environment variables | |
4065 * s:NetrwLeftmouse and s:NetrwCLeftmouse will | |
4066 return without doing anything if invoked | |
4067 when inside a non-netrw window | |
4068 Jun 15, 2016 * gx now calls netrw#GX() which returns | |
4069 the word under the cursor. The new | |
4070 wrinkle: if one is in a netrw buffer, | |
4071 then netrw's s:NetrwGetWord(). | |
4072 Jun 22, 2016 * Netrw was executing all its associated | |
4073 Filetype commands silently; I'm going | |
4074 to try doing that "noisily" and see if | |
4075 folks have a problem with that. | |
4076 Aug 12, 2016 * Changed order of tool selection for | |
4077 handling http://... viewing. | |
4078 (Nikolay Aleksandrovich Pavlov) | |
4079 Aug 21, 2016 * Included hiding/showing/all for tree | |
4080 listings | |
4081 * Fixed refresh (^L) for tree listings | |
8951
0bdeaf7092bc
commit https://github.com/vim/vim/commit/aa3b15dbebf333282503d6031e2f9ba6ee4398ed
Christian Brabandt <cb@256bit.org>
parents:
8148
diff
changeset
|
4082 v156: Feb 18, 2016 * Changed =~ to =~# where appropriate |
0bdeaf7092bc
commit https://github.com/vim/vim/commit/aa3b15dbebf333282503d6031e2f9ba6ee4398ed
Christian Brabandt <cb@256bit.org>
parents:
8148
diff
changeset
|
4083 Feb 23, 2016 * s:ComposePath(base,subdir) now uses |
0bdeaf7092bc
commit https://github.com/vim/vim/commit/aa3b15dbebf333282503d6031e2f9ba6ee4398ed
Christian Brabandt <cb@256bit.org>
parents:
8148
diff
changeset
|
4084 fnameescape() on the base portion |
0bdeaf7092bc
commit https://github.com/vim/vim/commit/aa3b15dbebf333282503d6031e2f9ba6ee4398ed
Christian Brabandt <cb@256bit.org>
parents:
8148
diff
changeset
|
4085 Mar 01, 2016 * (gt_macki) reported where :Explore would |
0bdeaf7092bc
commit https://github.com/vim/vim/commit/aa3b15dbebf333282503d6031e2f9ba6ee4398ed
Christian Brabandt <cb@256bit.org>
parents:
8148
diff
changeset
|
4086 make file unlisted. Fixed (tst943) |
0bdeaf7092bc
commit https://github.com/vim/vim/commit/aa3b15dbebf333282503d6031e2f9ba6ee4398ed
Christian Brabandt <cb@256bit.org>
parents:
8148
diff
changeset
|
4087 Apr 04, 2016 * (reported by John Little) netrw normally |
0bdeaf7092bc
commit https://github.com/vim/vim/commit/aa3b15dbebf333282503d6031e2f9ba6ee4398ed
Christian Brabandt <cb@256bit.org>
parents:
8148
diff
changeset
|
4088 suppresses browser messages, but sometimes |
0bdeaf7092bc
commit https://github.com/vim/vim/commit/aa3b15dbebf333282503d6031e2f9ba6ee4398ed
Christian Brabandt <cb@256bit.org>
parents:
8148
diff
changeset
|
4089 those "messages" are what is wanted. |
0bdeaf7092bc
commit https://github.com/vim/vim/commit/aa3b15dbebf333282503d6031e2f9ba6ee4398ed
Christian Brabandt <cb@256bit.org>
parents:
8148
diff
changeset
|
4090 See |g:netrw_suppress_gx_mesg| |
0bdeaf7092bc
commit https://github.com/vim/vim/commit/aa3b15dbebf333282503d6031e2f9ba6ee4398ed
Christian Brabandt <cb@256bit.org>
parents:
8148
diff
changeset
|
4091 Apr 06, 2016 * (reported by Carlos Pita) deleting a remote |
0bdeaf7092bc
commit https://github.com/vim/vim/commit/aa3b15dbebf333282503d6031e2f9ba6ee4398ed
Christian Brabandt <cb@256bit.org>
parents:
8148
diff
changeset
|
4092 file was giving an error message. Fixed. |
0bdeaf7092bc
commit https://github.com/vim/vim/commit/aa3b15dbebf333282503d6031e2f9ba6ee4398ed
Christian Brabandt <cb@256bit.org>
parents:
8148
diff
changeset
|
4093 Apr 08, 2016 * (Charles Cooper) had a problem with an |
0bdeaf7092bc
commit https://github.com/vim/vim/commit/aa3b15dbebf333282503d6031e2f9ba6ee4398ed
Christian Brabandt <cb@256bit.org>
parents:
8148
diff
changeset
|
4094 undefined b:netrw_curdir. He also provided |
0bdeaf7092bc
commit https://github.com/vim/vim/commit/aa3b15dbebf333282503d6031e2f9ba6ee4398ed
Christian Brabandt <cb@256bit.org>
parents:
8148
diff
changeset
|
4095 a fix. |
0bdeaf7092bc
commit https://github.com/vim/vim/commit/aa3b15dbebf333282503d6031e2f9ba6ee4398ed
Christian Brabandt <cb@256bit.org>
parents:
8148
diff
changeset
|
4096 Apr 20, 2016 * Changed s:NetrwGetBuffer(); now uses |
0bdeaf7092bc
commit https://github.com/vim/vim/commit/aa3b15dbebf333282503d6031e2f9ba6ee4398ed
Christian Brabandt <cb@256bit.org>
parents:
8148
diff
changeset
|
4097 dictionaries. Also fixed the "No Name" |
0bdeaf7092bc
commit https://github.com/vim/vim/commit/aa3b15dbebf333282503d6031e2f9ba6ee4398ed
Christian Brabandt <cb@256bit.org>
parents:
8148
diff
changeset
|
4098 buffer problem. |
8148
f5da459c5698
commit https://github.com/vim/vim/commit/e0fa3742ead676a3074a10edadbc955e1a89153d
Christian Brabandt <cb@256bit.org>
parents:
7188
diff
changeset
|
4099 v155: Oct 29, 2015 * (Timur Fayzrakhmanov) reported that netrw's |
f5da459c5698
commit https://github.com/vim/vim/commit/e0fa3742ead676a3074a10edadbc955e1a89153d
Christian Brabandt <cb@256bit.org>
parents:
7188
diff
changeset
|
4100 mapping of ctrl-l was not allowing refresh of |
f5da459c5698
commit https://github.com/vim/vim/commit/e0fa3742ead676a3074a10edadbc955e1a89153d
Christian Brabandt <cb@256bit.org>
parents:
7188
diff
changeset
|
4101 other windows when it was done in a netrw |
f5da459c5698
commit https://github.com/vim/vim/commit/e0fa3742ead676a3074a10edadbc955e1a89153d
Christian Brabandt <cb@256bit.org>
parents:
7188
diff
changeset
|
4102 window. |
f5da459c5698
commit https://github.com/vim/vim/commit/e0fa3742ead676a3074a10edadbc955e1a89153d
Christian Brabandt <cb@256bit.org>
parents:
7188
diff
changeset
|
4103 Nov 05, 2015 * Improved s:TreeSqueezeDir() to use search() |
f5da459c5698
commit https://github.com/vim/vim/commit/e0fa3742ead676a3074a10edadbc955e1a89153d
Christian Brabandt <cb@256bit.org>
parents:
7188
diff
changeset
|
4104 instead of a loop |
f5da459c5698
commit https://github.com/vim/vim/commit/e0fa3742ead676a3074a10edadbc955e1a89153d
Christian Brabandt <cb@256bit.org>
parents:
7188
diff
changeset
|
4105 * NetrwBrowse() will return line to |
f5da459c5698
commit https://github.com/vim/vim/commit/e0fa3742ead676a3074a10edadbc955e1a89153d
Christian Brabandt <cb@256bit.org>
parents:
7188
diff
changeset
|
4106 w:netrw_bannercnt if cursor ended up in |
f5da459c5698
commit https://github.com/vim/vim/commit/e0fa3742ead676a3074a10edadbc955e1a89153d
Christian Brabandt <cb@256bit.org>
parents:
7188
diff
changeset
|
4107 banner |
f5da459c5698
commit https://github.com/vim/vim/commit/e0fa3742ead676a3074a10edadbc955e1a89153d
Christian Brabandt <cb@256bit.org>
parents:
7188
diff
changeset
|
4108 Nov 16, 2015 * Added a <Plug>NetrwTreeSqueeze (|netrw-s-cr|) |
f5da459c5698
commit https://github.com/vim/vim/commit/e0fa3742ead676a3074a10edadbc955e1a89153d
Christian Brabandt <cb@256bit.org>
parents:
7188
diff
changeset
|
4109 Nov 17, 2015 * Commented out imaps -- perhaps someone can |
f5da459c5698
commit https://github.com/vim/vim/commit/e0fa3742ead676a3074a10edadbc955e1a89153d
Christian Brabandt <cb@256bit.org>
parents:
7188
diff
changeset
|
4110 tell me how they're useful and should be |
f5da459c5698
commit https://github.com/vim/vim/commit/e0fa3742ead676a3074a10edadbc955e1a89153d
Christian Brabandt <cb@256bit.org>
parents:
7188
diff
changeset
|
4111 retained? |
f5da459c5698
commit https://github.com/vim/vim/commit/e0fa3742ead676a3074a10edadbc955e1a89153d
Christian Brabandt <cb@256bit.org>
parents:
7188
diff
changeset
|
4112 Nov 20, 2015 * Added |netrw-ma| and |netrw-mA| support |
12785 | 4113 Nov 20, 2015 * gx (|netrw-gx|) on a URL downloaded the |
8148
f5da459c5698
commit https://github.com/vim/vim/commit/e0fa3742ead676a3074a10edadbc955e1a89153d
Christian Brabandt <cb@256bit.org>
parents:
7188
diff
changeset
|
4114 file in addition to simply bringing up the |
12785 | 4115 URL in a browser. Fixed. |
8148
f5da459c5698
commit https://github.com/vim/vim/commit/e0fa3742ead676a3074a10edadbc955e1a89153d
Christian Brabandt <cb@256bit.org>
parents:
7188
diff
changeset
|
4116 Nov 23, 2015 * Added |g:netrw_sizestyle| support |
f5da459c5698
commit https://github.com/vim/vim/commit/e0fa3742ead676a3074a10edadbc955e1a89153d
Christian Brabandt <cb@256bit.org>
parents:
7188
diff
changeset
|
4117 Nov 27, 2015 * Inserted a lot of <c-u>s into various netrw |
f5da459c5698
commit https://github.com/vim/vim/commit/e0fa3742ead676a3074a10edadbc955e1a89153d
Christian Brabandt <cb@256bit.org>
parents:
7188
diff
changeset
|
4118 maps. |
f5da459c5698
commit https://github.com/vim/vim/commit/e0fa3742ead676a3074a10edadbc955e1a89153d
Christian Brabandt <cb@256bit.org>
parents:
7188
diff
changeset
|
4119 Jan 05, 2016 * |netrw-qL| implemented to mark files based |
f5da459c5698
commit https://github.com/vim/vim/commit/e0fa3742ead676a3074a10edadbc955e1a89153d
Christian Brabandt <cb@256bit.org>
parents:
7188
diff
changeset
|
4120 upon |location-list|s; similar to |netrw-qF|. |
f5da459c5698
commit https://github.com/vim/vim/commit/e0fa3742ead676a3074a10edadbc955e1a89153d
Christian Brabandt <cb@256bit.org>
parents:
7188
diff
changeset
|
4121 Jan 19, 2016 * using - call delete(directoryname,"d") - |
f5da459c5698
commit https://github.com/vim/vim/commit/e0fa3742ead676a3074a10edadbc955e1a89153d
Christian Brabandt <cb@256bit.org>
parents:
7188
diff
changeset
|
4122 instead of using g:netrw_localrmdir if |
f5da459c5698
commit https://github.com/vim/vim/commit/e0fa3742ead676a3074a10edadbc955e1a89153d
Christian Brabandt <cb@256bit.org>
parents:
7188
diff
changeset
|
4123 v7.4 + patch#1107 is available |
f5da459c5698
commit https://github.com/vim/vim/commit/e0fa3742ead676a3074a10edadbc955e1a89153d
Christian Brabandt <cb@256bit.org>
parents:
7188
diff
changeset
|
4124 Jan 28, 2016 * changed to using |winsaveview()| and |
f5da459c5698
commit https://github.com/vim/vim/commit/e0fa3742ead676a3074a10edadbc955e1a89153d
Christian Brabandt <cb@256bit.org>
parents:
7188
diff
changeset
|
4125 |winrestview()| |
f5da459c5698
commit https://github.com/vim/vim/commit/e0fa3742ead676a3074a10edadbc955e1a89153d
Christian Brabandt <cb@256bit.org>
parents:
7188
diff
changeset
|
4126 Jan 28, 2016 * s:NetrwTreePath() now does a save and |
f5da459c5698
commit https://github.com/vim/vim/commit/e0fa3742ead676a3074a10edadbc955e1a89153d
Christian Brabandt <cb@256bit.org>
parents:
7188
diff
changeset
|
4127 restore of view |
f5da459c5698
commit https://github.com/vim/vim/commit/e0fa3742ead676a3074a10edadbc955e1a89153d
Christian Brabandt <cb@256bit.org>
parents:
7188
diff
changeset
|
4128 Feb 08, 2016 * Fixed a tree-listing problem with remote |
f5da459c5698
commit https://github.com/vim/vim/commit/e0fa3742ead676a3074a10edadbc955e1a89153d
Christian Brabandt <cb@256bit.org>
parents:
7188
diff
changeset
|
4129 directories |
7183
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
4130 v154: Feb 26, 2015 * (Yuri Kanivetsky) reported a situation where |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
4131 a file was not treated properly as a file |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
4132 due to g:netrw_keepdir == 1 |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
4133 Mar 25, 2015 * (requested by Ben Friz) one may now sort by |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
4134 extension |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
4135 Mar 28, 2015 * (requested by Matt Brooks) netrw has a lot |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
4136 of buffer-local mappings; however, some |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
4137 plugins (such as vim-surround) set up |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
4138 conflicting mappings that cause vim to wait. |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
4139 The "<nowait>" modifier has been included |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
4140 with most of netrw's mappings to avoid that |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
4141 delay. |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
4142 Jun 26, 2015 * |netrw-gn| mapping implemted |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
4143 * :Ntree NotADir resulted in having |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
4144 the tree listing expand in the error messages |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
4145 window. Fixed. |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
4146 Jun 29, 2015 * Attempting to delete a file remotely caused |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
4147 an error with "keepsol" mentioned; fixed. |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
4148 Jul 08, 2015 * Several changes to keep the |:jumps| table |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
4149 correct when working with |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
4150 |g:netrw_fastbrowse| set to 2 |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
4151 * wide listing with accented characters fixed |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
4152 (using %-S instead of %-s with a |printf()| |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
4153 Jul 13, 2015 * (Daniel Hahler) CheckIfKde() could be true |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
4154 but kfmclient not installed. Changed order |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
4155 in netrw#BrowseX(): checks if kde and |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
4156 kfmclient, then will use xdg-open on a unix |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
4157 system (if xdg-open is executable) |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
4158 Aug 11, 2015 * (McDonnell) tree listing mode wouldn't |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
4159 select a file in a open subdirectory. |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
4160 * (McDonnell) when multiple subdirectories |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
4161 were concurrently open in tree listing |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
4162 mode, a ctrl-L wouldn't refresh properly. |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
4163 * The netrw:target menu showed duplicate |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
4164 entries |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
4165 Oct 13, 2015 * (mattn) provided an exception to handle |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
4166 windows with shellslash set but no shell |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
4167 Oct 23, 2015 * if g:netrw_usetab and <c-tab> now used |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
4168 to control whether NetrwShrink is used |
ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents:
6476
diff
changeset
|
4169 (see |netrw-c-tab|) |
6476 | 4170 v153: May 13, 2014 * added another |g:netrw_ffkeep| usage {{{2 |
4171 May 14, 2014 * changed s:PerformListing() so that it | |
4172 always sets ft=netrw for netrw buffers | |
4173 (ie. even when syntax highlighting is | |
4174 off, not available, etc) | |
4175 May 16, 2014 * introduced the |netrw-ctrl-r| functionality | |
4176 May 17, 2014 * introduced the |netrw-:NetrwMB| functionality | |
4177 * mb and mB (|netrw-mb|, |netrw-mB|) will | |
4178 add/remove marked files from bookmark list | |
4179 May 20, 2014 * (Enno Nagel) reported that :Lex <dirname> | |
4180 wasn't working. Fixed. | |
4181 May 26, 2014 * restored test to prevent leftmouse window | |
4182 resizing from causing refresh. | |
4183 (see s:NetrwLeftmouse()) | |
4184 * fixed problem where a refresh caused cursor | |
4185 to go just under the banner instead of | |
4186 staying put | |
4187 May 28, 2014 * (László Bimba) provided a patch for opening | |
4188 the |:Lexplore| window 100% high, optionally | |
4189 on the right, and will work with remote | |
4190 files. | |
4191 May 29, 2014 * implemented :NetrwC (see |netrw-:NetrwC|) | |
4192 Jun 01, 2014 * Removed some "silent"s from commands used | |
4193 to implemented scp://... and pscp://... | |
4194 directory listing. Permits request for | |
4195 password to appear. | |
4196 Jun 05, 2014 * (Enno Nagel) reported that user maps "/" | |
4197 caused problems with "b" and "w", which | |
4198 are mapped (for wide listings only) to | |
4199 skip over files rather than just words. | |
4200 Jun 10, 2014 * |g:netrw_gx| introduced to allow users to | |
4201 override default "<cfile>" with the gx | |
4202 (|netrw-gx|) map | |
4203 Jun 11, 2014 * gx (|netrw-gx|), with |'autowrite'| set, | |
4204 will write modified files. s:NetrwBrowseX() | |
4205 will now save, turn off, and restore the | |
4206 |'autowrite'| setting. | |
4207 Jun 13, 2014 * added visual map for gx use | |
4208 Jun 15, 2014 * (Enno Nagel) reported that with having hls | |
4209 set and wide listing style in use, that the | |
4210 b and w maps caused unwanted highlighting. | |
4211 Jul 05, 2014 * |netrw-mv| and |netrw-mX| commands included | |
4212 Jul 09, 2014 * |g:netrw_keepj| included, allowing optional | |
4213 keepj | |
4214 Jul 09, 2014 * fixing bugs due to previous update | |
4215 Jul 21, 2014 * (Bruno Sutic) provided an updated | |
4216 netrw_gitignore.vim | |
4217 Jul 30, 2014 * (Yavuz Yetim) reported that editing two | |
4218 remote files of the same name caused the | |
4219 second instance to have a "temporary" | |
4220 name. Fixed: now they use the same buffer. | |
4221 Sep 18, 2014 * (Yasuhiro Matsumoto) provided a patch which | |
4222 allows scp and windows local paths to work. | |
4223 Oct 07, 2014 * gx (see |netrw-gx|) when atop a directory, | |
4224 will now do |gf| instead | |
4225 Nov 06, 2014 * For cygwin: cygstart will be available for | |
4226 netrw#BrowseX() to use if its executable. | |
4227 Nov 07, 2014 * Began support for file://... urls. Will use | |
4228 |g:netrw_file_cmd| (typically elinks or links) | |
4229 Dec 02, 2014 * began work on having mc (|netrw-mc|) copy | |
4230 directories. Works for linux machines, | |
4231 cygwin+vim, but not for windows+gvim. | |
4232 Dec 02, 2014 * in tree mode, netrw was not opening | |
4233 directories via symbolic links. | |
4234 Dec 02, 2014 * added resolved link information to | |
4235 thin and tree modes | |
4236 Dec 30, 2014 * (issue#231) |:ls| was not showing | |
4237 remote-file buffers reliably. Fixed. | |
4238 v152: Apr 08, 2014 * uses the |'noswapfile'| option (requires {{{2 | |
5929 | 4239 vim 7.4 with patch 213) |
4240 * (Enno Nagel) turn |'rnu'| off in netrw | |
4241 buffers. | |
4242 * (Quinn Strahl) suggested that netrw | |
4243 allow regular window splitting to occur, | |
4244 thereby allowing |'equalalways'| to take | |
4245 effect. | |
4246 * (qingtian zhao) normally, netrw will | |
4247 save and restore the |'fileformat'|; | |
4248 however, sometimes that isn't wanted | |
4249 Apr 14, 2014 * whenever netrw marks a buffer as ro, | |
4250 it will also mark it as nomod. | |
4251 Apr 16, 2014 * sftp protocol now supported by | |
4252 netrw#Obtain(); this means that one | |
4253 may use "mc" to copy a remote file | |
4254 to a local file using sftp, and that | |
4255 the |netrw-O| command can obtain remote | |
4256 files via sftp. | |
4257 * added [count]C support (see |netrw-C|) | |
4258 Apr 18, 2014 * when |g:netrw_chgwin| is one more than | |
4259 the last window, then vertically split | |
4260 the last window and use it as the | |
4261 chgwin window. | |
4262 May 09, 2014 * SavePosn was "saving filename under cursor" | |
4263 from a non-netrw window when using :Rex. | |
6476 | 4264 v151: Jan 22, 2014 * extended :Rexplore to return to buffer {{{2 |
5734 | 4265 prior to Explore or editing a directory |
4266 * (Ken Takata) netrw gave error when | |
4267 clipboard was disabled. Sol'n: Placed | |
4268 several if has("clipboard") tests in. | |
4269 * Fixed ftp://X@Y@Z// problem; X@Y now | |
4270 part of user id, and only Z is part of | |
4271 hostname. | |
4272 * (A Loumiotis) reported that completion | |
4273 using a directory name containing spaces | |
4274 did not work. Fixed with a retry in | |
4275 netrw#Explore() which removes the | |
4276 backslashes vim inserted. | |
4277 Feb 26, 2014 * :Rexplore now records the current file | |
4278 using w:netrw_rexfile when returning via | |
4279 |:Rexplore| | |
4280 Mar 08, 2014 * (David Kotchan) provided some patches | |
4281 allowing netrw to work properly with | |
4282 windows shares. | |
4283 * Multiple one-liner help messages available | |
4284 by pressing <cr> while atop the "Quick | |
4285 Help" line | |
4286 * worked on ShellCmdPost, FocusGained event | |
4287 handling. | |
4288 * |:Lexplore| path: will be used to update | |
4289 a left-side netrw browsing directory. | |
8148
f5da459c5698
commit https://github.com/vim/vim/commit/e0fa3742ead676a3074a10edadbc955e1a89153d
Christian Brabandt <cb@256bit.org>
parents:
7188
diff
changeset
|
4290 Mar 12, 2014 * |netrw-s-cr|: use <s-cr> to close |
5734 | 4291 tree directory implemented |
4292 Mar 13, 2014 * (Tony Mechylynck) reported that using | |
4293 the browser with ftp on a directory, | |
4294 and selecting a gzipped txt file, that | |
4295 an E19 occurred (which was issued by | |
4296 gzip.vim). Fixed. | |
4297 Mar 14, 2014 * Implemented :MF and :MT (see |netrw-:MF| | |
4298 and |netrw-:MT|, respectively) | |
4299 Mar 17, 2014 * |:Ntree| [dir] wasn't working properly; fixed | |
4300 Mar 18, 2014 * Changed all uses of set to setl | |
4301 Mar 18, 2014 * Commented the netrw_btkeep line in | |
4302 s:NetrwOptionSave(); the effect is that | |
4303 netrw buffers will remain as |'bt'|=nofile. | |
4304 This should prevent swapfiles being created | |
4305 for netrw buffers. | |
4306 Mar 20, 2014 * Changed all uses of lcd to use s:NetrwLcd() | |
4307 instead. Consistent error handling results | |
4308 and it also handles Window's shares | |
4309 * Fixed |netrw-d| command when applied with ftp | |
4310 * https: support included for netrw#NetRead() | |
6476 | 4311 v150: Jul 12, 2013 * removed a "keepalt" to allow ":e #" to {{{2 |
5618 | 4312 return to the netrw directory listing |
4313 Jul 13, 2013 * (Jonas Diemer) suggested changing | |
4314 a <cWORD> to <cfile>. | |
4315 Jul 21, 2013 * (Yuri Kanivetsky) reported that netrw's | |
4316 use of mkdir did not produce directories | |
5734 | 4317 following the user's umask. |
5618 | 4318 Aug 27, 2013 * introduced |g:netrw_altfile| option |
4319 Sep 05, 2013 * s:Strlen() now uses |strdisplaywidth()| | |
4320 when available, by default | |
4321 Sep 12, 2013 * (Selyano Baldo) reported that netrw wasn't | |
4322 opening some directories properly from the | |
4323 command line. | |
4324 Nov 09, 2013 * |:Lexplore| introduced | |
4325 * (Ondrej Platek) reported an issue with | |
4326 netrw's trees (P15). Fixed. | |
4327 * (Jorge Solis) reported that "t" in | |
4328 tree mode caused netrw to forget its | |
4329 line position. | |
4330 Dec 05, 2013 * Added <s-leftmouse> file marking | |
4331 (see |netrw-mf|) | |
4332 Dec 05, 2013 * (Yasuhiro Matsumoto) Explore should use | |
4333 strlen() instead s:Strlen() when handling | |
4334 multibyte chars with strpart() | |
4335 (ie. strpart() is byte oriented, not | |
4336 display-width oriented). | |
4337 Dec 09, 2013 * (Ken Takata) Provided a patch; File sizes | |
4338 and a portion of timestamps were wrongly | |
4339 highlighted with the directory color when | |
4340 setting `:let g:netrw_liststyle=1` on Windows. | |
4341 * (Paul Domaskis) noted that sometimes | |
4342 cursorline was activating in non-netrw | |
4343 windows. All but one setting of cursorline | |
4344 was done via setl; there was one that was | |
4345 overlooked. Fixed. | |
4346 Dec 24, 2013 * (esquifit) asked that netrw allow the | |
4347 /cygdrive prefix be a user-alterable | |
4348 parameter. | |
4349 Jan 02, 2014 * Fixed a problem with netrw-based ballon | |
4350 evaluation (ie. netrw#NetrwBaloonHelp() | |
4351 not having been loaded error messages) | |
4352 Jan 03, 2014 * Fixed a problem with tree listings | |
4353 * New command installed: |:Ntree| | |
4354 Jan 06, 2014 * (Ivan Brennan) reported a problem with | |
4355 |netrw-P|. Fixed. | |
4356 Jan 06, 2014 * Fixed a problem with |netrw-P| when the | |
4357 modified file was to be abandoned. | |
4358 Jan 15, 2014 * (Matteo Cavalleri) reported that when the | |
4359 banner is suppressed and tree listing is | |
4360 used, a blank line was left at the top of | |
4361 the display. Fixed. | |
4362 Jan 20, 2014 * (Gideon Go) reported that, in tree listing | |
4363 style, with a previous window open, that | |
4364 the wrong directory was being used to open | |
4365 a file. Fixed. (P21) | |
6476 | 4366 v149: Apr 18, 2013 * in wide listing format, now have maps for {{{2 |
4502
605c9ce57ec3
Updated runtime files, language files and translations.
Bram Moolenaar <bram@vim.org>
parents:
4339
diff
changeset
|
4367 w and b to move to next/previous file |
605c9ce57ec3
Updated runtime files, language files and translations.
Bram Moolenaar <bram@vim.org>
parents:
4339
diff
changeset
|
4368 Apr 26, 2013 * one may now copy files in the same |
605c9ce57ec3
Updated runtime files, language files and translations.
Bram Moolenaar <bram@vim.org>
parents:
4339
diff
changeset
|
4369 directory; netrw will issue requests for |
605c9ce57ec3
Updated runtime files, language files and translations.
Bram Moolenaar <bram@vim.org>
parents:
4339
diff
changeset
|
4370 what names the files should be copied under |
605c9ce57ec3
Updated runtime files, language files and translations.
Bram Moolenaar <bram@vim.org>
parents:
4339
diff
changeset
|
4371 Apr 29, 2013 * Trying Benzinger's problem again. Seems |
605c9ce57ec3
Updated runtime files, language files and translations.
Bram Moolenaar <bram@vim.org>
parents:
4339
diff
changeset
|
4372 that commenting out the BufEnter and |
605c9ce57ec3
Updated runtime files, language files and translations.
Bram Moolenaar <bram@vim.org>
parents:
4339
diff
changeset
|
4373 installing VimEnter (only) works. Weird |
605c9ce57ec3
Updated runtime files, language files and translations.
Bram Moolenaar <bram@vim.org>
parents:
4339
diff
changeset
|
4374 problem! (tree listing, vim -O Dir1 Dir2) |
605c9ce57ec3
Updated runtime files, language files and translations.
Bram Moolenaar <bram@vim.org>
parents:
4339
diff
changeset
|
4375 May 01, 2013 * :Explore ftp://... wasn't working. Fixed. |
605c9ce57ec3
Updated runtime files, language files and translations.
Bram Moolenaar <bram@vim.org>
parents:
4339
diff
changeset
|
4376 May 02, 2013 * introduced |g:netrw_bannerbackslash| as |
605c9ce57ec3
Updated runtime files, language files and translations.
Bram Moolenaar <bram@vim.org>
parents:
4339
diff
changeset
|
4377 requested by Paul Domaskis. |
5618 | 4378 Jul 03, 2013 * Explore now avoids splitting when a buffer |
4379 will be hidden. | |
6476 | 4380 v148: Apr 16, 2013 * changed Netrw's Style menu to allow direct {{{2 |
4339 | 4381 choice of listing style, hiding style, and |
4382 sorting style | |
7 | 4383 |
4384 ============================================================================== | |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
4385 13. Todo *netrw-todo* {{{1 |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
4386 |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
4387 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
|
4388 suppression banner. This feature is new and experimental, |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
4389 so its in the process of being debugged. |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
4390 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
|
4391 : See if it can be made to work with marked files. |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
4392 |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
4393 ============================================================================== |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
4394 14. Credits *netrw-credits* {{{1 |
7 | 4395 |
4396 Vim editor by Bram Moolenaar (Thanks, Bram!) | |
4397 dav support by C Campbell | |
4398 fetch support by Bram Moolenaar and C Campbell | |
19099 | 4399 ftp support by C Campbell <NcampObell@SdrPchip.AorgM-NOSPAM> |
7 | 4400 http support by Bram Moolenaar <bram@moolenaar.net> |
4401 rcp | |
4402 rsync support by C Campbell (suggested by Erik Warendorph) | |
4403 scp support by raf <raf@comdyn.com.au> | |
4404 sftp support by C Campbell | |
4405 | |
4406 inputsecret(), BufReadCmd, BufWriteCmd contributed by C Campbell | |
4407 | |
4408 Jérôme Augé -- also using new buffer method with ftp+.netrc | |
534 | 4409 Bram Moolenaar -- obviously vim itself, :e and v:cmdarg use, |
1209 | 4410 fetch,... |
7 | 4411 Yasuhiro Matsumoto -- pointing out undo+0r problem and a solution |
4412 Erik Warendorph -- for several suggestions (g:netrw_..._cmd | |
4413 variables, rsync etc) | |
534 | 4414 Doug Claar -- modifications to test for success with ftp |
1209 | 4415 operation |
7 | 4416 |
4417 ============================================================================== | |
1621 | 4418 Modelines: {{{1 |
22328 | 4419 vim:tw=78:ts=8:ft=help:noet:norl:fdm=marker |