1*6b730e11SBram Moolenaar" zipPlugin.vim: Handles browsing zipfiles 2*6b730e11SBram Moolenaar" PLUGIN PORTION 3*6b730e11SBram Moolenaar" Date: Sep 14, 2005 4*6b730e11SBram Moolenaar" Maintainer: Charles E Campbell, Jr <drchipNOSPAM at campbellfamily dot biz> 5*6b730e11SBram Moolenaar" License: Vim License (see vim's :help license) 6*6b730e11SBram Moolenaar" Copyright: Copyright (C) 2005 Charles E. Campbell, Jr. {{{1 7*6b730e11SBram Moolenaar" Permission is hereby granted to use and distribute this code, 8*6b730e11SBram Moolenaar" with or without modifications, provided that this copyright 9*6b730e11SBram Moolenaar" notice is copied with it. Like anything else that's free, 10*6b730e11SBram Moolenaar" zipPlugin.vim is provided *as is* and comes with no warranty 11*6b730e11SBram Moolenaar" of any kind, either expressed or implied. By using this 12*6b730e11SBram Moolenaar" plugin, you agree that in no event will the copyright 13*6b730e11SBram Moolenaar" holder be liable for any damages resulting from the use 14*6b730e11SBram Moolenaar" of this software. 15*6b730e11SBram Moolenaar 16*6b730e11SBram Moolenaar" --------------------------------------------------------------------- 17*6b730e11SBram Moolenaar" Initialization: {{{1 18*6b730e11SBram Moolenaarlet s:keepcpo= &cpo 19*6b730e11SBram Moolenaarset cpo&vim 20*6b730e11SBram Moolenaar 21*6b730e11SBram Moolenaar" --------------------------------------------------------------------- 22*6b730e11SBram Moolenaar" Public Interface: {{{1 23*6b730e11SBram Moolenaaraugroup zip 24*6b730e11SBram Moolenaar au! 25*6b730e11SBram Moolenaar au BufReadCmd zipfile:* call zip#Read(expand("<afile>"), 1) 26*6b730e11SBram Moolenaar au FileReadCmd zipfile:* call zip#Read(expand("<afile>"), 0) 27*6b730e11SBram Moolenaar au BufWriteCmd zipfile:* call zip#Write(expand("<afile>")) 28*6b730e11SBram Moolenaar au FileWriteCmd zipfile:* call zip#Write(expand("<afile>")) 29*6b730e11SBram Moolenaar 30*6b730e11SBram Moolenaar if has("unix") 31*6b730e11SBram Moolenaar au BufReadCmd zipfile:*/* call zip#Read(expand("<afile>"), 1) 32*6b730e11SBram Moolenaar au FileReadCmd zipfile:*/* call zip#Read(expand("<afile>"), 0) 33*6b730e11SBram Moolenaar au BufWriteCmd zipfile:*/* call zip#Write(expand("<afile>")) 34*6b730e11SBram Moolenaar au FileWriteCmd zipfile:*/* call zip#Write(expand("<afile>")) 35*6b730e11SBram Moolenaar endif 36*6b730e11SBram Moolenaar 37*6b730e11SBram Moolenaar au BufReadCmd *.zip call zip#Browse(expand("<afile>")) 38*6b730e11SBram Moolenaaraugroup END 39*6b730e11SBram Moolenaar 40*6b730e11SBram Moolenaar" ------------------------------------------------------------------------ 41*6b730e11SBram Moolenaar" Modelines And Restoration: {{{1 42*6b730e11SBram Moolenaarlet &cpo= s:keepcpo 43*6b730e11SBram Moolenaarunlet s:keepcpo 44*6b730e11SBram Moolenaar" vim:ts=8 fdm=marker 45