I know that vim can open files within zip or tar{,.gz} archives interactively: open the archive first, then navigate to the correct entry and press enter.
lesspipe (https://github.com/wofr06/lesspipe) (which is a preprocessor for *less*) provides the additional convenience of allowing one to directly input both the archive name and the name of the file within the archive at the same time (
less foo.tgz:file-within-foo
) (yes, I know, such a scheme leads, in theory, to issues with files containing colons in their names; in practice this is rare...). I was wondering if a similar ability was available (perhaps as a plugin) for vim.
Clarification: Fundamentally, what I'm asking for should be "relatively" simple (and mostly focused on a usability POV), because most of the archive-handling ability is actually already present in vim: I am just looking for a plugin that will transform, say, vim foo.tgz:file-within
to vim foo.tgz
followed by selecting file-within
in the listing offered by vim.
Asked by antony
(161 rep)
Jun 15, 2016, 04:01 AM
Last activity: Nov 4, 2024, 03:26 PM
Last activity: Nov 4, 2024, 03:26 PM