Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

How do I browse content of a zip file?#36753

lispercat started this conversation inGeneral
Discussion options

Using:h zip-contents it points that by default opening *.zip files should just take you to the zip browser.
Also running:echo globpath(&runtimepath, 'plugin/zipPlugin.vim') give me "/usr/local/share/nvim/runtime/plugin/zipPlugin.vim" which probably says that the required binary is there.
I am using latest nvim from github.
Also I put this in my init.lua:

vim.g.loaded_zipPlugin = 0vim.g.loaded_zip = 0vim.g.zip_exec = 0vim.cmd('runtime plugin/zipPlugin.vim')

Still when I open a zip file with either:e zipfile.zip orExplore zipfile.zip it just opens it as a binary file.
What am I missing?

You must be logged in to vote

Replies: 1 comment 1 reply

Comment options

There is no need to setloaded_zipPlugin=0 . If something in your config is setting it to1 then setting it to0 later isn't going to help.

Start by not puttinganything in your init.lua. Trynvim --clean, then:edit zipfile.zip should "just work". If it doesn't, then your$VIMRUNTIME is broken.

You must be logged in to vote
1 reply
@lispercat
Comment options

:echo $VIMRUNTIME gives "/usr/local/share/nvim/runtime".
I tried starting with clean nvim as well, still displays just digital contents of the file.
starting withnvim --clean works. Probably that means that other plugins get in the way?
Also the vim.zip doesn't allow to get into nested subfolders inside the archive, you can only work with top level files.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
General
Labels
None yet
2 participants
@lispercat@justinmk

[8]ページ先頭

©2009-2025 Movatter.jp