Fedora: vi/vim gzipped file   February 19th, 2016

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
Tags: , ,
Posted in Hosting, Software Development | Comments Closed