Bram Moolenaar | 1d94f9b | 2005-08-04 21:29:45 +0000 | [diff] [blame^] | 1 | *pi_netrw.txt* For Vim version 7.0. Last change: Aug 01, 2005 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2 | |
| 3 | |
| 4 | VIM REFERENCE MANUAL by Charles E. Campbell, Jr. |
| 5 | |
Bram Moolenaar | 69a7cb4 | 2004-06-20 12:51:53 +0000 | [diff] [blame] | 6 | *dav* *http* *network* *rcp* *scp* |
| 7 | *fetch* *netrw* *Nread* *rsync* *sftp* |
| 8 | *ftp* *netrw.vim* *Nwrite* *netrw-file* |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9 | |
| 10 | ============================================================================== |
| 11 | 0. Contents *netrw-contents* |
| 12 | |
Bram Moolenaar | 83bab71 | 2005-08-01 21:58:57 +0000 | [diff] [blame] | 13 | 1. Netrw Reference......................................|netrw-ref| |
| 14 | 2. Network-Oriented File Transfer.......................|netrw-xfer| |
| 15 | NETRC..............................................|netrw-netrc| |
| 16 | PASSWORD...........................................|netrw-passwd| |
| 17 | 3. Activation...........................................|netrw-activate| |
| 18 | 4. Transparent File Transfer............................|netrw-transparent| |
| 19 | 5. Ex Commands..........................................|netrw-ex| |
| 20 | 6. Variables and Options................................|netrw-var| |
| 21 | 7. Directory Browser....................................|netrw-browse| {{{1 |
| 22 | Maps...............................................|netrw-maps| |
| 23 | Exploring..........................................|netrw-explore-cmds| |
| 24 | Quick Reference Commands Table.....................|netrw-browse-cmds| |
| 25 | Netrw Browser Variables............................|netrw-browse-var| |
| 26 | Introduction To Directory Browsing.................|netrw-browse-intro| |
| 27 | Directory Exploring Commands.......................|netrw-explore| |
| 28 | Refreshing The Listing.............................|netrw-ctrl-l| |
| 29 | Going Up...........................................|netrw--| |
| 30 | Browsing...........................................|netrw-cr| |
| 31 | Long Vs Short Listing..............................|netrw-i| |
| 32 | Making A New Directory.............................|netrw-d| |
| 33 | Deleting Files Or Directories......................|netrw-delete| |
| 34 | Renaming Files Or Directories......................|netrw-move| |
| 35 | Hiding Files Or Directories........................|g:netrw-a| |
| 36 | Edit File Or Directory Hiding List.................|netrw-h| |
| 37 | Browsing With A Horizontally Split Window..........|netrw-o| |
| 38 | Preview Window.....................................|netrw-p| |
| 39 | Selecting Sorting Style............................|netrw-s| |
| 40 | Editing The Sorting Sequence.......................|netrw-S| |
| 41 | Reversing Sorting Order............................|netrw-r| |
| 42 | Changing To A Predecessor Directory................|netrw-u| |
| 43 | Changing To A Successor Directory..................|netrw-U| |
| 44 | Browsing With A Vertically Split Window............|netrw-v| |
| 45 | Customizing Browsing With A User Function..........|netrw-x| |
| 46 | Making The Browsing Directory The Current Directory|netrw-c| |
| 47 | Bookmarking A Directory............................|netrw-b| |
| 48 | Changing To A Bookmarked Directory.................|netrw-B| |
| 49 | Listing Bookmarks And History......................|netrw-q| |
| 50 | Improving Directory Browsing.......................|netrw-list-hack| }}}1 |
| 51 | 8. Problems and Fixes...................................|netrw-problems| |
| 52 | 9. Debugging............................................|netrw-debug| |
| 53 | 10. History..............................................|netrw-history| |
| 54 | 11. Credits..............................................|netrw-credits| |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 55 | |
| 56 | The functionality mentioned here is done via using |standard-plugin| |
| 57 | techniques. This plugin is only available if |
| 58 | |
Bram Moolenaar | 69a7cb4 | 2004-06-20 12:51:53 +0000 | [diff] [blame] | 59 | set nocp " 'compatible' is not set |
| 60 | filetype plugin on " plugins are enabled |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 61 | |
| 62 | You can avoid loading this plugin by setting the "loaded_netrw" variable |
| 63 | in your <.vimrc> file: > |
| 64 | |
| 65 | :let loaded_netrw = 1 |
| 66 | |
| 67 | {Vi does not have any of this} |
| 68 | |
| 69 | ============================================================================== |
| 70 | 1. Netrw Reference *netrw-ref* |
| 71 | |
| 72 | OPTIONS |
| 73 | let g:netrw_ftp =0 use ftp (default) (uid password) |
| 74 | =1 use alternate ftp method (user uid password) |
| 75 | If you're having trouble with ftp, try changing the value |
| 76 | of this variable in your <.vimrc> to change methods |
| 77 | |
| 78 | let g:netrw_ignorenetrc= 1 |
| 79 | If you have a <.netrc> file but it doesn't work and you |
| 80 | want it ignored, then set this variable as shown. Its mere |
| 81 | existence is enough to cause <.netrc> to be ignored. |
| 82 | |
| 83 | Controlling External Applications |
| 84 | |
Bram Moolenaar | 69a7cb4 | 2004-06-20 12:51:53 +0000 | [diff] [blame] | 85 | Protocol Variable Default Value |
| 86 | -------- ---------------- ------------- |
| 87 | dav: g:netrw_dav_cmd = "cadaver" |
| 88 | fetch: g:netrw_fetch_cmd = "fetch -o" |
| 89 | ftp: g:netrw_ftp_cmd = "ftp" |
| 90 | http: g:netrw_http_cmd = "fetch -o" if fetch is available |
| 91 | http: g:netrw_http_cmd = "wget -q -O" If wget is available |
| 92 | rcp: g:netrw_rcp_cmd = "rcp" |
| 93 | rsync: g:netrw_rsync_cmd = "rsync -a" |
| 94 | scp: g:netrw_scp_cmd = "scp -q" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 95 | sftp: g:netrw_sftp_cmd = "sftp" |
| 96 | |
Bram Moolenaar | d4755bb | 2004-09-02 19:12:26 +0000 | [diff] [blame] | 97 | READING *netrw-read* *netrw-nread* |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 98 | :Nread ? give help |
Bram Moolenaar | d4755bb | 2004-09-02 19:12:26 +0000 | [diff] [blame] | 99 | :Nread "machine:path" uses rcp |
| 100 | :Nread "machine path" uses ftp with <.netrc> |
| 101 | :Nread "machine id password path" uses ftp |
| 102 | :Nread "dav://machine[:port]/path" uses cadaver |
| 103 | :Nread "fetch://[user@]machine/path" uses fetch |
| 104 | :Nread "ftp://[user@]machine[[:#]port]/path" uses ftp autodetects <.netrc> |
| 105 | :Nread "http://[user@]machine/path" uses http uses wget |
| 106 | :Nread "rcp://[user@]machine/path" uses rcp |
| 107 | :Nread "rsync://[user@]machine[:port]/path" uses rsync |
| 108 | :Nread "scp://[user@]machine[[:#]port]/path" uses scp |
| 109 | :Nread "sftp://[user@]machine/path" uses sftp |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 110 | |
Bram Moolenaar | d4755bb | 2004-09-02 19:12:26 +0000 | [diff] [blame] | 111 | WRITING *netrw-write* *netrw-nwrite* |
Bram Moolenaar | 69a7cb4 | 2004-06-20 12:51:53 +0000 | [diff] [blame] | 112 | :Nwrite ? give help |
Bram Moolenaar | d4755bb | 2004-09-02 19:12:26 +0000 | [diff] [blame] | 113 | :Nwrite "machine:path" uses rcp |
| 114 | :Nwrite "machine path" uses ftp with <.netrc> |
| 115 | :Nwrite "machine id password path" uses ftp |
| 116 | :Nwrite "dav://machine[:port]/path" uses cadaver |
| 117 | :Nwrite "ftp://[user@]machine[[:#]port]/path" uses ftp autodetects <.netrc> |
| 118 | :Nwrite "rcp://[user@]machine/path" uses rcp |
| 119 | :Nwrite "rsync://[user@]machine[:port]/path" uses rsync |
| 120 | :Nwrite "scp://[user@]machine[[:#]port]/path" uses scp |
| 121 | :Nwrite "sftp://[user@]machine/path" uses sftp |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 122 | http: not supported! |
| 123 | |
Bram Moolenaar | 69a7cb4 | 2004-06-20 12:51:53 +0000 | [diff] [blame] | 124 | DIRECTORY LISTING |
| 125 | :Nread [protocol]://[user]@hostname/path/ |
| 126 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 127 | USER AND PASSWORD CHANGING |
| 128 | Attempts to use ftp will prompt you for a user-id and a password. |
| 129 | These will be saved in g:netrw_uid and g:netrw_passwd Subsequent uses |
| 130 | of ftp will re-use those. If you need to use a different user id |
| 131 | and/or password, you'll want to call NetUserPass() first. |
| 132 | |
| 133 | :NetUserPass [uid [password]] -- prompts as needed |
| 134 | :call NetUserPass() -- prompts for uid and password |
| 135 | :call NetUserPass("uid") -- prompts for password |
| 136 | :call NetUserPass("uid","password") -- sets global uid and password |
| 137 | |
Bram Moolenaar | d4755bb | 2004-09-02 19:12:26 +0000 | [diff] [blame] | 138 | VARIABLES *netrw-variables* |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 139 | b:netrw_lastfile last file Network-read/written retained on |
| 140 | a per-buffer basis (supports plain :Nw ) |
| 141 | s:netrw_line during Nw/NetWrite, holds current line number |
| 142 | s:netrw_col during Nw/NetWrite, holds current column number |
| 143 | s:netrw_line and s:netrw_col are used to |
| 144 | restore the cursor position on writes |
| 145 | g:netrw_ftp if it doesn't exist, use default ftp |
| 146 | =0 use default ftp (uid password) |
| 147 | =1 use alternate ftp method (user uid password) |
| 148 | g:netrw_ftpmode ="binary" (default) |
Bram Moolenaar | c0197e2 | 2004-09-13 20:26:32 +0000 | [diff] [blame] | 149 | ="ascii" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 150 | g:netrw_uid (ftp) user-id, retained on a per-session basis |
| 151 | g:netrw_passwd (ftp) password, retained on a per-session basis |
Bram Moolenaar | c0197e2 | 2004-09-13 20:26:32 +0000 | [diff] [blame] | 152 | g:netrw_win95ftp =1 if using Win95, will remove four trailing blank |
| 153 | lines that o/s's ftp "provides" on transfers |
| 154 | =0 force normal ftp behavior (no trailing line |
| 155 | removal) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 156 | g:netrw_cygwin =1 assume scp under windows is from cygwin |
Bram Moolenaar | c0197e2 | 2004-09-13 20:26:32 +0000 | [diff] [blame] | 157 | Also permits network browsing to use |
| 158 | ls with time and size sorting |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 159 | (default if windows) |
Bram Moolenaar | c0197e2 | 2004-09-13 20:26:32 +0000 | [diff] [blame] | 160 | =0 assume Windows' scp accepts windows-style paths |
| 161 | Network browsing uses dir instead of ls |
| 162 | This option is ignored if you're using unix |
| 163 | g:netrw_use_nt_rcp=0 don't use the rcp of WinNT, Win2000 and WinXP |
| 164 | =1 use WinNT's rcp in binary mode (default) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 165 | |
Bram Moolenaar | d4755bb | 2004-09-02 19:12:26 +0000 | [diff] [blame] | 166 | PATHS *netrw-path* |
| 167 | |
| 168 | Paths to files are generally user-directory relative for most protocols. |
| 169 | It is possible that some protocol will make paths relative to some |
| 170 | associated directory, however. |
| 171 | |
| 172 | example: vim scp://user@host/somefile |
| 173 | example: vim scp://user@host/subdir1/subdir2/somefile |
| 174 | |
| 175 | where "somefile" is the "user"'s home directory. If you wish to get a |
| 176 | file using root-relative paths, use the full path: |
| 177 | |
| 178 | example: vim scp://user@host//somefile |
| 179 | example: vim scp://user@host//subdir1/subdir2/somefile |
| 180 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 181 | |
| 182 | ============================================================================== |
| 183 | 2. Network-Oriented File Transfer *netrw-xfer* |
| 184 | |
| 185 | Network-oriented file transfer under Vim is implemented by a VimL-based script |
| 186 | (<netrw.vim>) using plugin techniques. It currently supports both reading |
| 187 | and writing across networks using rcp, scp, ftp or ftp+<.netrc>, scp, fetch, |
| 188 | dav/cadaver, rsync, or sftp. |
| 189 | |
| 190 | http is currently supported read-only via use of wget or fetch. |
| 191 | |
| 192 | <netrw.vim> is a standard plugin which acts as glue between Vim and the |
| 193 | various file transfer programs. It uses autocommand events (BufReadCmd, |
| 194 | FileReadCmd, BufWriteCmd) to intercept reads/writes with url-like filenames. > |
| 195 | |
| 196 | ex. vim ftp://hostname/path/to/file |
| 197 | < |
| 198 | The characters preceding the colon specify the protocol to use; |
| 199 | in the example, its ftp. The <netrw.vim> script then formulates |
| 200 | a command or a series of commands (typically ftp) which it issues |
| 201 | to an external program (ftp, scp, etc) which does the actual file |
| 202 | transfer/protocol. Files are read from/written to a temporary file |
| 203 | (under Unix/Linux, /tmp/...) which the <netrw.vim> script will |
| 204 | clean up. |
| 205 | |
| 206 | One may modify any protocol's implementing external application |
Bram Moolenaar | c0197e2 | 2004-09-13 20:26:32 +0000 | [diff] [blame] | 207 | by setting a variable (ex. scp uses the variable g:netrw_scp_cmd, |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 208 | which is defaulted to "scp -q"). |
| 209 | |
| 210 | Ftp, an old protocol, seems to be blessed by numerous implementations. |
Bram Moolenaar | 83bab71 | 2005-08-01 21:58:57 +0000 | [diff] [blame] | 211 | Unfortunately, some implementations are noisy (ie., add junk to the end |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 212 | of the file). Thus, concerned users may decide to write a NetReadFixup() |
| 213 | function that will clean up after reading with their ftp. Some Unix systems |
Bram Moolenaar | 83bab71 | 2005-08-01 21:58:57 +0000 | [diff] [blame] | 214 | (ie., FreeBSD) provide a utility called "fetch" which uses the ftp protocol |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 215 | but is not noisy and more convenient, actually, for <netrw.vim> to use. |
| 216 | Consequently, if "fetch" is executable, it will be used to do reads for |
| 217 | ftp://... (and http://...) . See |netrw-var| for more about this. |
| 218 | |
| 219 | For rcp, scp, sftp, and http, one may use network-oriented file transfers |
Bram Moolenaar | 83bab71 | 2005-08-01 21:58:57 +0000 | [diff] [blame] | 220 | transparently; ie. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 221 | > |
| 222 | vim rcp://[user@]machine/path |
| 223 | vim scp://[user@]machine/path |
| 224 | < |
| 225 | If your ftp supports <.netrc>, then it too can be just as transparently used |
| 226 | if the needed triad of machine name, user id, and password are present in |
| 227 | that file. Your ftp must be able to use the <.netrc> file on its own, however. |
| 228 | > |
| 229 | vim ftp://[user@]machine[[:#]portnumber]/path |
| 230 | < |
| 231 | However, ftp will often need to query the user for the userid and password. |
Bram Moolenaar | 83bab71 | 2005-08-01 21:58:57 +0000 | [diff] [blame] | 232 | The latter will be done "silently"; ie. asterisks will show up instead of |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 233 | the actually-typed-in password. Netrw will retain the userid and password |
| 234 | for subsequent read/writes from the most recent transfer so subsequent |
| 235 | transfers (read/write) to or from that machine will take place without |
| 236 | additional prompting. |
| 237 | |
| 238 | *netrw-urls* |
| 239 | +=================================+============================+============+ |
Bram Moolenaar | 69a7cb4 | 2004-06-20 12:51:53 +0000 | [diff] [blame] | 240 | | Reading | Writing | Uses | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 241 | +=================================+============================+============+ |
Bram Moolenaar | 69a7cb4 | 2004-06-20 12:51:53 +0000 | [diff] [blame] | 242 | | DAV: | | | |
| 243 | | dav://host/path | | cadaver | |
| 244 | | :Nread dav://host/path | :Nwrite dav://host/path | cadaver | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 245 | +---------------------------------+----------------------------+------------+ |
Bram Moolenaar | 69a7cb4 | 2004-06-20 12:51:53 +0000 | [diff] [blame] | 246 | | FETCH: | | | |
| 247 | | fetch://[user@]host/path | | | |
| 248 | | fetch://[user@]host:http/path | Not Available | fetch | |
| 249 | | :Nread fetch://[user@]host/path| | | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 250 | +---------------------------------+----------------------------+------------+ |
Bram Moolenaar | 69a7cb4 | 2004-06-20 12:51:53 +0000 | [diff] [blame] | 251 | | FILE: | | | |
| 252 | | file:///* | file:///* | | |
| 253 | | file://localhost/* | file://localhost/* | | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 254 | +---------------------------------+----------------------------+------------+ |
Bram Moolenaar | 69a7cb4 | 2004-06-20 12:51:53 +0000 | [diff] [blame] | 255 | | FTP: (*3) | (*3) | | |
| 256 | | ftp://[user@]host/path | ftp://[user@]host/path | ftp (*2) | |
| 257 | | :Nread ftp://host/path | :Nwrite ftp://host/path | ftp+.netrc | |
| 258 | | :Nread host path | :Nwrite host path | ftp+.netrc | |
| 259 | | :Nread host uid pass path | :Nwrite host uid pass path | ftp | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 260 | +---------------------------------+----------------------------+------------+ |
Bram Moolenaar | 69a7cb4 | 2004-06-20 12:51:53 +0000 | [diff] [blame] | 261 | | HTTP: wget is executable: (*4) | | | |
| 262 | | http://[user@]host/path | Not Available | wget | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 263 | +---------------------------------+----------------------------+------------+ |
Bram Moolenaar | 69a7cb4 | 2004-06-20 12:51:53 +0000 | [diff] [blame] | 264 | | HTTP: fetch is executable (*4) | | | |
| 265 | | http://[user@]host/path | Not Available | fetch | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 266 | +---------------------------------+----------------------------+------------+ |
Bram Moolenaar | 69a7cb4 | 2004-06-20 12:51:53 +0000 | [diff] [blame] | 267 | | RCP: | | | |
| 268 | | rcp://[user@]host/path | rcp://[user@]host/path | rcp | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 269 | +---------------------------------+----------------------------+------------+ |
Bram Moolenaar | 69a7cb4 | 2004-06-20 12:51:53 +0000 | [diff] [blame] | 270 | | RSYNC: | | | |
| 271 | | rsync://[user@]host/path | rsync://[user@]host/path | rsync | |
| 272 | | :Nread rsync://host/path | :Nwrite rsync://host/path | rsync | |
| 273 | | :Nread rcp://host/path | :Nwrite rcp://host/path | rcp | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 274 | +---------------------------------+----------------------------+------------+ |
Bram Moolenaar | 69a7cb4 | 2004-06-20 12:51:53 +0000 | [diff] [blame] | 275 | | SCP: | | | |
| 276 | | scp://[user@]host/path | scp://[user@]host/path | scp | |
| 277 | | :Nread scp://host/path | :Nwrite scp://host/path | scp (*1) | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 278 | +---------------------------------+----------------------------+------------+ |
Bram Moolenaar | 69a7cb4 | 2004-06-20 12:51:53 +0000 | [diff] [blame] | 279 | | SFTP: | | | |
| 280 | | sftp://[user@]host/path | sftp://[user@]host/path | sftp | |
| 281 | | :Nread sftp://host/path | :Nwrite sftp://host/path | sftp (*1) | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 282 | +=================================+============================+============+ |
| 283 | |
| 284 | (*1) For an absolute path use scp://machine//path. |
| 285 | |
| 286 | (*2) if <.netrc> is present, it is assumed that it will |
| 287 | work with your ftp client. Otherwise the script will |
Bram Moolenaar | 69a7cb4 | 2004-06-20 12:51:53 +0000 | [diff] [blame] | 288 | prompt for user-id and pasword. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 289 | |
Bram Moolenaar | 69a7cb4 | 2004-06-20 12:51:53 +0000 | [diff] [blame] | 290 | (*3) for ftp, "machine" may be machine#port or machine:port |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 291 | if a different port is needed than the standard ftp port |
| 292 | |
| 293 | (*4) for http:..., if wget is available it will be used. Otherwise, |
| 294 | if fetch is available it will be used. |
| 295 | |
| 296 | Both the :Nread and the :Nwrite ex-commands can accept multiple filenames. |
| 297 | |
| 298 | |
| 299 | NETRC *netrw-netrc* |
| 300 | |
| 301 | The typical syntax for lines in a <.netrc> file is given as shown below. |
| 302 | Ftp under Unix usually support <.netrc>; Windows' ftp usually doesn't. |
| 303 | > |
| 304 | machine {full machine name} login {user-id} password "{password}" |
| 305 | default login {user-id} password "{password}" |
| 306 | |
| 307 | Your ftp client must handle the use of <.netrc> on its own, but if the |
| 308 | <.netrc> file exists, an ftp transfer will not ask for the user-id or |
| 309 | password. |
| 310 | |
| 311 | Note: |
| 312 | Since this file contains passwords, make very sure nobody else can |
| 313 | read this file! Most programs will refuse to use a .netrc that is |
| 314 | readable for others. Don't forget that the system administrator can |
| 315 | still read the file! |
| 316 | |
| 317 | |
| 318 | PASSWORD *netrw-passwd* |
| 319 | |
| 320 | The script attempts to get passwords for ftp invisibly using |inputsecret()|, |
| 321 | a built-in Vim function. See |netrw-uidpass| for how to change the password |
| 322 | after one has set it. |
| 323 | |
| 324 | Unfortunately there doesn't appear to be a way for netrw to feed a password |
| 325 | to scp. Thus every transfer via scp will require re-entry of the password. |
| 326 | |
| 327 | |
| 328 | ============================================================================== |
| 329 | 3. Activation *netrw-activate* |
| 330 | |
| 331 | Network-oriented file transfers are available by default whenever |
| 332 | |'nocompatible'| mode is enabled. The <netrw.vim> file resides in your |
| 333 | system's vim-plugin directory and is sourced automatically whenever you |
| 334 | bring up vim. |
| 335 | |
| 336 | |
| 337 | ============================================================================== |
| 338 | 4. Transparent File Transfer *netrw-transparent* |
| 339 | |
| 340 | Transparent file transfers occur whenever a regular file read or write |
| 341 | (invoked via an |:autocmd| for |BufReadCmd| or |BufWriteCmd| events) is made. |
| 342 | Thus one may use files across networks as if they were local. > |
| 343 | |
| 344 | vim ftp://[user@]machine/path |
| 345 | ... |
| 346 | :wq |
| 347 | |
| 348 | |
| 349 | ============================================================================== |
| 350 | 5. Ex Commands *netrw-ex* |
| 351 | |
| 352 | The usual read/write commands are supported. There are also a couple of |
| 353 | additional commands available. |
| 354 | |
| 355 | :[range]Nw Write the specified lines to the current |
| 356 | file as specified in b:netrw_lastfile. |
| 357 | |
| 358 | :[range]Nw {netfile} [{netfile}]... |
| 359 | Write the specified lines to the {netfile}. |
| 360 | |
| 361 | :Nread |
| 362 | Read the specified lines into the current |
| 363 | buffer from the file specified in |
| 364 | b:netrw_lastfile. |
| 365 | |
| 366 | :Nread {netfile} {netfile}... |
| 367 | Read the {netfile} after the current line. |
| 368 | |
| 369 | *netrw-uidpass* |
| 370 | :call NetUserPass() |
| 371 | If b:netrw_uid and b:netrw_passwd don't exist, |
| 372 | this function query the user for them. |
| 373 | |
| 374 | :call NetUserPass("userid") |
| 375 | This call will set the b:netrw_uid and, if |
| 376 | the password doesn't exist, will query the user for it. |
| 377 | |
| 378 | :call NetUserPass("userid","passwd") |
| 379 | This call will set both the b:netrw_uid and b:netrw_passwd. |
| 380 | The user-id and password are used by ftp transfers. One may |
| 381 | effectively remove the user-id and password by using "" |
| 382 | strings. |
| 383 | |
| 384 | |
| 385 | ============================================================================== |
Bram Moolenaar | 69a7cb4 | 2004-06-20 12:51:53 +0000 | [diff] [blame] | 386 | 6. Variables and Options *netrw-options* *netrw-var* |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 387 | |
| 388 | The script <netrw.vim> uses several variables which can affect <netrw.vim>'s |
| 389 | behavior. These variables typically may be set in the user's <.vimrc> file: |
Bram Moolenaar | 69a7cb4 | 2004-06-20 12:51:53 +0000 | [diff] [blame] | 390 | > |
| 391 | ------------- |
| 392 | Netrw Options |
| 393 | ------------- |
| 394 | Option Meaning |
| 395 | -------------- ----------------------------------------------- |
| 396 | < |
| 397 | b:netrw_col Holds current cursor position (during NetWrite) |
| 398 | g:netrw_cygwin =1 assume scp under windows is from cygwin |
| 399 | (default/windows) |
| 400 | =0 assume scp under windows accepts windows |
| 401 | style paths (default/else) |
| 402 | g:netrw_ftp =0 use default ftp (uid password) |
| 403 | g:netrw_ftpmode ="binary" (default) |
| 404 | ="ascii" (your choice) |
| 405 | g:netrw_ignorenetrc =1 (default) |
| 406 | if you have a <.netrc> file but you don't |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 407 | want it used, then set this variable. Its |
| 408 | mere existence is enough to cause <.netrc> |
| 409 | to be ignored. |
Bram Moolenaar | 69a7cb4 | 2004-06-20 12:51:53 +0000 | [diff] [blame] | 410 | b:netrw_lastfile Holds latest method/machine/path. |
| 411 | b:netrw_line Holds current line number (during NetWrite) |
| 412 | g:netrw_passwd Holds current password for ftp. |
| 413 | g:netrw_silent =0 transfers done normally |
| 414 | =1 transfers done silently |
| 415 | g:netrw_uid Holds current user-id for ftp. |
| 416 | =1 use alternate ftp (user uid password) |
| 417 | (see |netrw-options|) |
| 418 | g:netrw_use_nt_rcp =0 don't use WinNT/2K/XP's rcp (default) |
| 419 | =1 use WinNT/2K/XP's rcp, binary mode |
| 420 | g:netrw_win95ftp =0 use unix-style ftp even if win95/98/ME/etc |
| 421 | =1 use default method to do ftp > |
| 422 | ----------------------------------------------------------------------- |
| 423 | < |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 424 | The script will also make use of the following variables internally, albeit |
| 425 | temporarily. |
Bram Moolenaar | 69a7cb4 | 2004-06-20 12:51:53 +0000 | [diff] [blame] | 426 | > |
| 427 | ------------------- |
| 428 | Temporary Variables |
| 429 | ------------------- |
| 430 | Variable Meaning |
| 431 | -------- ------------------------------------ |
| 432 | < |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 433 | g:netrw_method Index indicating rcp/ftp+.netrc/ftp |
| 434 | g:netrw_machine Holds machine name parsed from input |
Bram Moolenaar | 69a7cb4 | 2004-06-20 12:51:53 +0000 | [diff] [blame] | 435 | g:netrw_fname Holds filename being accessed > |
| 436 | ------------------------------------------------------------ |
| 437 | < |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 438 | *netrw-protocol* |
Bram Moolenaar | 69a7cb4 | 2004-06-20 12:51:53 +0000 | [diff] [blame] | 439 | |
| 440 | Netrw supports a number of protocols. These protocols are invoked using the |
| 441 | variables listed below, and may be modified by the user. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 442 | > |
| 443 | ------------------------ |
Bram Moolenaar | 69a7cb4 | 2004-06-20 12:51:53 +0000 | [diff] [blame] | 444 | Protocol Control Options |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 445 | ------------------------ |
Bram Moolenaar | 69a7cb4 | 2004-06-20 12:51:53 +0000 | [diff] [blame] | 446 | Option Type Setting Meaning |
| 447 | --------- -------- -------------- --------------------------- |
| 448 | < |
| 449 | netrw_ftp variable =doesn't exist userid set by "user userid" |
| 450 | =0 userid set by "user userid" |
| 451 | =1 userid set by "userid" |
| 452 | NetReadFixup function =doesn't exist no change |
| 453 | =exists Allows user to have files |
| 454 | read via ftp automatically |
| 455 | transformed however they wish |
| 456 | by NetReadFixup() |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 457 | g:netrw_dav_cmd variable ="cadaver" |
| 458 | g:netrw_fetch_cmd variable ="fetch -o" |
| 459 | g:netrw_ftp_cmd variable ="ftp" |
| 460 | g:netrw_http_cmd variable ="fetch -o" else if fetch is executable |
| 461 | g:netrw_http_cmd variable ="wget -O" if wget is executable |
Bram Moolenaar | 69a7cb4 | 2004-06-20 12:51:53 +0000 | [diff] [blame] | 462 | g:netrw_list_cmd variable ="ssh HOSTNAME ls -Fa" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 463 | g:netrw_rcp_cmd variable ="rcp" |
| 464 | g:netrw_rsync_cmd variable ="rsync -a" |
| 465 | g:netrw_scp_cmd variable ="scp -q" |
Bram Moolenaar | 69a7cb4 | 2004-06-20 12:51:53 +0000 | [diff] [blame] | 466 | g:netrw_sftp_cmd variable ="sftp" > |
| 467 | ------------------------------------------------------------------------- |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 468 | < |
Bram Moolenaar | cfbc5ee | 2004-07-02 15:38:35 +0000 | [diff] [blame] | 469 | *netrw-ftp* |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 470 | The first two options both help with certain ftp's that give trouble otherwise. |
| 471 | In order to best understand how to use these options if ftp is giving you |
| 472 | troubles, a bit of discussion follows on how netrw does ftp reads. |
| 473 | |
| 474 | The g:netrw_..._cmd variables specify the external program to use handle |
| 475 | the associated protocol (rcp, ftp, etc), plus any options. |
| 476 | |
Bram Moolenaar | 69a7cb4 | 2004-06-20 12:51:53 +0000 | [diff] [blame] | 477 | The g:netrw_list_cmd's HOSTNAME entry will be changed via substitution with |
| 478 | whatever the current request is for a hostname. |
| 479 | |
| 480 | For ftp, netrw typically builds up lines of one of the following formats in a |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 481 | temporary file: |
| 482 | > |
| 483 | IF g:netrw_ftp !exists or is not 1 IF g:netrw_ftp exists and is 1 |
| 484 | ---------------------------------- ------------------------------ |
Bram Moolenaar | 69a7cb4 | 2004-06-20 12:51:53 +0000 | [diff] [blame] | 485 | < |
| 486 | open machine [port] open machine [port] |
| 487 | user userid password userid password |
| 488 | [g:netrw_ftpmode] password |
| 489 | get filename tempfile [g:netrw_ftpmode] |
| 490 | get filename tempfile > |
| 491 | --------------------------------------------------------------------- |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 492 | < |
| 493 | Netrw then executes the lines above by use of a filter: |
| 494 | > |
| 495 | :%! {g:netrw_ftp_cmd} -i [-n] |
| 496 | < |
| 497 | |
| 498 | where |
| 499 | g:netrw_ftp_cmd is usually "ftp", |
| 500 | -i tells ftp not to be interactive |
| 501 | -n means don't use netrc and is used for Method #3 (ftp w/o <.netrc>) |
| 502 | |
| 503 | If <.netrc> exists it will be used to avoid having to query the user for |
Bram Moolenaar | 69a7cb4 | 2004-06-20 12:51:53 +0000 | [diff] [blame] | 504 | userid and password. The transferred file is put into a temporary file. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 505 | The temporary file is then read into the main editing session window that |
| 506 | requested it and the temporary file deleted. |
| 507 | |
| 508 | If your ftp doesn't accept the "user" command and immediately just demands |
| 509 | a userid, then try putting "let netrw_ftp=1" in your <.vimrc>. |
| 510 | |
Bram Moolenaar | cfbc5ee | 2004-07-02 15:38:35 +0000 | [diff] [blame] | 511 | *netrw-cadaver* |
| 512 | To handle the SSL certificate dialog for untrusted servers, one may pull |
| 513 | down the certificate and place it into /usr/ssl/cert.pem. This operation |
| 514 | renders the server treatment as "trusted". |
| 515 | |
Bram Moolenaar | 83bab71 | 2005-08-01 21:58:57 +0000 | [diff] [blame] | 516 | *netrw-fixup* *netreadfixup* |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 517 | If your ftp for whatever reason generates unwanted lines (such as AUTH |
| 518 | messages) you may write a NetReadFixup(tmpfile) function: |
| 519 | > |
| 520 | function! NetReadFixup(method,line1,line2) |
| 521 | " a:line1: first new line in current file |
| 522 | " a:line2: last new line in current file |
| 523 | if a:method == 1 "rcp |
| 524 | elseif a:method == 2 "ftp + <.netrc> |
| 525 | elseif a:method == 3 "ftp + machine,uid,password,filename |
| 526 | elseif a:method == 4 "scp |
| 527 | elseif a:method == 5 "http/wget |
| 528 | elseif a:method == 6 "dav/cadaver |
| 529 | elseif a:method == 7 "rsync |
| 530 | elseif a:method == 8 "fetch |
| 531 | elseif a:method == 9 "sftp |
Bram Moolenaar | 69a7cb4 | 2004-06-20 12:51:53 +0000 | [diff] [blame] | 532 | else " complain |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 533 | endif |
| 534 | endfunction |
| 535 | > |
| 536 | The NetReadFixup() function will be called if it exists and thus allows |
| 537 | you to customize your reading process. As a further example, <netrw.vim> |
| 538 | contains just such a function to handle Windows 95 ftp. For whatever |
| 539 | reason, Windows 95's ftp dumps four blank lines at the end of a transfer, |
| 540 | and so it is desirable to automate their removal. Here's some code taken |
| 541 | from <netrw.vim> itself: |
| 542 | > |
| 543 | if has("win95") && g:netrw_win95ftp |
Bram Moolenaar | 69a7cb4 | 2004-06-20 12:51:53 +0000 | [diff] [blame] | 544 | fun! NetReadFixup(method, line1, line2) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 545 | if method == 3 " ftp (no <.netrc>) |
Bram Moolenaar | 69a7cb4 | 2004-06-20 12:51:53 +0000 | [diff] [blame] | 546 | let fourblanklines= line2 - 3 |
| 547 | silent fourblanklines.",".line2."g/^\s*/d" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 548 | endif |
| 549 | endfunction |
| 550 | endif |
| 551 | > |
| 552 | |
| 553 | ============================================================================== |
Bram Moolenaar | d4755bb | 2004-09-02 19:12:26 +0000 | [diff] [blame] | 554 | 7. Directory Browser *netrw-browse* *netrw-dir* *netrw-list* *netrw-help* |
Bram Moolenaar | 83bab71 | 2005-08-01 21:58:57 +0000 | [diff] [blame] | 555 | |
| 556 | MAPS *netrw-maps* |
| 557 | ?................Help.......................................|netrw-help| |
| 558 | <cr>.............Browsing...................................|netrw-cr| |
| 559 | <del>............Deleting Files or Directories..............|netrw-delete| |
| 560 | -................Going Up...................................|netrw--| |
| 561 | a................Hiding Files or Directories................|netrw-a| |
| 562 | b................Bookmarking a Directory....................|netrw-b| |
| 563 | B................Changing to a Bookmarked Directory.........|netrw-B| |
| 564 | c................Make Browsing Directory The Current Dir....|netrw-c| |
| 565 | d................Make A New Directory.......................|netrw-d| |
| 566 | D................Deleting Files or Directories..............|netrw-D| |
| 567 | <c-h>............Edit File/Directory Hiding List............|netrw-h| |
| 568 | i................Long Listing...............................|netrw-i| |
| 569 | <c-l>............Refreshing the Listing.....................|netrw-ctrl-l| |
| 570 | o................Browsing with a Horizontal Split...........|netrw-o| |
| 571 | p................Preview Window.............................|netrw-p| |
| 572 | q................Listing Bookmarks and History..............|netrw-q| |
| 573 | r................Reversing Sorting Order....................|netrw-r| |
| 574 | R................Renaming Files or Directories..............|netrw-R| |
| 575 | s................Selecting Sorting Style....................|netrw-s| |
| 576 | S................Editing the Sorting Sequence...............|netrw-S| |
| 577 | u................Changing to a Predecessor Directory........|netrw-u| |
| 578 | U................Changing to a Successor Directory..........|netrw-U| |
| 579 | v................Browsing with a Vertical Split.............|netrw-v| |
| 580 | x................Customizing Browsing.......................|netrw-x| |
| 581 | |
| 582 | COMMANDS *netrw-explore-cmds* |
| 583 | :Explore[!] [dir].Explore directory of current file........|netrw-explore| |
| 584 | :Sexplore[!] [dir].Split & Explore directory of current file|netrw-explore| |
| 585 | :Hexplore[!] [dir].Horizontal Split & Explore...............|netrw-explore| |
| 586 | :Vexplore[!] [dir].Vertical Split & Explore.................|netrw-explore| |
Bram Moolenaar | 269ec65 | 2004-07-29 08:43:53 +0000 | [diff] [blame] | 587 | |
| 588 | QUICK REFERENCE COMMANDS TABLE *netrw-browse-cmds* |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 589 | > |
Bram Moolenaar | 8299df9 | 2004-07-10 09:47:34 +0000 | [diff] [blame] | 590 | ------- ----------- |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 591 | Command Explanation |
| 592 | ------- ----------- |
Bram Moolenaar | c0197e2 | 2004-09-13 20:26:32 +0000 | [diff] [blame] | 593 | < ? Causes Netrw to issue help |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 594 | <cr> Netrw will enter the directory or read the file |
| 595 | <del> Netrw will attempt to remove the file/directory |
Bram Moolenaar | d4755bb | 2004-09-02 19:12:26 +0000 | [diff] [blame] | 596 | d Make a directory |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 597 | D Netrw will attempt to remove the file(s)/directory(ies) |
| 598 | R Netrw will attempt to rename the file(s)/directory(ies) |
| 599 | - Makes Netrw go up one directory |
Bram Moolenaar | c0197e2 | 2004-09-13 20:26:32 +0000 | [diff] [blame] | 600 | a Toggles between normal display, |
| 601 | hiding (suppress display of files matching g:netrw_list_hide) |
| 602 | showing (display only files which match g:netrw_list_hide) |
Bram Moolenaar | d4755bb | 2004-09-02 19:12:26 +0000 | [diff] [blame] | 603 | c Make current browsing directory the current directory |
| 604 | <c-h> Edit file hiding list |
Bram Moolenaar | 8299df9 | 2004-07-10 09:47:34 +0000 | [diff] [blame] | 605 | i Toggles between long and short listing |
Bram Moolenaar | d4755bb | 2004-09-02 19:12:26 +0000 | [diff] [blame] | 606 | <c-l> Causes Netrw to refresh the directory listing |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 607 | o Enter the file/directory under the cursor in a new browser |
| 608 | window. A horizontal split is used. |
Bram Moolenaar | cfbc5ee | 2004-07-02 15:38:35 +0000 | [diff] [blame] | 609 | r Reverse sorting order |
| 610 | s Select sorting style: by name, time, or file size |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 611 | v Enter the file/directory under the cursor in a new browser |
| 612 | window. A vertical split is used. |
| 613 | x Apply a function to a file. |
Bram Moolenaar | c0197e2 | 2004-09-13 20:26:32 +0000 | [diff] [blame] | 614 | |
Bram Moolenaar | 269ec65 | 2004-07-29 08:43:53 +0000 | [diff] [blame] | 615 | NETRW BROWSER VARIABLES *netrw-browse-var* |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 616 | > |
Bram Moolenaar | d4755bb | 2004-09-02 19:12:26 +0000 | [diff] [blame] | 617 | --- ----------- |
| 618 | Var Explanation |
| 619 | --- ----------- |
Bram Moolenaar | c0197e2 | 2004-09-13 20:26:32 +0000 | [diff] [blame] | 620 | < g:netrw_alto change from above splitting to |
| 621 | below splitting by setting this |
| 622 | variable (see |netrw-o|) |
Bram Moolenaar | 83bab71 | 2005-08-01 21:58:57 +0000 | [diff] [blame] | 623 | default: =0 |
| 624 | |
Bram Moolenaar | c0197e2 | 2004-09-13 20:26:32 +0000 | [diff] [blame] | 625 | g:netrw_altv change from left splitting to |
| 626 | right splitting by setting this |
| 627 | variable (see |netrw-v|) |
Bram Moolenaar | 83bab71 | 2005-08-01 21:58:57 +0000 | [diff] [blame] | 628 | default: =0 |
| 629 | |
Bram Moolenaar | d4755bb | 2004-09-02 19:12:26 +0000 | [diff] [blame] | 630 | g:netrw_ftp_browse_reject ftp can produce a number of errors |
| 631 | and warnings that can show up as |
| 632 | "directories" and "files" in the |
| 633 | listing. This pattern is used to |
Bram Moolenaar | 83bab71 | 2005-08-01 21:58:57 +0000 | [diff] [blame] | 634 | remove such embedded messages. By |
| 635 | default its value is: |
| 636 | '^total\s\+\d\+$\| |
| 637 | ^Trying\s\+\d\+.*$\| |
| 638 | ^KERBEROS_V\d rejected\| |
| 639 | ^Security extensions not\| |
| 640 | No such file\| |
| 641 | : connect to address [0-9a-fA-F:]* |
| 642 | : No route to host$' |
| 643 | |
| 644 | g:netrw_ssh_browse_reject ssh can sometimes produce unwanted |
| 645 | lines/messages/banners/and whatnot |
| 646 | that one doesn't want masquerading |
| 647 | as "directories" and "files". Use |
| 648 | this pattern to remove such embedded |
| 649 | messages. By default its value is: |
| 650 | '^total\s\+\d\+$' |
| 651 | |
Bram Moolenaar | 3fdfa4a | 2004-10-07 21:02:47 +0000 | [diff] [blame] | 652 | g:netrw_keepdir =1 (default) keep current directory |
| 653 | immune from the browsing directory. |
| 654 | =0 keep the current directory the |
| 655 | same as the browsing directory. |
| 656 | The browsing directory is contained in |
| 657 | b:netrw_curdir |
Bram Moolenaar | 83bab71 | 2005-08-01 21:58:57 +0000 | [diff] [blame] | 658 | |
Bram Moolenaar | d4755bb | 2004-09-02 19:12:26 +0000 | [diff] [blame] | 659 | g:netrw_list_cmd command for listing remote directories |
Bram Moolenaar | 83bab71 | 2005-08-01 21:58:57 +0000 | [diff] [blame] | 660 | default: (if ssh is executable) |
| 661 | "ssh HOSTNAME ls -FLa" |
| 662 | |
Bram Moolenaar | 3fdfa4a | 2004-10-07 21:02:47 +0000 | [diff] [blame] | 663 | g:netrw_longlist if =1, then long listing will be default |
Bram Moolenaar | 83bab71 | 2005-08-01 21:58:57 +0000 | [diff] [blame] | 664 | |
Bram Moolenaar | c0197e2 | 2004-09-13 20:26:32 +0000 | [diff] [blame] | 665 | g:netrw_ftp_list_cmd options for passing along to ftp for |
| 666 | directory listing. Defaults: |
| 667 | unix or g:netrw_cygwin set: : "ls -lF" |
| 668 | otherwise "dir" |
Bram Moolenaar | 83bab71 | 2005-08-01 21:58:57 +0000 | [diff] [blame] | 669 | |
Bram Moolenaar | d4755bb | 2004-09-02 19:12:26 +0000 | [diff] [blame] | 670 | g:netrw_list_hide comma separated list of patterns for |
| 671 | hiding files |
Bram Moolenaar | 83bab71 | 2005-08-01 21:58:57 +0000 | [diff] [blame] | 672 | default: "" |
| 673 | |
Bram Moolenaar | d4755bb | 2004-09-02 19:12:26 +0000 | [diff] [blame] | 674 | g:netrw_local_mkdir command for making a local directory |
Bram Moolenaar | 83bab71 | 2005-08-01 21:58:57 +0000 | [diff] [blame] | 675 | default: "ssh HOSTNAME mkdir" |
| 676 | |
Bram Moolenaar | d4755bb | 2004-09-02 19:12:26 +0000 | [diff] [blame] | 677 | g:netrw_local_rmdir remove directory command (rmdir) |
Bram Moolenaar | 83bab71 | 2005-08-01 21:58:57 +0000 | [diff] [blame] | 678 | default: "rmdir" |
| 679 | |
Bram Moolenaar | 3fdfa4a | 2004-10-07 21:02:47 +0000 | [diff] [blame] | 680 | g:netrw_maxfilenamelen =32 by default, selected so as to make |
| 681 | long listings fit on 80 column displays. |
| 682 | If your screen is wider, and you have |
| 683 | file/directory names longer than 32 bytes, |
| 684 | you may set this option to keep listings |
| 685 | columnar. |
Bram Moolenaar | 83bab71 | 2005-08-01 21:58:57 +0000 | [diff] [blame] | 686 | |
Bram Moolenaar | d4755bb | 2004-09-02 19:12:26 +0000 | [diff] [blame] | 687 | g:netrw_mkdir_cmd command for making a remote directory |
Bram Moolenaar | 83bab71 | 2005-08-01 21:58:57 +0000 | [diff] [blame] | 688 | default: "ssh HOSTNAME mkdir" |
| 689 | |
Bram Moolenaar | d4755bb | 2004-09-02 19:12:26 +0000 | [diff] [blame] | 690 | g:netrw_rm_cmd command for removing files |
Bram Moolenaar | 83bab71 | 2005-08-01 21:58:57 +0000 | [diff] [blame] | 691 | default: "ssh HOSTNAME rm" |
| 692 | |
Bram Moolenaar | d4755bb | 2004-09-02 19:12:26 +0000 | [diff] [blame] | 693 | g:netrw_rmdir_cmd command for removing directories |
Bram Moolenaar | 83bab71 | 2005-08-01 21:58:57 +0000 | [diff] [blame] | 694 | default: "ssh HOSTNAME rmdir" |
| 695 | |
Bram Moolenaar | d4755bb | 2004-09-02 19:12:26 +0000 | [diff] [blame] | 696 | g:netrw_rmf_cmd command for removing softlinks |
Bram Moolenaar | 83bab71 | 2005-08-01 21:58:57 +0000 | [diff] [blame] | 697 | default: "ssh HOSTNAME rm -f" |
| 698 | |
Bram Moolenaar | d4755bb | 2004-09-02 19:12:26 +0000 | [diff] [blame] | 699 | g:netrw_hide if true, the hiding list is used |
Bram Moolenaar | 83bab71 | 2005-08-01 21:58:57 +0000 | [diff] [blame] | 700 | default: =0 |
| 701 | |
Bram Moolenaar | d4755bb | 2004-09-02 19:12:26 +0000 | [diff] [blame] | 702 | g:netrw_sort_by sort by "name", "time", or "size" |
Bram Moolenaar | 83bab71 | 2005-08-01 21:58:57 +0000 | [diff] [blame] | 703 | default: "name" |
| 704 | |
Bram Moolenaar | d4755bb | 2004-09-02 19:12:26 +0000 | [diff] [blame] | 705 | g:netrw_sort_direction sorting direction: "normal" or "reverse" |
Bram Moolenaar | 83bab71 | 2005-08-01 21:58:57 +0000 | [diff] [blame] | 706 | default: "normal" |
| 707 | |
Bram Moolenaar | d4755bb | 2004-09-02 19:12:26 +0000 | [diff] [blame] | 708 | g:netrw_sort_sequence when sorting by name, first sort by the |
| 709 | comma-separated pattern sequence |
Bram Moolenaar | 83bab71 | 2005-08-01 21:58:57 +0000 | [diff] [blame] | 710 | default: '[\/]$,*,\.bak$,\.o$,\.h$, |
| 711 | \.info$,\.swp$,\.obj$' |
Bram Moolenaar | c0197e2 | 2004-09-13 20:26:32 +0000 | [diff] [blame] | 712 | |
Bram Moolenaar | 83bab71 | 2005-08-01 21:58:57 +0000 | [diff] [blame] | 713 | g:netrw_timefmt specify format string to strftime() (%c) |
| 714 | default: "%c" |
| 715 | |
| 716 | g:netrw_winsize specify initial size of new o/v windows |
| 717 | default: "" |
| 718 | |
| 719 | INTRODUCTION TO DIRECTORY BROWSING *netrw-browse-intro* |
Bram Moolenaar | cfbc5ee | 2004-07-02 15:38:35 +0000 | [diff] [blame] | 720 | |
Bram Moolenaar | d4755bb | 2004-09-02 19:12:26 +0000 | [diff] [blame] | 721 | Netrw supports the browsing of directories on the local system and on remote |
| 722 | hosts, including generating listing directories, entering directories, editing |
| 723 | files therein, deleting files/directories, making new directories, and moving |
| 724 | (renaming) files and directories. The Netrw browser generally implements the |
| 725 | previous explorer maps and commands for remote directories, although details |
| 726 | (such as pertinent global variable names) necessarily differ. |
| 727 | |
| 728 | The Netrw remote file and directory browser handles two protocols: ssh and |
| 729 | ftp. The protocol in the url, if it is ftp, will cause netrw to use ftp |
| 730 | in its remote browsing. Any other protocol will be used for file transfers, |
| 731 | but otherwise the ssh protocol will be used to do remote directory browsing. |
Bram Moolenaar | 69a7cb4 | 2004-06-20 12:51:53 +0000 | [diff] [blame] | 732 | |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 733 | To enter the netrw directory browser, simply attempt to read a "file" with a |
| 734 | trailing slash and it will be interpreted as a request to list a directory: |
Bram Moolenaar | 69a7cb4 | 2004-06-20 12:51:53 +0000 | [diff] [blame] | 735 | |
| 736 | vim [protocol]://[user@]hostname/path/ |
| 737 | |
Bram Moolenaar | d4755bb | 2004-09-02 19:12:26 +0000 | [diff] [blame] | 738 | If you'd like to avoid entering the password in for directory listings, scp, |
| 739 | ssh interaction, etc, see |netrw-list-hack|. |
Bram Moolenaar | cfbc5ee | 2004-07-02 15:38:35 +0000 | [diff] [blame] | 740 | |
Bram Moolenaar | 83bab71 | 2005-08-01 21:58:57 +0000 | [diff] [blame] | 741 | |
| 742 | DIRECTORY EXPLORING COMMANDS *netrw-explore* |
| 743 | |
| 744 | :Explore[!] [dir].Explore directory of current file |
| 745 | :Sexplore[!] [dir].Split & Explore directory of current file |
| 746 | :Hexplore[!] [dir].Horizontal Split & Explore |
| 747 | :Vexplore[!] [dir].Vertical Split & Explore |
| 748 | |
| 749 | The Explore command will open the local-directory browser on the current |
| 750 | file's directory (or on directory [dir] if specified). The window |
| 751 | will be split only if the file has been modified, otherwise the |
| 752 | browsing window will take over that window. Normally the splitting is |
| 753 | taken horizontally; the optional ! will use vertical splitting. |
| 754 | |
| 755 | Sexplore will always split the window before invoking the local-directory |
| 756 | browser. As with Explore, the splitting is normally done horizontally, |
| 757 | but with the optional ! the splitting will be done vertically. |
| 758 | |
| 759 | Hexplore does an Explore with |belowright| horizontal splitting; the |
| 760 | optional ! does the Explore with |aboveleft| horizontal splitting. |
| 761 | |
| 762 | Vexplore does an Explore with |leftabove| vertical splitting; the optiona |
| 763 | ! does an Explore with |topleft| vertical splitting. |
| 764 | |
| 765 | |
Bram Moolenaar | d4755bb | 2004-09-02 19:12:26 +0000 | [diff] [blame] | 766 | REFRESHING THE LISTING *netrw-ctrl-l* |
Bram Moolenaar | cfbc5ee | 2004-07-02 15:38:35 +0000 | [diff] [blame] | 767 | |
Bram Moolenaar | d4755bb | 2004-09-02 19:12:26 +0000 | [diff] [blame] | 768 | To refresh either a local or remote directory listing, press ctrl-l (<c-l>) or |
| 769 | hit the <cr> when atop the ./ directory entry in the listing. One may also |
| 770 | refresh a local directory by using ":e .". |
Bram Moolenaar | cfbc5ee | 2004-07-02 15:38:35 +0000 | [diff] [blame] | 771 | |
| 772 | |
| 773 | GOING UP *netrw--* |
| 774 | |
| 775 | To go up a directory, press - or his the <cr> when atop the ../ directory |
| 776 | entry in the listing. |
| 777 | |
| 778 | Netrw will modify the command in *g:netrw_list_cmd* to perform the directory |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 779 | listing operation. By default the command is: |
Bram Moolenaar | 69a7cb4 | 2004-06-20 12:51:53 +0000 | [diff] [blame] | 780 | |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 781 | ssh HOSTNAME ls -FLa |
Bram Moolenaar | 69a7cb4 | 2004-06-20 12:51:53 +0000 | [diff] [blame] | 782 | |
Bram Moolenaar | d4755bb | 2004-09-02 19:12:26 +0000 | [diff] [blame] | 783 | where the HOSTNAME becomes the [user@]hostname as requested by the attempt to |
| 784 | read. Naturally, the user may override this command with whatever is |
| 785 | preferred. The NetList function which implements remote directory browsing |
| 786 | expects that directories will be flagged by a trailing slash. |
Bram Moolenaar | 69a7cb4 | 2004-06-20 12:51:53 +0000 | [diff] [blame] | 787 | |
Bram Moolenaar | cfbc5ee | 2004-07-02 15:38:35 +0000 | [diff] [blame] | 788 | |
Bram Moolenaar | 8299df9 | 2004-07-10 09:47:34 +0000 | [diff] [blame] | 789 | BROWSING *netrw-cr* |
Bram Moolenaar | cfbc5ee | 2004-07-02 15:38:35 +0000 | [diff] [blame] | 790 | |
Bram Moolenaar | 69a7cb4 | 2004-06-20 12:51:53 +0000 | [diff] [blame] | 791 | Browsing is simple: move the cursor onto a file or directory of interest. |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 792 | Hitting the <cr> (the return key) will select the file or directory. |
| 793 | Directories will themselves be listed, and files will be opened using the |
| 794 | protocol given in the original read request. |
| 795 | |
Bram Moolenaar | 83bab71 | 2005-08-01 21:58:57 +0000 | [diff] [blame] | 796 | |
Bram Moolenaar | 8299df9 | 2004-07-10 09:47:34 +0000 | [diff] [blame] | 797 | LONG VS SHORT LISTING *netrw-i* |
Bram Moolenaar | cfbc5ee | 2004-07-02 15:38:35 +0000 | [diff] [blame] | 798 | |
Bram Moolenaar | 8299df9 | 2004-07-10 09:47:34 +0000 | [diff] [blame] | 799 | The short listing format gives just the files' and directories' names. |
| 800 | The long listing is either based on the "ls" command via ssh for remote |
| 801 | directories or displays the filename, file size (in bytes), and the |
| 802 | time and date of last modification for local directories. |
| 803 | |
| 804 | |
Bram Moolenaar | d4755bb | 2004-09-02 19:12:26 +0000 | [diff] [blame] | 805 | MAKING A NEW DIRECTORY *netrw-d* |
Bram Moolenaar | 8299df9 | 2004-07-10 09:47:34 +0000 | [diff] [blame] | 806 | |
Bram Moolenaar | d4755bb | 2004-09-02 19:12:26 +0000 | [diff] [blame] | 807 | With the "d" map one may make a new directory either remotely (which |
Bram Moolenaar | 8299df9 | 2004-07-10 09:47:34 +0000 | [diff] [blame] | 808 | depends on the global variable g:netrw_mkdir_cmd) or locally (which depends on |
| 809 | the global variable g:netrw_local_mkdir). Netrw will issue a request for the |
| 810 | new directory's name. A bare <CR> at that point will abort the making of the |
| 811 | directory. Attempts to make a local directory that already exists (as either |
| 812 | a file or a directory) will be detected, reported on, and ignored. |
| 813 | |
Bram Moolenaar | 83bab71 | 2005-08-01 21:58:57 +0000 | [diff] [blame] | 814 | |
Bram Moolenaar | 269ec65 | 2004-07-29 08:43:53 +0000 | [diff] [blame] | 815 | DELETING FILES OR DIRECTORIES *netrw-delete* *netrw-D* |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 816 | |
| 817 | Deleting/removing files and directories involves moving the cursor to the |
Bram Moolenaar | cfbc5ee | 2004-07-02 15:38:35 +0000 | [diff] [blame] | 818 | file/directory to be deleted and pressing "D". Directories must be empty first |
| 819 | before they can be successfully removed. If the directory is a softlink to a |
| 820 | directory, then netrw will make two requests to remove the directory before |
| 821 | succeeding. Netrw will ask for confirmation before doing the removal(s). |
| 822 | You may select a range of lines with the "V" command (visual selection), |
| 823 | and then pressing "D". |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 824 | |
Bram Moolenaar | cfbc5ee | 2004-07-02 15:38:35 +0000 | [diff] [blame] | 825 | *g:netrw_rm_cmd* |
| 826 | The g:netrw_rm_cmd, g:netrw_rmf_cmd, and g:netrw_rmdir_cmd variables are used |
| 827 | to control the attempts to remove files and directories. The g:netrw_rm_cmd |
| 828 | is used with files, and its default value is: |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 829 | |
| 830 | g:netrw_rm_cmd: ssh HOSTNAME rm |
| 831 | |
Bram Moolenaar | cfbc5ee | 2004-07-02 15:38:35 +0000 | [diff] [blame] | 832 | *g:netrw_rmdir_cmd* |
| 833 | The g:netrw_rmdir_cmd variable is used to support the removal of directories. |
| 834 | Its default value is: |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 835 | |
| 836 | g:netrw_rmdir_cmd: ssh HOSTNAME rmdir |
| 837 | |
Bram Moolenaar | cfbc5ee | 2004-07-02 15:38:35 +0000 | [diff] [blame] | 838 | *g:netrw_rmf_cmd* |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 839 | If removing a directory fails with g:netrw_rmdir_cmd, netrw then will attempt |
Bram Moolenaar | cfbc5ee | 2004-07-02 15:38:35 +0000 | [diff] [blame] | 840 | to remove it again using the g:netrw_rmf_cmd variable. Its default value is: |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 841 | |
| 842 | g:netrw_rmf_cmd: ssh HOSTNAME rm -f |
| 843 | |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 844 | |
Bram Moolenaar | 8299df9 | 2004-07-10 09:47:34 +0000 | [diff] [blame] | 845 | RENAMING FILES OR DIRECTORIES *netrw-move* *netrw-rename* *netrw-R* |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 846 | |
| 847 | Renaming/moving files and directories involves moving the cursor to the |
| 848 | file/directory to be moved (renamed) and pressing "R". You will then be |
| 849 | queried for where you want the file/directory to be moved. You may select a |
| 850 | range of lines with the "V" command (visual selection), and then pressing "R". |
| 851 | |
Bram Moolenaar | cfbc5ee | 2004-07-02 15:38:35 +0000 | [diff] [blame] | 852 | The g:netrw_rename_cmd variable is used to implement renaming. By default its |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 853 | value is: |
| 854 | |
| 855 | ssh HOSTNAME mv |
| 856 | |
Bram Moolenaar | 269ec65 | 2004-07-29 08:43:53 +0000 | [diff] [blame] | 857 | One may rename a block of files and directories by selecting them with |
| 858 | the V (|linewise-visual|). |
Bram Moolenaar | cfbc5ee | 2004-07-02 15:38:35 +0000 | [diff] [blame] | 859 | |
Bram Moolenaar | d4755bb | 2004-09-02 19:12:26 +0000 | [diff] [blame] | 860 | |
Bram Moolenaar | 83bab71 | 2005-08-01 21:58:57 +0000 | [diff] [blame] | 861 | HIDING FILES OR DIRECTORIES *g:netrw-a* *g:netrw_list_hide* |
Bram Moolenaar | cfbc5ee | 2004-07-02 15:38:35 +0000 | [diff] [blame] | 862 | |
Bram Moolenaar | c0197e2 | 2004-09-13 20:26:32 +0000 | [diff] [blame] | 863 | Netrw's browsing facility allows one to use the hiding list in one of |
| 864 | three ways: ignore it, hide files which match, and show only those files |
Bram Moolenaar | 83bab71 | 2005-08-01 21:58:57 +0000 | [diff] [blame] | 865 | which match. The "a" map allows the user to cycle about these three ways. |
| 866 | |
| 867 | The g:netrw_list_hide variable holds a comma delimited list of patterns |
| 868 | (ex. \.obj) which specify the hiding list. (also see |netrw-h|) To |
| 869 | set the hiding list, use the <c-h> map. As an example, to hide files |
| 870 | which begin with a ".", one may use the <c-h> map to set the hiding |
| 871 | list to '^\..*' (or one may put let g:netrw_list_hide= '^\..*' in |
| 872 | one's <.vimrc>). One may then use the "a" key to show all files, |
| 873 | hide matching files, or to show only the matching files. |
Bram Moolenaar | cfbc5ee | 2004-07-02 15:38:35 +0000 | [diff] [blame] | 874 | |
| 875 | |
Bram Moolenaar | 83bab71 | 2005-08-01 21:58:57 +0000 | [diff] [blame] | 876 | EDIT FILE OR DIRECTORY HIDING LIST *netrw-h* *netrw-edithide* |
Bram Moolenaar | cfbc5ee | 2004-07-02 15:38:35 +0000 | [diff] [blame] | 877 | |
Bram Moolenaar | d4755bb | 2004-09-02 19:12:26 +0000 | [diff] [blame] | 878 | The "<ctrl-h>" map brings up a requestor allowing the user to change the |
Bram Moolenaar | 269ec65 | 2004-07-29 08:43:53 +0000 | [diff] [blame] | 879 | file/directory hiding list. The hiding list consists of one or more patterns |
| 880 | delimited by commas. Files and/or directories satisfying these patterns will |
Bram Moolenaar | 293ee4d | 2004-12-09 21:34:53 +0000 | [diff] [blame] | 881 | either be hidden (ie. not shown) or be the only ones displayed (see |netrw-a|). |
Bram Moolenaar | cfbc5ee | 2004-07-02 15:38:35 +0000 | [diff] [blame] | 882 | |
| 883 | |
Bram Moolenaar | 83bab71 | 2005-08-01 21:58:57 +0000 | [diff] [blame] | 884 | BROWSING WITH A HORIZONTALLY SPLIT WINDOW *netrw-o* *netrw-horiz* |
Bram Moolenaar | cfbc5ee | 2004-07-02 15:38:35 +0000 | [diff] [blame] | 885 | |
Bram Moolenaar | 269ec65 | 2004-07-29 08:43:53 +0000 | [diff] [blame] | 886 | Normally one enters a file or directory using the <cr>. However, the "o" map |
| 887 | allows one to open a new window to hold the new directory listing or file. A |
Bram Moolenaar | c0197e2 | 2004-09-13 20:26:32 +0000 | [diff] [blame] | 888 | horizontal split is used. (for vertical splitting, see |netrw-v|) |
| 889 | |
| 890 | Normally, the o key splits the window horizontally with the new window |
| 891 | and cursor at the top. To change to splitting the window horizontally |
| 892 | with the new window and cursor at the bottom, have |
| 893 | |
| 894 | let g:netrw_alto = 1 |
| 895 | |
| 896 | in your <.vimrc>. |
| 897 | |
Bram Moolenaar | 83bab71 | 2005-08-01 21:58:57 +0000 | [diff] [blame] | 898 | |
| 899 | PREVIEW WINDOW *netrw-p* *netrw-preview* |
Bram Moolenaar | c0197e2 | 2004-09-13 20:26:32 +0000 | [diff] [blame] | 900 | |
| 901 | One may use a preview window (currently only for local browsing) by using |
| 902 | the "p" key when the cursor is atop the desired filename to be previewed. |
Bram Moolenaar | cfbc5ee | 2004-07-02 15:38:35 +0000 | [diff] [blame] | 903 | |
| 904 | |
Bram Moolenaar | 83bab71 | 2005-08-01 21:58:57 +0000 | [diff] [blame] | 905 | SELECTING SORTING STYLE *netrw-s* *netrw-sort* |
Bram Moolenaar | cfbc5ee | 2004-07-02 15:38:35 +0000 | [diff] [blame] | 906 | |
| 907 | One may select the sorting style by name, time, or (file) size. The |
| 908 | "s" map allows one to circulate among the three choices; the directory |
| 909 | listing will automatically be refreshed to reflect the selected style. |
| 910 | |
| 911 | |
Bram Moolenaar | 83bab71 | 2005-08-01 21:58:57 +0000 | [diff] [blame] | 912 | EDITING THE SORTING SEQUENCE *netrw-S* *netrw-sortsequence* |
Bram Moolenaar | d4755bb | 2004-09-02 19:12:26 +0000 | [diff] [blame] | 913 | |
| 914 | When "Sorted by" is name, one may specify priority via the sorting |
| 915 | sequence (g:netrw_sort_sequence). The sorting sequence typically |
| 916 | prioritizes the name-listing by suffix, although any pattern will do. |
| 917 | Patterns are delimited by commas. The default sorting sequence is: |
| 918 | > |
| 919 | /$,*,\.bak$,\.o$,\.h$,\.info$,\.swp$,\.obj$ |
| 920 | < |
| 921 | The lone * is where all filenames not covered by one of the other |
| 922 | patterns will end up. One may change the sorting sequence by modifying |
| 923 | the g:netrw_sort_sequence variable (either manually or in your <.vimrc>) |
| 924 | or by using the "S" map. |
| 925 | |
| 926 | |
Bram Moolenaar | 83bab71 | 2005-08-01 21:58:57 +0000 | [diff] [blame] | 927 | REVERSING SORTING ORDER *netrw-r* *netrw-reverse* |
Bram Moolenaar | cfbc5ee | 2004-07-02 15:38:35 +0000 | [diff] [blame] | 928 | |
| 929 | One may toggle between normal and reverse sorting order by pressing the |
| 930 | "r" key. |
| 931 | |
| 932 | |
Bram Moolenaar | 83bab71 | 2005-08-01 21:58:57 +0000 | [diff] [blame] | 933 | CHANGING TO A PREDECESSOR DIRECTORY *netrw-u* *netrw-updir* |
Bram Moolenaar | 293ee4d | 2004-12-09 21:34:53 +0000 | [diff] [blame] | 934 | |
| 935 | Every time you change to a new directory (new for the current session), |
| 936 | netrw will save the directory in a recently-visited directory history |
| 937 | list (unless g:netrw_dirhistmax is zero; by default, its ten). With the |
| 938 | "u" map, one can change to an earlier directory (predecessor). To do |
| 939 | the opposite, see |netrw-U|. |
| 940 | |
| 941 | |
Bram Moolenaar | 83bab71 | 2005-08-01 21:58:57 +0000 | [diff] [blame] | 942 | CHANGING TO A SUCCESSOR DIRECTORY *netrw-U* *netrw-downdir* |
Bram Moolenaar | 293ee4d | 2004-12-09 21:34:53 +0000 | [diff] [blame] | 943 | |
| 944 | With the "U" map, one can change to a later directory (successor). |
| 945 | This map is the opposite of the "u" map. (see |netrw-u|) Use the |
| 946 | q map to list both the bookmarks and history. (see |netrw-q|) |
| 947 | |
| 948 | |
Bram Moolenaar | cfbc5ee | 2004-07-02 15:38:35 +0000 | [diff] [blame] | 949 | BROWSING WITH A VERTICALLY SPLIT WINDOW *netrw-v* |
| 950 | |
| 951 | Normally one enters a file or directory using the <cr>. However, the "v" |
| 952 | map allows one to open a new window to hold the new directory listing or |
Bram Moolenaar | c0197e2 | 2004-09-13 20:26:32 +0000 | [diff] [blame] | 953 | file. A vertical split is used. (for horizontal splitting, see |netrw-o|) |
| 954 | |
| 955 | Normally, the v key splits the window vertically with the new window |
| 956 | and cursor at the left. To change to splitting the window vertically |
| 957 | with the new window and cursor at the right, have |
| 958 | |
| 959 | let g:netrw_altv = 1 |
| 960 | |
| 961 | in your <.vimrc>. |
Bram Moolenaar | cfbc5ee | 2004-07-02 15:38:35 +0000 | [diff] [blame] | 962 | |
| 963 | |
Bram Moolenaar | 83bab71 | 2005-08-01 21:58:57 +0000 | [diff] [blame] | 964 | CUSTOMIZING BROWSING WITH A USER FUNCTION *netrw-x* *netrw-handler* |
Bram Moolenaar | cfbc5ee | 2004-07-02 15:38:35 +0000 | [diff] [blame] | 965 | |
| 966 | One may "enter" a file with a special handler, thereby firing up a browser or |
| 967 | other application, for example, on a file by hitting the "x" key. Presumably |
| 968 | one could write handlers that would start OpenOffice programs (oowriter), etc, |
| 969 | based on the file's extension coupled with the user's hitting the "x" key atop |
| 970 | the file. |
| 971 | |
| 972 | The Netrw executor applies a user-defined function to a file, based on its |
| 973 | extension. Of course, the handler function must exist for it to be called! |
| 974 | > |
| 975 | Ex. mypgm.html x -> |
| 976 | NetrwFileHandler_html("scp://user@host/some/path/mypgm.html") |
| 977 | < |
| 978 | See the <plugin/NetrwFileHandlers.vim> for an example of how to handle an html |
| 979 | file with mozilla. |
| 980 | |
| 981 | |
Bram Moolenaar | 3fdfa4a | 2004-10-07 21:02:47 +0000 | [diff] [blame] | 982 | MAKING THE BROWSING DIRECTORY THE CURRENT DIRECTORY *netrw-c* *netrw-curdir* |
Bram Moolenaar | d4755bb | 2004-09-02 19:12:26 +0000 | [diff] [blame] | 983 | |
Bram Moolenaar | 3fdfa4a | 2004-10-07 21:02:47 +0000 | [diff] [blame] | 984 | By default, g:netrw_keepdir is 1. This setting means that the current |
| 985 | directory will not track the browsing directory. However, setting |
| 986 | g:netrw_keepdir to 0 (say, in your <.vimrc>) will tell netrw to have the |
| 987 | currently browsed directory be the current directory. |
| 988 | |
| 989 | With the default setting for g:netrw_keepdir, in order to make the two |
| 990 | directories the same, use the "c" map (just type c). That map will set |
| 991 | the current directory to the current browsing directory. |
Bram Moolenaar | d4755bb | 2004-09-02 19:12:26 +0000 | [diff] [blame] | 992 | |
| 993 | |
Bram Moolenaar | 3fdfa4a | 2004-10-07 21:02:47 +0000 | [diff] [blame] | 994 | BOOKMARKING A DIRECTORY *netrw-b* *netrw-bookmark* *netrw-bookmarks* |
Bram Moolenaar | d4755bb | 2004-09-02 19:12:26 +0000 | [diff] [blame] | 995 | |
| 996 | One may easily "bookmark" a directory by using |
| 997 | |
| 998 | {cnt}b |
| 999 | |
Bram Moolenaar | 3fdfa4a | 2004-10-07 21:02:47 +0000 | [diff] [blame] | 1000 | Any count may be used. One may use viminfo's "!" option to retain bookmarks |
Bram Moolenaar | 293ee4d | 2004-12-09 21:34:53 +0000 | [diff] [blame] | 1001 | between vim sessions. See |netrw-B| for how to return to a bookmark and |
| 1002 | |netrw-q| for how to list them. |
Bram Moolenaar | d4755bb | 2004-09-02 19:12:26 +0000 | [diff] [blame] | 1003 | |
| 1004 | |
| 1005 | CHANGING TO A BOOKMARKED DIRECTORY *netrw-B* |
| 1006 | |
| 1007 | To change directory back to a bookmarked directory, use |
| 1008 | |
| 1009 | {cnt}B |
| 1010 | |
Bram Moolenaar | 293ee4d | 2004-12-09 21:34:53 +0000 | [diff] [blame] | 1011 | Any count may be used to reference any of the bookmarks. See |netrw-b| |
| 1012 | for how to bookmark a directory and |netrw-q| for how to list them. |
Bram Moolenaar | d4755bb | 2004-09-02 19:12:26 +0000 | [diff] [blame] | 1013 | |
| 1014 | |
Bram Moolenaar | 83bab71 | 2005-08-01 21:58:57 +0000 | [diff] [blame] | 1015 | LISTING BOOKMARKS AND HISTORY *netrw-q* *netrw-listbookmark* |
Bram Moolenaar | d4755bb | 2004-09-02 19:12:26 +0000 | [diff] [blame] | 1016 | |
Bram Moolenaar | 293ee4d | 2004-12-09 21:34:53 +0000 | [diff] [blame] | 1017 | Pressing "q" will list the bookmarked directories and directory traversal |
| 1018 | history (query). (see |netrw-b|, |netrw-B|, |netrw-u|, and |netrw-U|) |
Bram Moolenaar | d4755bb | 2004-09-02 19:12:26 +0000 | [diff] [blame] | 1019 | |
| 1020 | |
Bram Moolenaar | 83bab71 | 2005-08-01 21:58:57 +0000 | [diff] [blame] | 1021 | IMPROVING DIRECTORY BROWSING *netrw-listhack* |
Bram Moolenaar | cfbc5ee | 2004-07-02 15:38:35 +0000 | [diff] [blame] | 1022 | |
| 1023 | Especially with the remote directory browser, constantly entering the password |
| 1024 | is tedious. |
| 1025 | |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 1026 | For Linux/Unix systems, I suggest looking into |
| 1027 | |
| 1028 | http://hacks.oreilly.com/pub/h/66 |
| 1029 | |
| 1030 | It gives a tip for setting up password-less use of ssh and scp, and discusses |
| 1031 | the associated security issues. |
Bram Moolenaar | 69a7cb4 | 2004-06-20 12:51:53 +0000 | [diff] [blame] | 1032 | |
| 1033 | |
| 1034 | ============================================================================== |
Bram Moolenaar | c0197e2 | 2004-09-13 20:26:32 +0000 | [diff] [blame] | 1035 | 8. Problems and Fixes *netrw-problems* |
| 1036 | |
| 1037 | (This section is likely to grow as I get feedback) |
| 1038 | (also see |netrw-debug|) |
| 1039 | |
| 1040 | P1. I use windows 95, and my ftp dumps four blank lines at the |
| 1041 | end of every read. |
| 1042 | |
| 1043 | See |netrw-fixup|, and put the following into your |
| 1044 | <.vimrc> file: |
| 1045 | |
| 1046 | let g:netrw_win95ftp= 1 |
| 1047 | |
| 1048 | |
| 1049 | |
| 1050 | P2. I use windows, and my network browsing with ftp doesn't sort by |
| 1051 | time or size |
| 1052 | |
| 1053 | Windows' ftp has a minimal support for ls (ie. it doesn't |
| 1054 | accept sorting options). It doesn't support the -F which |
| 1055 | gives an explanatory character (ABC/ for "ABC is a directory"). |
| 1056 | Netrw uses dir to get its short and long listings. If you |
| 1057 | think your ftp does support a full-up ls, put the following |
| 1058 | into your <.vimrc>: |
| 1059 | |
| 1060 | let g:netrw_ftp_list_cmd= "ls -lF" |
| 1061 | |
| 1062 | Alternatively, if you have cygwin on your Windows box, put |
| 1063 | into your <.vimrc>: |
| 1064 | |
| 1065 | let g:netrw_cygwin= 1 |
| 1066 | |
| 1067 | P3. I tried rcp://user@host/ (or protocol other than ftp) and netrw |
| 1068 | used ssh! That wasn't what I asked for... |
| 1069 | |
| 1070 | Netrw has two methods for browsing remote directories: ssh |
| 1071 | and ftp. Unless you specify ftp specifically, ssh is used. |
| 1072 | When it comes time to do download a file (not just a directory |
| 1073 | listing), netrw will use the given protocol to do so. |
| 1074 | |
| 1075 | P4. I would like long listings to be the default. |
| 1076 | |
Bram Moolenaar | 3fdfa4a | 2004-10-07 21:02:47 +0000 | [diff] [blame] | 1077 | let g:netrw_longlist=1 |
| 1078 | |
| 1079 | Check out |netrw-browse-var| for more customizations that |
| 1080 | you can set. |
Bram Moolenaar | c0197e2 | 2004-09-13 20:26:32 +0000 | [diff] [blame] | 1081 | |
| 1082 | P5. My times come up oddly in local browsing |
| 1083 | |
| 1084 | Does your system's strftime() accept the "%c" to yield dates |
| 1085 | such as "Sun Apr 27 11:49:23 1997"? If not, do a "man strftime" |
| 1086 | and find out what option should be used. Then put it into |
| 1087 | your <.vimrc>: |
| 1088 | let g:netrw_timefmt= "%X" (where X is the option) |
| 1089 | |
Bram Moolenaar | 3fdfa4a | 2004-10-07 21:02:47 +0000 | [diff] [blame] | 1090 | P6. I want my current directory to track my browsing. |
| 1091 | How do I do that? |
Bram Moolenaar | c0197e2 | 2004-09-13 20:26:32 +0000 | [diff] [blame] | 1092 | |
Bram Moolenaar | 3fdfa4a | 2004-10-07 21:02:47 +0000 | [diff] [blame] | 1093 | let g:netrw_keepdir= 0 |
Bram Moolenaar | c0197e2 | 2004-09-13 20:26:32 +0000 | [diff] [blame] | 1094 | |
| 1095 | |
| 1096 | ============================================================================== |
| 1097 | 9. Debugging *netrw-debug* |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1098 | |
| 1099 | The <netrw.vim> script is typically available as: |
| 1100 | |
| 1101 | /usr/local/share/vim/vim6x/plugin/netrw.vim |
| 1102 | |
| 1103 | which is loaded automatically at startup (assuming :set nocp). |
| 1104 | |
| 1105 | 1. Get the <Decho.vim> script, available as: |
| 1106 | |
| 1107 | http://mysite.verizon.net/astronaut/vim/index.html#vimlinks_scripts |
| 1108 | as "Decho, a vimL debugging aid" |
| 1109 | or |
| 1110 | http://vim.sourceforge.net/scripts/script.php?script_id=120 |
| 1111 | |
Bram Moolenaar | d4755bb | 2004-09-02 19:12:26 +0000 | [diff] [blame] | 1112 | and put it into your local plugin directory. |
| 1113 | |
| 1114 | 2. <Decho.vim> itself needs the <cecutil.vim> script, so you'll need |
| 1115 | to put it into your .vim/plugin, too. You may obtain it from: |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1116 | |
Bram Moolenaar | d4755bb | 2004-09-02 19:12:26 +0000 | [diff] [blame] | 1117 | http://mysite.verizon.net/astronaut/vim/index.html#VimFuncs |
| 1118 | as "DrC's Utilities" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1119 | |
Bram Moolenaar | d4755bb | 2004-09-02 19:12:26 +0000 | [diff] [blame] | 1120 | 3. Edit the <netrw.vim> file by typing: |
| 1121 | |
| 1122 | vim netrw.vim |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1123 | :DechoOn |
Bram Moolenaar | d4755bb | 2004-09-02 19:12:26 +0000 | [diff] [blame] | 1124 | :wq |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1125 | |
Bram Moolenaar | d4755bb | 2004-09-02 19:12:26 +0000 | [diff] [blame] | 1126 | To restore to normal non-debugging behavior, edit <netrw.vim> |
| 1127 | by typing |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1128 | |
Bram Moolenaar | d4755bb | 2004-09-02 19:12:26 +0000 | [diff] [blame] | 1129 | vim netrw.vim |
| 1130 | :DechoOff |
| 1131 | :wq |
| 1132 | |
| 1133 | This command, provided by <Decho.vim>, will comment out all |
| 1134 | Decho-debugging statements (Dfunc(), Dret(), Decho(), Dredir()). |
| 1135 | |
| 1136 | 4. Then bring up vim and attempt a transfer. A set of messages |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1137 | should appear concerning the steps that <netrw.vim> took in |
| 1138 | attempting to read/write your file over the network. Please |
| 1139 | send that information to <netrw.vim>'s maintainer, |
| 1140 | |
Bram Moolenaar | 293ee4d | 2004-12-09 21:34:53 +0000 | [diff] [blame] | 1141 | NdrOchip at ScampbellPfamily.AbizM - NOSPAM |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1142 | |
| 1143 | ============================================================================== |
Bram Moolenaar | c0197e2 | 2004-09-13 20:26:32 +0000 | [diff] [blame] | 1144 | 10. History *netrw-history* |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1145 | |
Bram Moolenaar | 1d94f9b | 2005-08-04 21:29:45 +0000 | [diff] [blame^] | 1146 | v57: * Explore and relatives can now handle RO files |
| 1147 | * reverse sort restored with vim7's sort command |
| 1148 | * g:netrw_keepdir now being used to keep the current directory |
| 1149 | unchanged as intended (sense change) |
| 1150 | * vim 6.3 still supported |
Bram Moolenaar | 83bab71 | 2005-08-01 21:58:57 +0000 | [diff] [blame] | 1151 | v56: * LocalBrowse now saves autochdir setting, unsets it, and |
| 1152 | restores it before returning. |
| 1153 | * using vim's rename() instead of system + local_rename variable |
Bram Moolenaar | 1d94f9b | 2005-08-04 21:29:45 +0000 | [diff] [blame^] | 1154 | * avoids changing directory when g:netrw_keepdir is false |
Bram Moolenaar | 83bab71 | 2005-08-01 21:58:57 +0000 | [diff] [blame] | 1155 | v55: * -bar used with :Explore :Sexplore etc to allow multiple |
| 1156 | commands to be separated by |s |
| 1157 | * browser listings now use the "nowrap" option |
| 1158 | * browser: some unuseful error messages now suppressed |
| 1159 | v54: * For backwards compatibility, Explore and Sexplore have been |
| 1160 | implemented. In addition, Hexplore and Vexplore commands |
| 1161 | are available, too. |
| 1162 | * <amatch> used instead of <afile> in the transparency |
| 1163 | support (BufReadCmd, FileReadCmd, FileWriteCmd) |
| 1164 | * ***netrw*** prepended to various error messages netrw may emit |
| 1165 | * g:netrw_port used instead of b:netrw_port for scp |
| 1166 | * any leading [:#] is removed from port numbers |
| 1167 | v53: * backslashes as well as slashes placed in various patterns |
| 1168 | (ex. g:netrw_sort_sequence) to better support Windows |
Bram Moolenaar | 293ee4d | 2004-12-09 21:34:53 +0000 | [diff] [blame] | 1169 | v52: * nonumber'ing now set for browsing buffers |
| 1170 | * when the hiding list hid all files, error messages ensued. Fixed |
| 1171 | * when browsing, swf is set, but directory is not set, when netrw |
| 1172 | was attempting to restore options, vim wanted to save a swapfile |
| 1173 | to a local directory using an url-style path. Fixed |
| 1174 | v51: * cygwin detection now automated (using windows and &shell is bash) |
| 1175 | * customizable browser "file" rejection patterns |
| 1176 | * directory history |
| 1177 | * :[range]w url now supported (ie. netrw has a FileWriteCmd event) |
| 1178 | * error messages have a "Press <cr> to continue" to allow them |
| 1179 | to be seen |
| 1180 | * directory browser displays no longer bother the swapfile |
| 1181 | * u/U commands to go up and down the history stack |
| 1182 | * history stack may be saved with viminfo with its "!" option |
| 1183 | * bugfixes associated with unwanted [No Files] entries |
Bram Moolenaar | 3fdfa4a | 2004-10-07 21:02:47 +0000 | [diff] [blame] | 1184 | v50: * directories now displayed using buftype=nofile; should keep the |
| 1185 | directory names as-is |
| 1186 | * attempts to remove empty "[No File]" buffers leftover |
| 1187 | from :file ..name.. commands |
| 1188 | * bugfix: a "caps-lock" editing difficulty left in v49 was fixed |
| 1189 | * syntax highlighting for "Showing:" the hiding list included |
| 1190 | * bookmarks can now be retained if "!" is in the viminfo option |
Bram Moolenaar | 293ee4d | 2004-12-09 21:34:53 +0000 | [diff] [blame] | 1191 | v49: * will use ftp for http://.../ browsing v48: |
| 1192 | * One may use ftp to do remote host file browsing |
Bram Moolenaar | c0197e2 | 2004-09-13 20:26:32 +0000 | [diff] [blame] | 1193 | * (windows and !cygwin) remote browsing with ftp can now use |
| 1194 | the "dir" command internally to provide listings |
| 1195 | * g:netrw_keepdir now allows one to keep the initial current |
Bram Moolenaar | 3fdfa4a | 2004-10-07 21:02:47 +0000 | [diff] [blame] | 1196 | directory as the current directory (normally the local file |
| 1197 | browser makes the currently viewed directory the current |
| 1198 | directory) |
Bram Moolenaar | c0197e2 | 2004-09-13 20:26:32 +0000 | [diff] [blame] | 1199 | * g:netrw_alto and g:netrw_altv now support alternate placement |
| 1200 | of windows started with o or v |
| 1201 | * Nread ? and Nwrite ? now uses echomsg (instead of echo) so |
| 1202 | :messages can repeat showing the help |
| 1203 | * bugfix: avoids problems with partial matches of directory names |
| 1204 | to prior buffers with longer names |
Bram Moolenaar | 3fdfa4a | 2004-10-07 21:02:47 +0000 | [diff] [blame] | 1205 | * one can suppress error messages with g:netrw_quiet ctrl-h used |
| 1206 | * instead of <Leader>h for editing hiding list one may edit the |
| 1207 | * sorting sequence with the S map now allows confirmation of |
| 1208 | * deletion with [y(es) n(o) a(ll) q(uit)] the "x" map now handles |
| 1209 | * special file viewing with: |
| 1210 | (windows) rundll32 url.dll (gnome) gnome-open (kde) |
| 1211 | kfmclient If none of these are on the executable path, then |
Bram Moolenaar | c0197e2 | 2004-09-13 20:26:32 +0000 | [diff] [blame] | 1212 | NetrwFileHandlers.vim is used. |
| 1213 | * directory bookmarking during both local and remote browsing |
| 1214 | implemented |
| 1215 | * one may view all, use the hiding list to suppress, or use the |
Bram Moolenaar | 3fdfa4a | 2004-10-07 21:02:47 +0000 | [diff] [blame] | 1216 | hiding list to show-only remote and local file/directory |
| 1217 | listings |
| 1218 | * improved unusual file and directory name handling preview |
| 1219 | * window support |
Bram Moolenaar | 293ee4d | 2004-12-09 21:34:53 +0000 | [diff] [blame] | 1220 | v47: * now handles local directory browsing. |
| 1221 | v46: * now handles remote directory browsing |
| 1222 | * g:netrw_silent (if 1) will cause all transfers to be silent |
Bram Moolenaar | 3fdfa4a | 2004-10-07 21:02:47 +0000 | [diff] [blame] | 1223 | v45: * made the [user@]hostname:path form a bit more restrictive to |
| 1224 | better handle errors in using protocols (e.g. scp:usr@host:file |
| 1225 | was being recognized as an rcp request) v44: * changed from |
| 1226 | "rsync -a" to just "rsync" |
Bram Moolenaar | 69a7cb4 | 2004-06-20 12:51:53 +0000 | [diff] [blame] | 1227 | * somehow an editing error messed up the test to recognize |
| 1228 | use of the fetch method for NetRead. |
| 1229 | * more debugging statements included |
Bram Moolenaar | 3fdfa4a | 2004-10-07 21:02:47 +0000 | [diff] [blame] | 1230 | v43: * moved "Explanation" comments to <pi_netrw.txt> help file as |
| 1231 | "Network Reference" (|netrw-ref|) |
Bram Moolenaar | 69a7cb4 | 2004-06-20 12:51:53 +0000 | [diff] [blame] | 1232 | * <netrw.vim> now uses Dfunc() Decho() and Dret() for debugging |
| 1233 | * removed superfluous NetRestorePosn() calls |
Bram Moolenaar | 3fdfa4a | 2004-10-07 21:02:47 +0000 | [diff] [blame] | 1234 | v42: * now does BufReadPre and BufReadPost events on file:///* and |
| 1235 | file://localhost/* v41: * installed file:///* and |
| 1236 | file://localhost/* handling v40: * prevents redraw when a |
| 1237 | protocol error occurs so that the user may see it v39: * sftp |
| 1238 | support v38: * Now uses NetRestorePosn() calls with |
| 1239 | Nread/Nwrite commands |
Bram Moolenaar | 69a7cb4 | 2004-06-20 12:51:53 +0000 | [diff] [blame] | 1240 | * Temporary files now removed via bwipe! instead of bwipe |
Bram Moolenaar | 3fdfa4a | 2004-10-07 21:02:47 +0000 | [diff] [blame] | 1241 | (thanks to Dave Roberts) v37: * Claar's modifications which |
| 1242 | test if ftp is successful, otherwise give an error message |
Bram Moolenaar | 69a7cb4 | 2004-06-20 12:51:53 +0000 | [diff] [blame] | 1243 | * After a read, the alternate file was pointing to the temp file. |
| 1244 | The temp file buffer is now wiped out. |
| 1245 | * removed silent from transfer methods so user can see what's |
| 1246 | happening |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1247 | |
| 1248 | |
| 1249 | ============================================================================== |
Bram Moolenaar | c0197e2 | 2004-09-13 20:26:32 +0000 | [diff] [blame] | 1250 | 11. Credits *netrw-credits* |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1251 | |
| 1252 | Vim editor by Bram Moolenaar (Thanks, Bram!) |
| 1253 | dav support by C Campbell |
| 1254 | fetch support by Bram Moolenaar and C Campbell |
| 1255 | ftp support by C Campbell <NdrOchip@ScampbellPfamily.AbizM> - NOSPAM |
| 1256 | http support by Bram Moolenaar <bram@moolenaar.net> |
| 1257 | rcp |
| 1258 | rsync support by C Campbell (suggested by Erik Warendorph) |
| 1259 | scp support by raf <raf@comdyn.com.au> |
| 1260 | sftp support by C Campbell |
| 1261 | |
| 1262 | inputsecret(), BufReadCmd, BufWriteCmd contributed by C Campbell |
| 1263 | |
| 1264 | Jérôme Augé -- also using new buffer method with ftp+.netrc |
| 1265 | Bram Moolenaar -- obviously vim itself, :e and v:cmdarg use, fetch,... |
| 1266 | Yasuhiro Matsumoto -- pointing out undo+0r problem and a solution |
| 1267 | Erik Warendorph -- for several suggestions (g:netrw_..._cmd |
| 1268 | variables, rsync etc) |
| 1269 | Doug Claar -- modifications to test for success with ftp operation |
| 1270 | |
| 1271 | ============================================================================== |
Bram Moolenaar | 83bab71 | 2005-08-01 21:58:57 +0000 | [diff] [blame] | 1272 | vim:tw=78:ts=8:ft=help:norl:fdm=marker |