When I edit myfile.log.gz with vi, I want to see the uncompressed file.

There are lots of useful posts on the Internet for how to make this work in Ubuntu. But for Fedora I could not find a solution.

There is a workaround according to http://labs.sasslantis.ee/2011/05/open-gzipped-file-with-vi/:

zcat myfile.log.gz | vi -

But that is hard to remember…

This is the easiest solution:

sudo dnf install vim-enhanced
vim myfile.log.gz
Fedora: vi/vim gzipped file
Tagged on: