Mercurial > vim
comparison runtime/doc/pi_zip.txt @ 1201:4d2585cf5950
updated for version 7.1b
author | vimboss |
---|---|
date | Thu, 10 May 2007 17:35:54 +0000 |
parents | e63691e7c504 |
children | 797abd46869a |
comparison
equal
deleted
inserted
replaced
1200:f58cb9bf1260 | 1201:4d2585cf5950 |
---|---|
1 *pi_zip.txt* For Vim version 7.1a. Last change: 2006 Sep 29 | 1 *pi_zip.txt* For Vim version 7.1b. Last change: 2007 May 08 |
2 | 2 |
3 +====================+ | 3 +====================+ |
4 | Zip File Interface | | 4 | Zip File Interface | |
5 +====================+ | 5 +====================+ |
6 | 6 |
7 Author: Charles E. Campbell, Jr. <NdrOchip@ScampbellPfamily.AbizM> | 7 Author: Charles E. Campbell, Jr. <NdrOchip@ScampbellPfamily.AbizM> |
8 (remove NOSPAM from Campbell's email first) | 8 (remove NOSPAM from Campbell's email first) |
9 Copyright: Copyright (C) 2005,2006 Charles E Campbell, Jr {{{1 *zip-copyright* | 9 Copyright: Copyright (C) 2005,2006 Charles E Campbell, Jr *zip-copyright* |
10 Permission is hereby granted to use and distribute this code, | 10 Permission is hereby granted to use and distribute this code, |
11 with or without modifications, provided that this copyright | 11 with or without modifications, provided that this copyright |
12 notice is copied with it. Like anything else that's free, | 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* | 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 | 14 and it comes with no warranty of any kind, either expressed or |
16 the copyright holder be liable for any damages resulting from | 16 the copyright holder be liable for any damages resulting from |
17 the use of this software. | 17 the use of this software. |
18 | 18 |
19 ============================================================================== | 19 ============================================================================== |
20 1. Contents *zip* *zip-contents* | 20 1. Contents *zip* *zip-contents* |
21 1. Contents..................................................|zip-contents| | 21 1. Contents................................................|zip-contents| |
22 2. Usage.....................................................|zip-usage| | 22 2. Usage...................................................|zip-usage| |
23 3. History...................................................|zip-history| | 23 3. Additional Extensions...................................|zip-extension| |
24 4. History.................................................|zip-history| | |
24 | 25 |
25 ============================================================================== | 26 ============================================================================== |
26 2. Usage *zip-usage* *zip-manual* | 27 2. Usage *zip-usage* *zip-manual* |
27 | 28 |
28 When one edits a *.zip file, this plugin will handle displaying a | 29 When one edits a *.zip file, this plugin will handle displaying a |
29 contents page. Select a file to edit by moving the cursor atop | 30 contents page. Select a file to edit by moving the cursor atop |
30 the desired file, then hit the <return> key. After editing, one may | 31 the desired file, then hit the <return> key. After editing, one may |
31 also write to the file. Currently, one may not make a new file in | 32 also write to the file. Currently, one may not make a new file in |
32 zip archives via the plugin. | 33 zip archives via the plugin. |
33 | 34 |
34 The zip program supports one option: > | 35 OPTIONS |
35 g:zip_shq | 36 *zip_shq* |
37 Different operating systems may use one or more shells to execute | |
38 commands. Zip will try to guess the correct quoting mechanism to | |
39 allow spaces and whatnot in filenames; however, if it is incorrectly | |
40 guessing the quote to use for your setup, you may use > | |
41 g:zip_shq | |
36 < which by default is a single quote under Unix (') and a double quote | 42 < which by default is a single quote under Unix (') and a double quote |
37 under Windows ("). If you'd rather have no quotes, simply set | 43 under Windows ("). If you'd rather have no quotes, simply set |
38 g:zip_shq to the empty string (let g:zip_shq= "") in your <.vimrc>. | 44 g:zip_shq to the empty string (let g:zip_shq= "") in your <.vimrc>. |
39 | 45 |
46 *g:zip_unzipcmd* | |
47 Use this option to specify the program which does the duty of "unzip". | |
48 Its used during browsing. By default: > | |
49 let g:zip_unzipcmd= "unzip" | |
50 < | |
51 *g:zip_zipcmd* | |
52 Use this option to specify the program which does the duty of "zip". | |
53 Its used during the writing (updating) of a file already in a zip | |
54 file; by default: > | |
55 let g:zip_zipcmd= "zip" | |
56 < | |
57 | |
40 ============================================================================== | 58 ============================================================================== |
41 3. History *zip-history* | 59 3. Additional Extensions *zip-extension* |
60 | |
61 Apparently there are a number of archivers who generate zip files that | |
62 don't use the .zip extension (.jar, .xpi, etc). To handle such files, | |
63 place a line in your <.vimrc> file: > | |
64 | |
65 au BufReadCmd *.jar,*.xpi call zip#Browse(expand("<amatch>")) | |
66 < | |
67 One can simply extend this line to accomdate additional extensions that | |
68 are actually zip files. | |
69 | |
70 ============================================================================== | |
71 4. History *zip-history* {{{1 | |
72 v14 May 07, 2007 * using b:zipfile instead of w:zipfile to avoid problem | |
73 when editing alternate file to bring up a zipfile | |
42 v10 May 02, 2006 * now using "redraw then echo" to show messages, instead | 74 v10 May 02, 2006 * now using "redraw then echo" to show messages, instead |
43 of "echo and prompt user" | 75 of "echo and prompt user" |
44 * g:zip_shq provided to allow for quoting control for the | 76 * g:zip_shq provided to allow for quoting control for the |
45 command being passed via :r! ... commands. | 77 command being passed via :r! ... commands. |
46 v8 Apr 10, 2006 * Bram Moolenaar reported that he received an error message | 78 v8 Apr 10, 2006 * Bram Moolenaar reported that he received an error message |
60 Nov 03, 2005 * handles writing zipfiles across a network using | 92 Nov 03, 2005 * handles writing zipfiles across a network using |
61 netrw#NetWrite() | 93 netrw#NetWrite() |
62 v1 Sep 15, 2005 * Initial release, had browsing, reading, and writing | 94 v1 Sep 15, 2005 * Initial release, had browsing, reading, and writing |
63 | 95 |
64 ============================================================================== | 96 ============================================================================== |
65 vim:tw=78:ts=8:ft=help | 97 vim:tw=78:ts=8:ft=help:fdm=marker |