blob: 21b6520ee19ba85c3dbdcf20bfa39b90dc13a6b5 [file] [log] [blame]
Bram Moolenaarb1c91982018-05-17 17:04:55 +02001*pi_gzip.txt* For Vim version 8.1. Last change: 2016 Nov 06
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 Moolenaarb4ada792016-10-30 21:55:26 +010030 *.lz lzip
Bram Moolenaarc0514bf2016-11-17 14:50:09 +010031 *.zst zstd
Bram Moolenaar071d4272004-06-13 20:20:40 +000032
33That's actually the only thing you need to know. There are no options.
34
35After decompressing a file, the filetype will be detected again. This will
36make a file like "foo.c.gz" get the "c" filetype.
37
38If you have 'patchmode' set, it will be appended after the extension for
39compression. Thus editing the patchmode file will not give you the automatic
40decompression. You have to rename the file if you want this.
41
42==============================================================================
43 vim:tw=78:ts=8:ft=help:norl: