robin/laufey
git clone https://git.robinwobin.dev/robin/laufey
cf347110c1
master
1*pi_gzip.txt* Nvim 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 *g:gzip_exec* 17 18For security reasons, one may prevent that Vim runs executables automatically 19when opening a buffer. This option (default: "1") can be used to prevent 20executing the executables command when set to "0": > 21 :let g:gzip_exec = 0 22< 23 24============================================================================== 251. Autocommands *gzip-autocmd* 26 27The plugin installs autocommands to intercept reading and writing of files 28with these extensions: 29 30 extension compression > 31 *.bz2 bzip2 32 *.bz3 bzip3 33 *.gz gzip 34 *.lz lzip 35 *.lz4 lz4 36 *.lzma lzma 37 *.xz xz 38 *.Z compress (Lempel-Ziv) 39 *.zst zstd 40 41That's actually the only thing you need to know. There are no options. 42 43After decompressing a file, the filetype will be detected again. This will 44make a file like "foo.c.gz" get the "c" filetype. 45 46If you have 'patchmode' set, it will be appended after the extension for 47compression. Thus editing the patchmode file will not give you the automatic 48decompression. You have to rename the file if you want this. 49 50============================================================================== 51 vim:tw=78:ts=8:noet:ft=help:norl: