pi_gzip.txt 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. 1. Autocommands *gzip-autocmd*
  11. The plugin installs autocommands to intercept reading and writing of files
  12. with these extensions:
  13. extension compression ~
  14. *.Z compress (Lempel-Ziv)
  15. *.gz gzip
  16. *.bz2 bzip2
  17. *.lzma lzma
  18. *.xz xz
  19. *.lz lzip
  20. *.zst zstd
  21. That's actually the only thing you need to know. There are no options.
  22. After decompressing a file, the filetype will be detected again. This will
  23. make a file like "foo.c.gz" get the "c" filetype.
  24. If you have 'patchmode' set, it will be appended after the extension for
  25. compression. Thus editing the patchmode file will not give you the automatic
  26. decompression. You have to rename the file if you want this.
  27. ==============================================================================
  28. vim:tw=78:ts=8:noet:ft=help:norl: