blob: e5d5ffb25f52423418bfc1606a0ad83d3c6a7147 [file] [log] [blame]
Bram Moolenaareb490412022-06-28 13:44:46 +01001*pi_gzip.txt* For Vim version 9.0. Last change: 2019 May 05
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
Bram Moolenaar071d4272004-06-13 20:20:40 +000016==============================================================================
171. Autocommands *gzip-autocmd*
18
19The plugin installs autocommands to intercept reading and writing of files
20with these extensions:
21
22 extension compression ~
23 *.Z compress (Lempel-Ziv)
24 *.gz gzip
25 *.bz2 bzip2
Bram Moolenaar6c35bea2012-07-25 17:49:10 +020026 *.lzma lzma
27 *.xz xz
Bram Moolenaarb4ada792016-10-30 21:55:26 +010028 *.lz lzip
Bram Moolenaarc0514bf2016-11-17 14:50:09 +010029 *.zst zstd
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==============================================================================
Bram Moolenaar91f84f62018-07-29 15:07:52 +020041 vim:tw=78:ts=8:noet:ft=help:norl: