blob: 31cd81b848544e55d835d1f62a1adfdc9df17bd9 [file] [log] [blame]
Bram Moolenaarbb76f242016-09-12 14:24:39 +02001*pi_gzip.txt* For Vim version 8.0. Last change: 2012 Jul 19
Bram Moolenaar071d4272004-06-13 20:20:40 +00002
3
4 VIM REFERENCE MANUAL by Bram Moolenaar
5
6
7Editing compressed files with Vim *gzip* *bzip2* *compress*
8
91. Autocommands |gzip-autocmd|
10
11The functionality mentioned here is a |standard-plugin|.
12This plugin is only available if 'compatible' is not set.
13You can avoid loading this plugin by setting the "loaded_gzip" variable: >
14 :let loaded_gzip = 1
15
16{Vi does not have any of this}
17
18==============================================================================
191. Autocommands *gzip-autocmd*
20
21The plugin installs autocommands to intercept reading and writing of files
22with these extensions:
23
24 extension compression ~
25 *.Z compress (Lempel-Ziv)
26 *.gz gzip
27 *.bz2 bzip2
Bram Moolenaar6c35bea2012-07-25 17:49:10 +020028 *.lzma lzma
29 *.xz xz
Bram Moolenaar071d4272004-06-13 20:20:40 +000030
31That's actually the only thing you need to know. There are no options.
32
33After decompressing a file, the filetype will be detected again. This will
34make a file like "foo.c.gz" get the "c" filetype.
35
36If you have 'patchmode' set, it will be appended after the extension for
37compression. Thus editing the patchmode file will not give you the automatic
38decompression. You have to rename the file if you want this.
39
40==============================================================================
41 vim:tw=78:ts=8:ft=help:norl: