When we have a compressed archive ( .tar.gz/ .gz/.zip etc.) and you want edit the content of one of the file inside - it's NOT needed to uncompress that archive really.
Just do a #vim testArchive.tar.gz
Then point the file you need to edit the content save and come out. That's it! You will have the modifed archive without that extra step.
Hope it helps!