1 " zipPlugin.vim: Handles browsing zipfiles
4 " Maintainer: Charles E Campbell, Jr <drchipNOSPAM at campbellfamily dot biz>
5 " License: Vim License (see vim's :help license)
6 " Copyright: Copyright (C) 2005 Charles E. Campbell, Jr. {{{1
7 " Permission is hereby granted to use and distribute this code,
8 " with or without modifications, provided that this copyright
9 " notice is copied with it. Like anything else that's free,
10 " zipPlugin.vim is provided *as is* and comes with no warranty
11 " of any kind, either expressed or implied. By using this
12 " plugin, you agree that in no event will the copyright
13 " holder be liable for any damages resulting from the use
16 " ---------------------------------------------------------------------
17 " Initialization: {{{1
21 " ---------------------------------------------------------------------
22 " Public Interface: {{{1
25 au BufReadCmd zipfile:* call zip#Read(expand("<amatch>"), 1)
26 au FileReadCmd zipfile:* call zip#Read(expand("<amatch>"), 0)
27 au BufWriteCmd zipfile:* call zip#Write(expand("<amatch>"))
28 au FileWriteCmd zipfile:* call zip#Write(expand("<amatch>"))
31 au BufReadCmd zipfile:*/* call zip#Read(expand("<amatch>"), 1)
32 au FileReadCmd zipfile:*/* call zip#Read(expand("<amatch>"), 0)
33 au BufWriteCmd zipfile:*/* call zip#Write(expand("<amatch>"))
34 au FileWriteCmd zipfile:*/* call zip#Write(expand("<amatch>"))
37 au BufReadCmd *.zip call zip#Browse(expand("<amatch>"))
40 " ------------------------------------------------------------------------
41 " Modelines And Restoration: {{{1