Skip to main content
command completed
Source Link
Tagwint
  • 2.5k
  • 1
  • 17
  • 22

Both

vim scp://remotehost///path/to/file.txt 

and

vim zipfile:/path/to/file.zip::path/inside/zip/file.txt 

work for opening either remote or a file inside zip archives.

What if one needs both at the same time?

I've tried

vim scp://remotehost///path/to/file.zip 

this does not open zip content as in case of local zip file.

neither of

vim zipfile:scp://remotehost///path/to/file.zip::/path/in/zip/file.txt vim scp://remotehost//zipfile:/path/to/file.zip::/path/in/zip/file.txt 

work

(How) is it possible to combine zipfile: and scp: in one command to open file inside the remote zip file?

Both

vim scp://remotehost///path/to/file.txt 

and

vim zipfile:/path/to/file.zip::path/inside/zip/file.txt 

work for opening either remote or a file inside zip archives.

What if one needs both at the same time?

I've tried

scp://remotehost///path/to/file.zip 

this does not open zip content as in case of local zip file.

neither of

zipfile:scp://remotehost///path/to/file.zip::/path/in/zip/file.txt scp://remotehost//zipfile:/path/to/file.zip::/path/in/zip/file.txt 

work

(How) is it possible to combine zipfile: and scp: in one command to open file inside the remote zip file?

Both

vim scp://remotehost///path/to/file.txt 

and

vim zipfile:/path/to/file.zip::path/inside/zip/file.txt 

work for opening either remote or a file inside zip archives.

What if one needs both at the same time?

I've tried

vim scp://remotehost///path/to/file.zip 

this does not open zip content as in case of local zip file.

neither of

vim zipfile:scp://remotehost///path/to/file.zip::/path/in/zip/file.txt vim scp://remotehost//zipfile:/path/to/file.zip::/path/in/zip/file.txt 

work

(How) is it possible to combine zipfile: and scp: in one command to open file inside the remote zip file?

edited tags
Link
Jeff Schaller
  • 68.8k
  • 35
  • 122
  • 266
Source Link
Tagwint
  • 2.5k
  • 1
  • 17
  • 22

Combine zipfile: with scp: to open remote zip with vim?

Both

vim scp://remotehost///path/to/file.txt 

and

vim zipfile:/path/to/file.zip::path/inside/zip/file.txt 

work for opening either remote or a file inside zip archives.

What if one needs both at the same time?

I've tried

scp://remotehost///path/to/file.zip 

this does not open zip content as in case of local zip file.

neither of

zipfile:scp://remotehost///path/to/file.zip::/path/in/zip/file.txt scp://remotehost//zipfile:/path/to/file.zip::/path/in/zip/file.txt 

work

(How) is it possible to combine zipfile: and scp: in one command to open file inside the remote zip file?