Update runtime files
[MacVim.git] / runtime / doc / pi_zip.txt
blob6e6198477e6811c5a46090e1e5a8058695283986
1 *pi_zip.txt*    For Vim version 7.1.  Last change: 2008 Jun 12
3                                 +====================+
4                                 | Zip File Interface |
5                                 +====================+
7 Author:  Charles E. Campbell, Jr.  <NdrOchip@ScampbellPfamily.AbizM>
8           (remove NOSPAM from Campbell's email first)
9 Copyright: Copyright (C) 2005-2008 Charles E Campbell, Jr *zip-copyright*
10            Permission is hereby granted to use and distribute this code,
11            with or without modifications, provided that this copyright
12            notice is copied with it. Like anything else that's free,
13            zip.vim, zipPlugin.vim, and pi_zip.txt are provided *as is*
14            and it comes with no warranty of any kind, either expressed or
15            implied. By using this plugin, you agree that in no event will
16            the copyright holder be liable for any damages resulting from
17            the use of this software.
19 ==============================================================================
20 1. Contents                                     *zip* *zip-contents*
21    1. Contents................................................|zip-contents|
22    2. Usage...................................................|zip-usage|
23    3. Additional Extensions...................................|zip-extension|
24    4. History.................................................|zip-history|
26 ==============================================================================
27 2. Usage                                        *zip-usage* *zip-manual*
29    When one edits a *.zip file, this plugin will handle displaying a
30    contents page.  Select a file to edit by moving the cursor atop
31    the desired file, then hit the <return> key.  After editing, one may
32    also write to the file.  Currently, one may not make a new file in
33    zip archives via the plugin.
35    OPTIONS
37                                                         *g:zip_nomax*
39    If this variable exists and is true, the file window will not be
40    automatically maximized when opened.
42                                                         *g:zip_shq*
43    Different operating systems may use one or more shells to execute
44    commands.  Zip will try to guess the correct quoting mechanism to
45    allow spaces and whatnot in filenames; however, if it is incorrectly
46    guessing the quote to use for your setup, you may use >
47         g:zip_shq
48 <  which by default is a single quote under Unix (') and a double quote
49    under Windows (").  If you'd rather have no quotes, simply set
50    g:zip_shq to the empty string (let g:zip_shq= "") in your <.vimrc>.
52                                                         *g:zip_unzipcmd*
53    Use this option to specify the program which does the duty of "unzip".
54    It's used during browsing. By default: >
55         let g:zip_unzipcmd= "unzip"
57                                                         *g:zip_zipcmd*
58    Use this option to specify the program which does the duty of "zip".
59    It's used during the writing (updating) of a file already in a zip
60    file; by default: >
61         let g:zip_zipcmd= "zip"
64 ==============================================================================
65 3. Additional Extensions                                        *zip-extension*
67    Apparently there are a number of archivers who generate zip files that
68    don't use the .zip extension (.jar, .xpi, etc).  To handle such files,
69    place a line in your <.vimrc> file: >
71         au BufReadCmd *.jar,*.xpi call zip#Browse(expand("<amatch>"))
73    One simply can extend this line to accomodate additional extensions that
74    should be treated as zip files.
76 ==============================================================================
77 4. History                                      *zip-history* {{{1
78    v17 May 09, 2008 * arno caught a security bug
79    v15 Sep 07, 2007 * &shq now used if not the empty string for g:zip_shq
80    v14 May 07, 2007 * using b:zipfile instead of w:zipfile to avoid problem
81                       when editing alternate file to bring up a zipfile
82    v10 May 02, 2006 * now using "redraw then echo" to show messages, instead
83                       of "echo and prompt user"
84                     * g:zip_shq provided to allow for quoting control for the
85                       command being passed via :r! ... commands.
86    v8 Apr 10, 2006 * Bram Moolenaar reported that he received an error message
87                      due to "Pattern not found: ^.*\%0c"; this was caused by
88                      stridx finding a Name... at the beginning of the line;
89                      zip.vim tried 4,$s/^.*\%0c//, but that doesn't work.
90                      Fixed.
91    v7 Mar 22, 2006 * escaped some characters that can cause filename handling
92                      problems.
93    v6 Dec 21, 2005 * writing to files not in directories caused problems -
94                      fixed (pointed out by Christian Robinson)
95    v5 Nov 22, 2005 * report option workaround installed
96    v3 Oct 18, 2005 * <amatch> used instead of <afile> in autocmds
97    v2 Sep 16, 2005 * silenced some commands (avoiding hit-enter prompt)
98                    * began testing under Windows; works thus far
99                    * filetype detection fixed
100       Nov 03, 2005 * handles writing zipfiles across a network using
101                      netrw#NetWrite()
102    v1 Sep 15, 2005 * Initial release, had browsing, reading, and writing
104 ==============================================================================
105 vim:tw=78:ts=8:ft=help:fdm=marker