Igor's Techno Club

Today I learned: Vim can edit Zip files in-place

From time to time, I find myself needing to edit the content of a JAR file. As many of you may know, a JAR file is essentially a zipped folder. So every time I need to edit a file within it, I used to follow this process: first, decompress the JAR, then edit the file, and finally, compress it back into a JAR.

However, it turns out that this whole process isn't necessary and can be done more conveniently using the Vim editor in-place.

All you need to do is type:

vim editme.zip

This will open up the Vim editor, allowing you to navigate through the folder structure(!) and edit the files directly.

Happy coding!

#java #til #vim