xref: /vim-8.2.3635/runtime/doc/pi_gzip.txt (revision 98056533)
1*pi_gzip.txt*   For Vim version 8.2.  Last change: 2019 May 05
2
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==============================================================================
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
26	*.lzma		lzma
27	*.xz		xz
28	*.lz		lzip
29	*.zst		zstd
30
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:noet:ft=help:norl:
42