/editar

Containerized tar file editor via vim plugin

Primary LanguageVim scriptGNU General Public License v3.0GPL-3.0

editar

Allows you to edit text based content inside tar files (even gzipped ones) with vim without extracting and repacking them. Credits go to Michael Toren for writing the awesome VIM plugin which allows this functionality.

How to run

Add this snipped to your .bashrc / .profile / .zprofile:

editar() {
    docker run --rm -it -v $(dirname $1):/edit/$(dirname $1) ghcr.io/pmjohann/editar $1
}

Then you can edit tar files like:

editar /path/to/my.tar.gz

Make sure you use the full path to the tar file!