Bug#309928: vim-common: gzip files are uncompressed after :w

Carlos Z.F. Liu "Carlos Z.F. Liu" <carlosliu@users.sourceforge.net>, 309928@bugs.debian.org
Sat, 21 May 2005 02:51:33 +1200


Package: vim-common
Version: 1:6.3-071+2
Severity: normal

I have a text file with gzip compression. After I open it by vim, and
edit a bit, and ":w" it, vim show following error msg:

Error detected while processing function <SNR>14_write:
line    7:
E121: Undefined variable: b:compression
E116: Invalid arguments for function system(a:cmd . " " . b:compression
.. " " . nmt)

And then, the file will be saved as a plain text file, aka uncompressed.


-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable'), (101, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.8-2-686
Locale: LANG=en_NZ.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages vim-common depends on:
ii  vim                          1:6.3-071+2 Vi IMproved - enhanced vi editor

-- no debconf information