blob: 582a25d62dd0889e5aba771ea46e1fdf259af8da [file] [log] [blame]
Bram Moolenaared39e1d2008-08-09 17:55:22 +00001*pi_tar.txt* For Vim version 7.2. Last change: 2008 Aug 09
Bram Moolenaarc01140a2006-03-24 22:21:52 +00002
Bram Moolenaar3577c6f2008-06-24 21:16:56 +00003 +====================+
4 | Tar File Interface |
5 +====================+
Bram Moolenaar98358622005-11-28 22:58:23 +00006
7Author: Charles E. Campbell, Jr. <NdrOchip@ScampbellPfamily.AbizM>
8 (remove NOSPAM from Campbell's email first)
Bram Moolenaar3577c6f2008-06-24 21:16:56 +00009Copyright 2005-2008: The GPL (gnu public license) applies to *tar-copyright*
10 tar.vim, tarPlugin.vim, and pi_tar.txt.
Bram Moolenaar98358622005-11-28 22:58:23 +000011 No warranty, express or implied. Use At-Your-Own-Risk.
12
13==============================================================================
141. Contents *tar* *tar-contents*
15 1. Contents..................................................|tar-contents|
16 2. Usage.....................................................|tar-usage|
Bram Moolenaar910f66f2006-04-05 20:41:53 +000017 3. Options...................................................|tar-options|
18 4. History...................................................|tar-history|
Bram Moolenaar98358622005-11-28 22:58:23 +000019
20==============================================================================
212. 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 Moolenaar910f66f2006-04-05 20:41:53 +0000303. Options *tar-options*
31
32 These options are variables that one may change, typically in one's
33 <.vimrc> file.
Bram Moolenaar9964e462007-05-05 17:54:07 +000034 Default
35 Variable Value Explanation
Bram Moolenaar910f66f2006-04-05 20:41:53 +000036 *g:tar_browseoptions* "Ptf" used to get a list of contents
Bram Moolenaar9964e462007-05-05 17:54:07 +000037 *g:tar_readoptions* "OPxf" used to extract a file from a tarball
38 *g:tar_cmd* "tar" the name of the tar program
Bram Moolenaar3577c6f2008-06-24 21:16:56 +000039 *g:tar_nomax* 0 if true, file window will not be maximized
Bram Moolenaared39e1d2008-08-09 17:55:22 +000040 *g:tar_secure* undef if exists:
41 "--" will be used to prevent unwanted
42 option expansion in tar commands.
43 Please be sure that your tar command
44 accepts "--"; Posix compliant tar
45 utilities do accept it.
46 if not exists:
47 The tar plugin will reject any member
48 files that begin with "-"
49 Not all tar's support the "--" which is why
50 it isn't default.
Bram Moolenaar9964e462007-05-05 17:54:07 +000051 *g:tar_writeoptions* "uf" used to update/replace a file
Bram Moolenaar910f66f2006-04-05 20:41:53 +000052
53
54==============================================================================
554. History *tar-history*
56
Bram Moolenaared39e1d2008-08-09 17:55:22 +000057 v22 Aug 08, 2008 * security fixes
Bram Moolenaar3577c6f2008-06-24 21:16:56 +000058 v16 Jun 06, 2008 * tarfile:: used instead of tarfile: when editing files
59 inside tarballs. Fixes a problem with tarballs called
60 things like c:\abc.tar. (tnx to Bill McCarthy)
61 v14 May 09, 2008 * arno caught a security bug
62 May 28, 2008 * various security improvements. Now requires patch 299
63 which provides the fnameescape() function
64 May 30, 2008 * allows one to view *.gz and *.bz2 files that are in
65 *.tar files.
66 v12 Sep 07, 2007 * &shq now used if not the empty string for g:tar_shq
Bram Moolenaar9964e462007-05-05 17:54:07 +000067 v10 May 02, 2006 * now using "redraw then echo" to show messages, instead
Bram Moolenaar3577c6f2008-06-24 21:16:56 +000068 of "echo and prompt user"
Bram Moolenaard68071d2006-05-02 22:08:30 +000069 v9 May 02, 2006 * improved detection of masquerading as tar file
70 v8 May 02, 2006 * allows editing of files that merely masquerade as tar
Bram Moolenaar3577c6f2008-06-24 21:16:56 +000071 files
Bram Moolenaar910f66f2006-04-05 20:41:53 +000072 v7 Mar 22, 2006 * work on making tar plugin work across network
73 Mar 27, 2006 * g:tar_cmd now available for users to change the name
Bram Moolenaar3577c6f2008-06-24 21:16:56 +000074 of the tar program to be used. By default, of course,
75 it's "tar".
Bram Moolenaar86e01082005-12-29 22:45:34 +000076 v6 Dec 21, 2005 * writing to files not in directories caused problems -
Bram Moolenaar3577c6f2008-06-24 21:16:56 +000077 fixed (pointed out by Christian Robinson)
Bram Moolenaar98358622005-11-28 22:58:23 +000078 v5 Nov 22, 2005 * report option workaround installed
79 v3 Sep 16, 2005 * handles writing files in an archive back to the
Bram Moolenaar3577c6f2008-06-24 21:16:56 +000080 archive
Bram Moolenaar98358622005-11-28 22:58:23 +000081 Oct 18, 2005 * <amatch> used instead of <afile> in autocmds
82 Oct 18, 2005 * handles writing to compressed archives
83 Nov 03, 2005 * handles writing tarfiles across a network using
Bram Moolenaar3577c6f2008-06-24 21:16:56 +000084 netrw#NetWrite()
Bram Moolenaar9964e462007-05-05 17:54:07 +000085 v2 * converted to use Vim7's new autoload feature by
Bram Moolenaar3577c6f2008-06-24 21:16:56 +000086 Bram Moolenaar
Bram Moolenaar98358622005-11-28 22:58:23 +000087 v1 (original) * Michael Toren (see http://michael.toren.net/code/)
88
89==============================================================================
90vim:tw=78:ts=8:ft=help