pi_tar.txt 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. *pi_tar.txt* Nvim
  2. +====================+
  3. | Tar File Interface |
  4. +====================+
  5. Author: Charles E. Campbell <NcampObell@SdrPchip.AorgM-NOSPAM>
  6. (remove NOSPAM from Campbell's email first)
  7. Copyright 2005-2017: *tar-copyright*
  8. The VIM LICENSE (see |copyright|) applies to the files in this
  9. package, including tarPlugin.vim, tar.vim, and pi_tar.txt. Like
  10. anything else that's except use "tar.vim" instead of "VIM". Like
  11. anything else that's free, tar.vim and its associated files are
  12. provided as is and comes with no warranty of any kind, either
  13. expressed or implied. No guarantees of merchantability. No
  14. guarantees of suitability for any purpose. By using this plugin, you
  15. agree that in no event will the copyright holder be liable for any
  16. damages resulting from the use of this software. Use at your own risk!
  17. ==============================================================================
  18. 1. Contents *tar* *tar-contents*
  19. 1. Contents..................................................|tar-contents|
  20. 2. Usage.....................................................|tar-usage|
  21. 3. Options...................................................|tar-options|
  22. 4. History...................................................|tar-history|
  23. ==============================================================================
  24. 2. Usage *tar-usage* *tar-manual*
  25. When one edits a `*.tar` file, this plugin will handle displaying a
  26. contents page. Select a file to edit by moving the cursor atop
  27. the desired file, then hit the <return> key. After editing, one may
  28. also write to the file. Currently, one may not make a new file in
  29. tar archives via the plugin.
  30. *:TarDiff*
  31. DIFFERENCING SUPPORT~
  32. :TarDiff [filename]
  33. This command will attempt to show the differences between the tarball
  34. version of a file and the associated file on the system. In order to
  35. find that file on the system, the script uses the path associated with
  36. the file mentioned in the tarball. If the current directory is not
  37. correct for that path, :TarDiff will fail to find the associated file.
  38. If the [filename] is given, that filename (and path) will be used to
  39. specify the associated file.
  40. PREVENTING LOADING~
  41. If for some reason you do not wish to use vim to examine tar'd files,
  42. you may put the following two variables into your <.vimrc> to prevent
  43. the tar plugin from loading: >
  44. let g:loaded_tarPlugin= 1
  45. let g:loaded_tar = 1
  46. <
  47. ==============================================================================
  48. 3. Options *tar-options*
  49. These options are variables that one may change, typically in one's
  50. <.vimrc> file.
  51. Default
  52. Variable Value Explanation
  53. *g:tar_browseoptions* "Ptf" used to get a list of contents
  54. *g:tar_readoptions* "OPxf" used to extract a file from a tarball
  55. *g:tar_cmd* "tar" the name of the tar program
  56. *g:tar_nomax* 0 if true, file window will not be maximized
  57. *g:tar_secure* undef if exists:
  58. "--"s will be used to prevent unwanted
  59. option expansion in tar commands.
  60. Please be sure that your tar command
  61. accepts "--"; Posix compliant tar
  62. utilities do accept them.
  63. if not exists:
  64. The tar plugin will reject any tar
  65. files or member files that begin with
  66. "-"
  67. Not all tar's support the "--" which is why
  68. it isn't default.
  69. *g:tar_writeoptions* "uf" used to update/replace a file
  70. ==============================================================================
  71. 4. History *tar-history*
  72. v31 Apr 02, 2017 * (klartext) reported that browsing encrypted
  73. files in a zip archive created unencrypted
  74. swap files. I am applying a similar fix
  75. used on zip.vim to tar.vim: new buffers
  76. are opened with |:noswapfile|.
  77. May 16, 2017 * When the mouse option isn't empty, the
  78. leftmouse can be used to select a file
  79. in the tar-file listing.
  80. v30 Apr 22, 2014 * .tgz files are ambiguous: they may have been
  81. compressed with either gzip or bzip2. Tar.vim
  82. disambiguates by using unix's "file" command.
  83. Feb 18, 2016 * Changed =~ to =~# where appropriate
  84. Feb 18, 2017 * Now also permits xz decompression
  85. v28 Jun 23, 2011 * a few more decompression options (tbz tb2 txz)
  86. v27 May 31, 2011 * moved cygwin detection before g:tar_copycmd
  87. handling
  88. * inserted additional |:keepj| modifiers
  89. * changed silent to sil! (|:silent|)
  90. v26 Aug 09, 2010 * uses buffer-local instead of window variables
  91. to hold tarfile name
  92. * inserted keepj before 0d to protect jump list
  93. v25 Jun 19, 2010 * (Jan Steffens) added support for xz
  94. compression
  95. v24 Apr 07, 2009 * :Untarvim command implemented
  96. Sep 28, 2009 * Added lzma support
  97. v22 Aug 08, 2008 * security fixes
  98. v16 Jun 06, 2008 * tarfile:: used instead of tarfile: when
  99. editing files inside tarballs. Fixes a
  100. problem with tarballs called things like
  101. c:\abc.tar. (tnx to Bill McCarthy)
  102. v14 May 09, 2008 * arno caught a security bug
  103. May 28, 2008 * various security improvements. Now requires
  104. patch 299 which provides the fnameescape()
  105. function
  106. May 30, 2008 * allows one to view `*.gz` and `*.bz2` files that
  107. are in `*.tar` files.
  108. v12 Sep 07, 2007 * &shq now used if not the empty string for
  109. g:tar_shq
  110. v10 May 02, 2006 * now using "redraw then echo" to show messages,
  111. instead of "echo and prompt user"
  112. v9 May 02, 2006 * improved detection of masquerading as tar file
  113. v8 May 02, 2006 * allows editing of files that merely masquerade
  114. as tar files
  115. v7 Mar 22, 2006 * work on making tar plugin work across network
  116. Mar 27, 2006 * g:tar_cmd now available for users to change
  117. the name of the tar program to be used. By
  118. default, of course, it's "tar".
  119. v6 Dec 21, 2005 * writing to files not in directories caused
  120. problems - fixed (pointed out by
  121. Christian Robinson)
  122. v5 Nov 22, 2005 * report option workaround installed
  123. v3 Sep 16, 2005 * handles writing files in an archive back to
  124. the archive
  125. Oct 18, 2005 * <amatch> used instead of <afile> in autocmds
  126. Oct 18, 2005 * handles writing to compressed archives
  127. Nov 03, 2005 * handles writing tarfiles across a network
  128. using netrw#NetWrite()
  129. v2 * converted to use Vim7's new autoload feature
  130. by Bram Moolenaar
  131. v1 (original) * Michael Toren
  132. (see http://michael.toren.net/code/
  133. link seems dead)
  134. ==============================================================================
  135. vim:tw=78:ts=8:noet:ft=help