Mercurial > vim
annotate runtime/doc/pi_tar.txt @ 3275:fbb23bd517f8 v7.3.406
updated for version 7.3.406
Problem: Multi-byte characters in b:browsefilter are not handled correctly.
Solution: First use convert_filter() normally and then convert to wide
characters. (Taro Muraoka)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Fri, 20 Jan 2012 17:57:51 +0100 |
parents | fd09a9c8468e |
children | af1e8a1714c2 |
rev | line source |
---|---|
2908 | 1 *pi_tar.txt* For Vim version 7.3. Last change: 2011 May 31 |
799 | 2 |
1620 | 3 +====================+ |
4 | Tar File Interface | | |
5 +====================+ | |
567 | 6 |
7 Author: Charles E. Campbell, Jr. <NdrOchip@ScampbellPfamily.AbizM> | |
8 (remove NOSPAM from Campbell's email first) | |
2426 | 9 Copyright 2005-2010: The GPL (gnu public license) applies to *tar-copyright* |
1620 | 10 tar.vim, tarPlugin.vim, and pi_tar.txt. |
567 | 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| | |
819 | 17 3. Options...................................................|tar-options| |
18 4. History...................................................|tar-history| | |
567 | 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 | |
2426 | 29 *:Vimuntar* |
30 VIMUNTAR~ | |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
31 |
2426 | 32 :Vimuntar [vimhome] |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
33 |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
34 This command copies, if necessary, the tarball to the .vim or vimfiles |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
35 directory using the first writable directory in the |'runtimepath'| |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
36 when no [vimhome] is specified. Otherwise, the [vimhome] argument |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
37 allows the user to specify that directory, instead. |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
38 |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
39 The copy is done using the command in *g:tar_copycmd* , which is > |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
40 cp for cygwin, unix, macunix |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
41 copy for windows (32, 95, 64, 16) |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
42 < The extraction is done with the command specified with |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
43 *g:tar_extractcmd* , which by default is > |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
44 "tar -xf" |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
45 < |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
46 PREVENTING LOADING~ |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
47 |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
48 If for some reason you do not wish to use vim to examine tar'd files, |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
49 you may put the following two variables into your <.vimrc> to prevent |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
50 the tar plugin from loading: > |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
51 |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
52 let g:loaded_tarPlugin= 1 |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
53 let g:loaded_tar = 1 |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
54 < |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
55 |
567 | 56 ============================================================================== |
819 | 57 3. Options *tar-options* |
58 | |
59 These options are variables that one may change, typically in one's | |
60 <.vimrc> file. | |
1121 | 61 Default |
62 Variable Value Explanation | |
2908 | 63 *g:tar_browseoptions* "Ptf" used to get a list of contents |
64 *g:tar_readoptions* "OPxf" used to extract a file from a tarball | |
65 *g:tar_cmd* "tar" the name of the tar program | |
66 *g:tar_nomax* 0 if true, file window will not be maximized | |
67 *g:tar_secure* undef if exists: | |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
68 "--"s will be used to prevent unwanted |
1702 | 69 option expansion in tar commands. |
70 Please be sure that your tar command | |
71 accepts "--"; Posix compliant tar | |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
72 utilities do accept them. |
1702 | 73 if not exists: |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
74 The tar plugin will reject any tar |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
75 files or member files that begin with |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
76 "-" |
1702 | 77 Not all tar's support the "--" which is why |
78 it isn't default. | |
2908 | 79 *g:tar_writeoptions* "uf" used to update/replace a file |
819 | 80 |
81 | |
82 ============================================================================== | |
83 4. History *tar-history* | |
84 | |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
85 |
2908 | 86 v27 May 31, 2011 * moved cygwin detection before g:tar_copycmd handling |
87 * inserted additional |:keepj| modifiers | |
88 * changed silent to sil! (|:silent|) | |
2535
31e51111bd14
Runtime file updates. Fix tar plugin window split.
Bram Moolenaar <bram@vim.org>
parents:
2527
diff
changeset
|
89 v26 Aug 09, 2010 * uses buffer-local instead of window variables to hold |
31e51111bd14
Runtime file updates. Fix tar plugin window split.
Bram Moolenaar <bram@vim.org>
parents:
2527
diff
changeset
|
90 tarfile name |
2908 | 91 * inserted keepj before 0d to protect jump list |
2426 | 92 v25 Jun 19, 2010 * (Jan Steffens) added support for xz compression |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
93 v24 Apr 07, 2009 * :Untarvim command implemented |
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
94 Sep 28, 2009 * Added lzma support |
1702 | 95 v22 Aug 08, 2008 * security fixes |
1620 | 96 v16 Jun 06, 2008 * tarfile:: used instead of tarfile: when editing files |
97 inside tarballs. Fixes a problem with tarballs called | |
98 things like c:\abc.tar. (tnx to Bill McCarthy) | |
99 v14 May 09, 2008 * arno caught a security bug | |
100 May 28, 2008 * various security improvements. Now requires patch 299 | |
101 which provides the fnameescape() function | |
102 May 30, 2008 * allows one to view *.gz and *.bz2 files that are in | |
103 *.tar files. | |
104 v12 Sep 07, 2007 * &shq now used if not the empty string for g:tar_shq | |
1121 | 105 v10 May 02, 2006 * now using "redraw then echo" to show messages, instead |
1620 | 106 of "echo and prompt user" |
857 | 107 v9 May 02, 2006 * improved detection of masquerading as tar file |
108 v8 May 02, 2006 * allows editing of files that merely masquerade as tar | |
1620 | 109 files |
819 | 110 v7 Mar 22, 2006 * work on making tar plugin work across network |
111 Mar 27, 2006 * g:tar_cmd now available for users to change the name | |
1620 | 112 of the tar program to be used. By default, of course, |
113 it's "tar". | |
622 | 114 v6 Dec 21, 2005 * writing to files not in directories caused problems - |
1620 | 115 fixed (pointed out by Christian Robinson) |
567 | 116 v5 Nov 22, 2005 * report option workaround installed |
117 v3 Sep 16, 2005 * handles writing files in an archive back to the | |
1620 | 118 archive |
567 | 119 Oct 18, 2005 * <amatch> used instead of <afile> in autocmds |
120 Oct 18, 2005 * handles writing to compressed archives | |
121 Nov 03, 2005 * handles writing tarfiles across a network using | |
1620 | 122 netrw#NetWrite() |
1121 | 123 v2 * converted to use Vim7's new autoload feature by |
1620 | 124 Bram Moolenaar |
567 | 125 v1 (original) * Michael Toren (see http://michael.toren.net/code/) |
126 | |
127 ============================================================================== | |
128 vim:tw=78:ts=8:ft=help |