16b730e11SBram Moolenaar" zipPlugin.vim: Handles browsing zipfiles 26b730e11SBram Moolenaar" PLUGIN PORTION 36b730e11SBram Moolenaar" Date: Sep 14, 2005 46b730e11SBram Moolenaar" Maintainer: Charles E Campbell, Jr <drchipNOSPAM at campbellfamily dot biz> 56b730e11SBram Moolenaar" License: Vim License (see vim's :help license) 66b730e11SBram Moolenaar" Copyright: Copyright (C) 2005 Charles E. Campbell, Jr. {{{1 76b730e11SBram Moolenaar" Permission is hereby granted to use and distribute this code, 86b730e11SBram Moolenaar" with or without modifications, provided that this copyright 96b730e11SBram Moolenaar" notice is copied with it. Like anything else that's free, 106b730e11SBram Moolenaar" zipPlugin.vim is provided *as is* and comes with no warranty 116b730e11SBram Moolenaar" of any kind, either expressed or implied. By using this 126b730e11SBram Moolenaar" plugin, you agree that in no event will the copyright 136b730e11SBram Moolenaar" holder be liable for any damages resulting from the use 146b730e11SBram Moolenaar" of this software. 156b730e11SBram Moolenaar 166b730e11SBram Moolenaar" --------------------------------------------------------------------- 176b730e11SBram Moolenaar" Initialization: {{{1 186b730e11SBram Moolenaarlet s:keepcpo= &cpo 196b730e11SBram Moolenaarset cpo&vim 206b730e11SBram Moolenaar 216b730e11SBram Moolenaar" --------------------------------------------------------------------- 226b730e11SBram Moolenaar" Public Interface: {{{1 236b730e11SBram Moolenaaraugroup zip 246b730e11SBram Moolenaar au! 25*a5792f58SBram Moolenaar au BufReadCmd zipfile:* call zip#Read(expand("<amatch>"), 1) 26*a5792f58SBram Moolenaar au FileReadCmd zipfile:* call zip#Read(expand("<amatch>"), 0) 27*a5792f58SBram Moolenaar au BufWriteCmd zipfile:* call zip#Write(expand("<amatch>")) 28*a5792f58SBram Moolenaar au FileWriteCmd zipfile:* call zip#Write(expand("<amatch>")) 296b730e11SBram Moolenaar 306b730e11SBram Moolenaar if has("unix") 31*a5792f58SBram Moolenaar au BufReadCmd zipfile:*/* call zip#Read(expand("<amatch>"), 1) 32*a5792f58SBram Moolenaar au FileReadCmd zipfile:*/* call zip#Read(expand("<amatch>"), 0) 33*a5792f58SBram Moolenaar au BufWriteCmd zipfile:*/* call zip#Write(expand("<amatch>")) 34*a5792f58SBram Moolenaar au FileWriteCmd zipfile:*/* call zip#Write(expand("<amatch>")) 356b730e11SBram Moolenaar endif 366b730e11SBram Moolenaar 37*a5792f58SBram Moolenaar au BufReadCmd *.zip call zip#Browse(expand("<amatch>")) 386b730e11SBram Moolenaaraugroup END 396b730e11SBram Moolenaar 406b730e11SBram Moolenaar" ------------------------------------------------------------------------ 416b730e11SBram Moolenaar" Modelines And Restoration: {{{1 426b730e11SBram Moolenaarlet &cpo= s:keepcpo 436b730e11SBram Moolenaarunlet s:keepcpo 446b730e11SBram Moolenaar" vim:ts=8 fdm=marker 45