Mercurial > vim
annotate runtime/doc/pi_gzip.txt @ 33738:2172872dfbcd v9.0.2096
patch 9.0.2096: Vim9: confusing usage of private
Commit: https://github.com/vim/vim/commit/03042a2753e3e6ac971045a8ce256d709214710e
Author: Ernie Rael <errael@raelity.com>
Date: Sat Nov 11 08:53:32 2023 +0100
patch 9.0.2096: Vim9: confusing usage of private
Problem: Vim9: confusing usage of private
Solution: clarify and use protected keyword instead
[vim9class] document `_` as protected instead of private
fixes #13504
closes: #13520
Signed-off-by: Ernie Rael <errael@raelity.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 11 Nov 2023 09:00:06 +0100 |
parents | d7ac49e53d62 |
children | fc557aa379ef |
rev | line source |
---|---|
33721
d7ac49e53d62
runtime(doc): document vim-script library function
Christian Brabandt <cb@256bit.org>
parents:
29314
diff
changeset
|
1 *pi_gzip.txt* For Vim version 9.0. Last change: 2023 Nov 05 |
7 | 2 |
3 | |
4 VIM REFERENCE MANUAL by Bram Moolenaar | |
5 | |
6 | |
7 Editing compressed files with Vim *gzip* *bzip2* *compress* | |
8 | |
9 1. Autocommands |gzip-autocmd| | |
10 | |
11 The functionality mentioned here is a |standard-plugin|. | |
12 This plugin is only available if 'compatible' is not set. | |
13 You can avoid loading this plugin by setting the "loaded_gzip" variable: > | |
14 :let loaded_gzip = 1 | |
33721
d7ac49e53d62
runtime(doc): document vim-script library function
Christian Brabandt <cb@256bit.org>
parents:
29314
diff
changeset
|
15 < |
d7ac49e53d62
runtime(doc): document vim-script library function
Christian Brabandt <cb@256bit.org>
parents:
29314
diff
changeset
|
16 *g:gzip_exec* |
d7ac49e53d62
runtime(doc): document vim-script library function
Christian Brabandt <cb@256bit.org>
parents:
29314
diff
changeset
|
17 |
d7ac49e53d62
runtime(doc): document vim-script library function
Christian Brabandt <cb@256bit.org>
parents:
29314
diff
changeset
|
18 For security reasons, one may prevent that Vim runs executables automatically |
d7ac49e53d62
runtime(doc): document vim-script library function
Christian Brabandt <cb@256bit.org>
parents:
29314
diff
changeset
|
19 when opening a buffer. This option (default: "1") can be used to prevent |
d7ac49e53d62
runtime(doc): document vim-script library function
Christian Brabandt <cb@256bit.org>
parents:
29314
diff
changeset
|
20 executing the executables command when set to "0": > |
d7ac49e53d62
runtime(doc): document vim-script library function
Christian Brabandt <cb@256bit.org>
parents:
29314
diff
changeset
|
21 :let g:gzip_exec = 0 |
d7ac49e53d62
runtime(doc): document vim-script library function
Christian Brabandt <cb@256bit.org>
parents:
29314
diff
changeset
|
22 < |
7 | 23 |
24 ============================================================================== | |
33721
d7ac49e53d62
runtime(doc): document vim-script library function
Christian Brabandt <cb@256bit.org>
parents:
29314
diff
changeset
|
25 2. Autocommands *gzip-autocmd* |
7 | 26 |
27 The plugin installs autocommands to intercept reading and writing of files | |
28 with these extensions: | |
29 | |
30 extension compression ~ | |
31 *.Z compress (Lempel-Ziv) | |
32 *.gz gzip | |
33 *.bz2 bzip2 | |
3713 | 34 *.lzma lzma |
35 *.xz xz | |
10319
169a62d5bcb9
commit https://github.com/vim/vim/commit/b4ada79aa7d0d1e5da3a659b1a203d7cae9f7f59
Christian Brabandt <cb@256bit.org>
parents:
10198
diff
changeset
|
36 *.lz lzip |
10385
368468ef35cf
commit https://github.com/vim/vim/commit/c0514bf4777a1d55f5785b3887c5686fd0bbe870
Christian Brabandt <cb@256bit.org>
parents:
10319
diff
changeset
|
37 *.zst zstd |
7 | 38 |
39 That's actually the only thing you need to know. There are no options. | |
40 | |
41 After decompressing a file, the filetype will be detected again. This will | |
42 make a file like "foo.c.gz" get the "c" filetype. | |
43 | |
44 If you have 'patchmode' set, it will be appended after the extension for | |
45 compression. Thus editing the patchmode file will not give you the automatic | |
46 decompression. You have to rename the file if you want this. | |
47 | |
48 ============================================================================== | |
14421 | 49 vim:tw=78:ts=8:noet:ft=help:norl: |