Patch: plugin/gzip.vim, maintain compression levels

Bram Moolenaar Bram@moolenaar.net
Mon, 16 May 2005 17:11:42 +0200


James -

> I'm a member of the maintainer group for Debian's Vim package.  Attached
> is a patch for plugin/gzip.vim to address the wishlist bug reported in
> <http://bugs.debian.org/280388>.
> 
> The patch adds support for maintaining the compression level when
> editing a .gz file.  If the gzip file was compressed using "max speed"
> or "max compression", Vim will detect and use that compression level.
> Otherwise, the default compression level is used (as before).

Using an external command is a weird solution, the text is right there
in the Vim buffer.  You can use Vim commands to get the byte.

What gzip documentation specifies the use of these bytes?  Is it
portable over different systems?

- Bram

-- 
Proofread carefully to see if you any words out.

 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
///        Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\              Project leader for A-A-P -- http://www.A-A-P.org        ///
 \\\     Buy LOTR 3 and help AIDS victims -- http://ICCF.nl/lotr.html   ///