pi_gzip.txt 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. *pi_gzip.txt* Nvim
  2. VIM REFERENCE MANUAL by Bram Moolenaar
  3. Editing compressed files with Vim *gzip* *bzip2* *compress*
  4. 1. Autocommands |gzip-autocmd|
  5. The functionality mentioned here is a |standard-plugin|.
  6. This plugin is only available if 'compatible' is not set.
  7. You can avoid loading this plugin by setting the "loaded_gzip" variable: >
  8. :let loaded_gzip = 1
  9. <
  10. *g:gzip_exec*
  11. For security reasons, one may prevent that Vim runs executables automatically
  12. when opening a buffer. This option (default: "1") can be used to prevent
  13. executing the executables command when set to "0": >
  14. :let g:gzip_exec = 0
  15. <
  16. ==============================================================================
  17. 1. Autocommands *gzip-autocmd*
  18. The plugin installs autocommands to intercept reading and writing of files
  19. with these extensions:
  20. extension compression >
  21. *.Z compress (Lempel-Ziv)
  22. *.gz gzip
  23. *.bz2 bzip2
  24. *.lzma lzma
  25. *.xz xz
  26. *.lz lzip
  27. *.zst zstd
  28. That's actually the only thing you need to know. There are no options.
  29. After decompressing a file, the filetype will be detected again. This will
  30. make a file like "foo.c.gz" get the "c" filetype.
  31. If you have 'patchmode' set, it will be appended after the extension for
  32. compression. Thus editing the patchmode file will not give you the automatic
  33. decompression. You have to rename the file if you want this.
  34. ==============================================================================
  35. vim:tw=78:ts=8:noet:ft=help:norl: