blob: 70495708bfe28b652178b0ad8ffdd4cc45b94431 [file] [log] [blame]
Bram Moolenaarb4ada792016-10-30 21:55:26 +01001*pi_gzip.txt* For Vim version 8.0. Last change: 2016 Oct 30
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 Moolenaar071d4272004-06-13 20:20:40 +000031
32That's actually the only thing you need to know. There are no options.
33
34After decompressing a file, the filetype will be detected again. This will
35make a file like "foo.c.gz" get the "c" filetype.
36
37If you have 'patchmode' set, it will be appended after the extension for
38compression. Thus editing the patchmode file will not give you the automatic
39decompression. You have to rename the file if you want this.
40
41==============================================================================
42 vim:tw=78:ts=8:ft=help:norl: