Bram Moolenaar | e37d50a | 2008-08-06 17:06:04 +0000 | [diff] [blame] | 1 | *pi_tar.txt* For Vim version 7.2c. Last change: 2008 Jul 13 |
Bram Moolenaar | c01140a | 2006-03-24 22:21:52 +0000 | [diff] [blame] | 2 | |
Bram Moolenaar | 3577c6f | 2008-06-24 21:16:56 +0000 | [diff] [blame] | 3 | +====================+ |
| 4 | | Tar File Interface | |
| 5 | +====================+ |
Bram Moolenaar | 9835862 | 2005-11-28 22:58:23 +0000 | [diff] [blame] | 6 | |
| 7 | Author: Charles E. Campbell, Jr. <NdrOchip@ScampbellPfamily.AbizM> |
| 8 | (remove NOSPAM from Campbell's email first) |
Bram Moolenaar | 3577c6f | 2008-06-24 21:16:56 +0000 | [diff] [blame] | 9 | Copyright 2005-2008: The GPL (gnu public license) applies to *tar-copyright* |
| 10 | tar.vim, tarPlugin.vim, and pi_tar.txt. |
Bram Moolenaar | 9835862 | 2005-11-28 22:58:23 +0000 | [diff] [blame] | 11 | No warranty, express or implied. Use At-Your-Own-Risk. |
| 12 | |
| 13 | ============================================================================== |
| 14 | 1. Contents *tar* *tar-contents* |
| 15 | 1. Contents..................................................|tar-contents| |
| 16 | 2. Usage.....................................................|tar-usage| |
Bram Moolenaar | 910f66f | 2006-04-05 20:41:53 +0000 | [diff] [blame] | 17 | 3. Options...................................................|tar-options| |
| 18 | 4. History...................................................|tar-history| |
Bram Moolenaar | 9835862 | 2005-11-28 22:58:23 +0000 | [diff] [blame] | 19 | |
| 20 | ============================================================================== |
| 21 | 2. Usage *tar-usage* *tar-manual* |
| 22 | |
| 23 | When one edits a *.tar file, this plugin will handle displaying a |
| 24 | contents page. Select a file to edit by moving the cursor atop |
| 25 | the desired file, then hit the <return> key. After editing, one may |
| 26 | also write to the file. Currently, one may not make a new file in |
| 27 | tar archives via the plugin. |
| 28 | |
| 29 | ============================================================================== |
Bram Moolenaar | 910f66f | 2006-04-05 20:41:53 +0000 | [diff] [blame] | 30 | 3. Options *tar-options* |
| 31 | |
| 32 | These options are variables that one may change, typically in one's |
| 33 | <.vimrc> file. |
Bram Moolenaar | 9964e46 | 2007-05-05 17:54:07 +0000 | [diff] [blame] | 34 | Default |
| 35 | Variable Value Explanation |
Bram Moolenaar | 910f66f | 2006-04-05 20:41:53 +0000 | [diff] [blame] | 36 | *g:tar_browseoptions* "Ptf" used to get a list of contents |
Bram Moolenaar | 9964e46 | 2007-05-05 17:54:07 +0000 | [diff] [blame] | 37 | *g:tar_readoptions* "OPxf" used to extract a file from a tarball |
| 38 | *g:tar_cmd* "tar" the name of the tar program |
Bram Moolenaar | 3577c6f | 2008-06-24 21:16:56 +0000 | [diff] [blame] | 39 | *g:tar_nomax* 0 if true, file window will not be maximized |
Bram Moolenaar | 9964e46 | 2007-05-05 17:54:07 +0000 | [diff] [blame] | 40 | *g:tar_writeoptions* "uf" used to update/replace a file |
Bram Moolenaar | 910f66f | 2006-04-05 20:41:53 +0000 | [diff] [blame] | 41 | |
| 42 | |
| 43 | ============================================================================== |
| 44 | 4. History *tar-history* |
| 45 | |
Bram Moolenaar | 3577c6f | 2008-06-24 21:16:56 +0000 | [diff] [blame] | 46 | v16 Jun 06, 2008 * tarfile:: used instead of tarfile: when editing files |
| 47 | inside tarballs. Fixes a problem with tarballs called |
| 48 | things like c:\abc.tar. (tnx to Bill McCarthy) |
| 49 | v14 May 09, 2008 * arno caught a security bug |
| 50 | May 28, 2008 * various security improvements. Now requires patch 299 |
| 51 | which provides the fnameescape() function |
| 52 | May 30, 2008 * allows one to view *.gz and *.bz2 files that are in |
| 53 | *.tar files. |
| 54 | v12 Sep 07, 2007 * &shq now used if not the empty string for g:tar_shq |
Bram Moolenaar | 9964e46 | 2007-05-05 17:54:07 +0000 | [diff] [blame] | 55 | v10 May 02, 2006 * now using "redraw then echo" to show messages, instead |
Bram Moolenaar | 3577c6f | 2008-06-24 21:16:56 +0000 | [diff] [blame] | 56 | of "echo and prompt user" |
Bram Moolenaar | d68071d | 2006-05-02 22:08:30 +0000 | [diff] [blame] | 57 | v9 May 02, 2006 * improved detection of masquerading as tar file |
| 58 | v8 May 02, 2006 * allows editing of files that merely masquerade as tar |
Bram Moolenaar | 3577c6f | 2008-06-24 21:16:56 +0000 | [diff] [blame] | 59 | files |
Bram Moolenaar | 910f66f | 2006-04-05 20:41:53 +0000 | [diff] [blame] | 60 | v7 Mar 22, 2006 * work on making tar plugin work across network |
| 61 | Mar 27, 2006 * g:tar_cmd now available for users to change the name |
Bram Moolenaar | 3577c6f | 2008-06-24 21:16:56 +0000 | [diff] [blame] | 62 | of the tar program to be used. By default, of course, |
| 63 | it's "tar". |
Bram Moolenaar | 86e0108 | 2005-12-29 22:45:34 +0000 | [diff] [blame] | 64 | v6 Dec 21, 2005 * writing to files not in directories caused problems - |
Bram Moolenaar | 3577c6f | 2008-06-24 21:16:56 +0000 | [diff] [blame] | 65 | fixed (pointed out by Christian Robinson) |
Bram Moolenaar | 9835862 | 2005-11-28 22:58:23 +0000 | [diff] [blame] | 66 | v5 Nov 22, 2005 * report option workaround installed |
| 67 | v3 Sep 16, 2005 * handles writing files in an archive back to the |
Bram Moolenaar | 3577c6f | 2008-06-24 21:16:56 +0000 | [diff] [blame] | 68 | archive |
Bram Moolenaar | 9835862 | 2005-11-28 22:58:23 +0000 | [diff] [blame] | 69 | Oct 18, 2005 * <amatch> used instead of <afile> in autocmds |
| 70 | Oct 18, 2005 * handles writing to compressed archives |
| 71 | Nov 03, 2005 * handles writing tarfiles across a network using |
Bram Moolenaar | 3577c6f | 2008-06-24 21:16:56 +0000 | [diff] [blame] | 72 | netrw#NetWrite() |
Bram Moolenaar | 9964e46 | 2007-05-05 17:54:07 +0000 | [diff] [blame] | 73 | v2 * converted to use Vim7's new autoload feature by |
Bram Moolenaar | 3577c6f | 2008-06-24 21:16:56 +0000 | [diff] [blame] | 74 | Bram Moolenaar |
Bram Moolenaar | 9835862 | 2005-11-28 22:58:23 +0000 | [diff] [blame] | 75 | v1 (original) * Michael Toren (see http://michael.toren.net/code/) |
| 76 | |
| 77 | ============================================================================== |
| 78 | vim:tw=78:ts=8:ft=help |