Movatterモバイル変換


[0]ホーム

URL:


Quick links:help overview ·quick reference ·user manual toc ·reference manual toc·faq
Go to keyword (shortcut:k)
Site search (shortcut:s)
pi_gzip.txt  ForVim version 9.2.  Last change: 2026 Feb 14VIM REFERENCE MANUAL  by Bram MoolenaarEditing compressed files with Vimgzipbzip2compress1. Autocommandsgzip-autocmdThe functionality mentioned hereisastandard-plugin.Thispluginis only available if'compatible'is not set.You can avoid loading thisplugin by setting the "loaded_gzip" variable::let loaded_gzip = 1g:gzip_execFor security reasons, one may prevent that Vim runs executables automaticallywhen openinga buffer.  This option (default: "1") can be used to preventexecuting the executables command when set to "0"::let g:gzip_exec = 0==============================================================================1. Autocommandsgzip-autocmdTheplugin installsautocommands to intercept reading andwriting of fileswith these extensions:extensioncompression*.bz2bzip2*.bz3bzip3*.gzgzip*.lzlzip*.lz4lz4*.lzmalzma*.xzxz*.Zcompress (Lempel-Ziv)*.zstzstdThat's actually the only thing you need to know.  There are no options.After decompressinga file, thefiletype will be detected again.  This willmakea file like "foo.c.gz" get the "c" filetype.If you have'patchmode' set,it will be appended after the extension forcompression.  Thus editing the patchmode file will not give you the automaticdecompression.  You have to rename the file if you want this.============================================================================== vim:tw=78:ts=8:noet:ft=help:norl:

Quick links:help overview ·quick reference ·user manual toc ·reference manual toc·faq


[8]ページ先頭

©2009-2026 Movatter.jp