How do I configure vim to open zip files?
11,832
All you need to do install unzip, and it will work.
![Admin](/assets/logo_square_200-5d0d61d6853298bd2a4fe063103715b4daf2819fc21225efa21dfb93e61952ea.png)
Author by
Admin
Updated on July 06, 2022Comments
-
Admin almost 2 years
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
-
yasouser about 13 years@mhausler: If this answer solved your problem you might want to accept it.
-
Keith Pinson about 8 yearsThis worked for me on Windows as well, by installing GnuWin32 unzip.
-
MQuirion almost 8 yearsIf you plan on modifying a file within the zip file, you also need to install zip.