John Beckett wrote:
In runtime file plugin/tarPlugin.vim, there are no lines for
   *.txz
   *.tar.xz

which are needed to edit xz compressed tar archives.

File plugin/gzip.vim handles *.xz, but tarPlugin.vim needs to be
updated.

The above is from Richard David Sherman who asked me to send it
to vim_dev. Richard has limited computer access at the moment,
so has not expanded on the above. Can someone please fill in the
details and update the runtime for the 7.3 release.

Attached is a patch that should do what you requested. This is against the latest Vim 7.3c pulled and updated less than an hour ago.

 - Peter Odding
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
diff -r acfb7eddf13c runtime/plugin/tarPlugin.vim
--- a/runtime/plugin/tarPlugin.vim	Mon Jul 26 22:51:56 2010 +0200
+++ b/runtime/plugin/tarPlugin.vim	Tue Jul 27 12:39:54 2010 +0200
@@ -41,6 +41,8 @@
   au BufReadCmd   *.tar.Z		call tar#Browse(expand("<amatch>"))
   au BufReadCmd   *.tgz			call tar#Browse(expand("<amatch>"))
   au BufReadCmd   *.tar.lzma	call tar#Browse(expand("<amatch>"))
+  au BufReadCmd   *.txz			call tar#Browse(expand("<amatch>"))
+  au BufReadCmd   *.tar.xz		call tar#Browse(expand("<amatch>"))
 augroup END
 com! -nargs=? -complete=file Vimuntar call tar#Vimuntar(<q-args>)
 

Raspunde prin e-mail lui