I used to open my files.txt.gz files (or txt.xz) files directly with nvim.

But it does not work any more for some months. Both compiled from source, or from Debian package.

What could be the cause ?

  • 2
    This is provided by a standard plugin gzip.vim (see also :h gzip). So I would check your configuration, whether you disabled this plugin Jan 20, 2023 at 10:02

1 Answer 1


I found out the problem seems like a bug related to access rights since it's only when the file is in read only for the user.

For instance, a sudo chmod a+w myfile.txt.gz fixes the issue.

The issue is also present when using view or vim -R to open the compressed file.

  • Maybe could you accept the answer to make the question rest :-) If your are user45181 let me know we can ask an administrator to merge yor accounts. Feb 20, 2023 at 20:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.