How to open Gzipped text files (*.gz) in Gvim without unzipping them first ?
Join Stack Overflow to learn, share knowledge, and build your career.
|
Solution mentioned in VimDocs as answered by therefromwhere
|
|||||||||||||
|
|
Vim should do this for you automatically. At least it does for me. There's also zless. I'll see if I can find a resource that talks about how vim does this. |
|||||
|
|
There's a example in the vim docs how how to get this working: http://vimdoc.sourceforge.net/htmldoc/autocmd.html#gzip-example For what it's worth I didn't need to do this on Ubuntu 10.04 (vim v7.2), it worked out of the box. |
|||
|
|
|
Opening them directly would just give you the raw binary compressed data. There's tools for everything, but they need to be used appropriately. Sledgehammers are not there to break eggs for breakfast, and text editors aren't there to unzip. |
|||||
|