11

I have several systems that use Vim, and on one I am unable to view/edit zipped files. I believe I have the right plugins because my other system with Vim 7.0 works correctly with the same plugins.

I get an error:

$ vi admin.war
~
...
~
***error*** (zip#Browse) unzip not available on your system

My machine:

$ uname -srmo
Linux 2.6.35.4-rscloud x86_64 GNU/Linux

$ vim --v
VIM - Vi IMproved 7.2 (2008 Aug 9, compiled Sep 28 2010 11:05:08)

$ find / -name "*zip*.vim"
/usr/share/vim/vim72/autoload/zip.vim
/usr/share/vim/vim72/autoload/gzip.vim
/usr/share/vim/vim72/plugin/zipPlugin.vim
/usr/share/vim/vim72/plugin/gzip.vim
1
  • 1
    is the actual unzip package installed on that machine? Commented Jun 23, 2011 at 18:44

3 Answers 3

25

All you need to do install unzip, and it will work.

Sign up to request clarification or add additional context in comments.

3 Comments

@mhausler: If this answer solved your problem you might want to accept it.
This worked for me on Windows as well, by installing GnuWin32 unzip.
If you plan on modifying a file within the zip file, you also need to install zip.
0

according to vim 7.2+ natural autoload method, an unzip package is required:

"  Global Values: {{{1
if !exists("g:zip_shq")
 if &shq != ""
  let g:zip_shq= &shq
 elseif has("unix")
  let g:zip_shq= "'"
 else
  let g:zip_shq= '"'
 endif
endif
if !exists("g:zip_zipcmd")
 let g:zip_zipcmd= "zip"
endif
if !exists("g:zip_unzipcmd")
 let g:zip_unzipcmd= "unzip"
endif
if !exists("g:zip_extractcmd")
 let g:zip_extractcmd= g:zip_unzipcmd
endif

Comments

0

Try installing a zip.vim plugin for vim

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.