Damus
Yann Büchau :nixos: profile picture
Yann Büchau :nixos:
@Yann Büchau :nixos:
:vim: #vim pros:

I want to open a zip file that does *not* have a .zip suffix with vim's nice browsing mode. Is this from within the only way to achieve this?

:call zip#Browse("/full/path/to/file")

Unfortunately there is no tab completion in that string 😑

And yes, I could use symlinks:

> ln -rsf myfile.notzip{,.zip}
> vim myfile.notzip.zip

But come on...
2
Caleb Maclennan · 12w
nostr:nprofile1qy2hwumn8ghj7un9d3shjtnyd968gmewwp6kyqpq6mtxp68k8c3p2sj0wzhagt3kd8ywkvzlkfyt3vrx9cahzfz000vsdyv673 vim --cmd 'call zip#Browse("/full/path/to/file")' Also why would you not have completion for that inside vim too? CTRL-X-F doesn't work to complete a path?
musicmatze :rust: :nixos: · 12w
nostr:nprofile1qy2hwumn8ghj7un9d3shjtnyd968gmewwp6kyqpq6mtxp68k8c3p2sj0wzhagt3kd8ywkvzlkfyt3vrx9cahzfz000vsdyv673 Just a guess: :set ft=zip ...may work?