annotate runtime/doc/pi_netrw.txt @ 2106:15674e198164 v7.2.389

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