Mercurial > vim
diff runtime/plugin/tarPlugin.vim @ 1126:c5c164b4c95c
updated for version 7.1a
author | vimboss |
---|---|
date | Sat, 05 May 2007 18:27:07 +0000 |
parents | 862863033fdd |
children | 18ee39301b82 |
line wrap: on
line diff
--- a/runtime/plugin/tarPlugin.vim +++ b/runtime/plugin/tarPlugin.vim @@ -1,5 +1,6 @@ " tarPlugin.vim -- a Vim plugin for browsing tarfiles -" Copyright (c) 2002, Michael C. Toren <mct@toren.net> +" Original was copyright (c) 2002, Michael C. Toren <mct@toren.net> +" Modified by Charles E. Campbell, Jr. " Distributed under the GNU General Public License. " " Updates are available from <http://michael.toren.net/code/>. If you @@ -8,7 +9,17 @@ " Also look there for further comments and documentation. " " This part only sets the autocommands. The functions are in autoload/tar.vim. +" --------------------------------------------------------------------- +" Load Once: {{{1 +if &cp || exists("g:loaded_tarPlugin") + finish +endif +let g:loaded_tarPlugin = 1 +let s:keepcpo = &cpo +set cpo&vim +" --------------------------------------------------------------------- +" Public Interface: {{{1 augroup tar au! au BufReadCmd tarfile:* call tar#Read(expand("<amatch>"), 1) @@ -30,4 +41,8 @@ augroup tar au BufReadCmd *.tgz call tar#Browse(expand("<amatch>")) augroup END -" vim: ts=8 +" --------------------------------------------------------------------- +" Restoration And Modelines: {{{1 +" vim: fdm=marker +let &cpo= s:keepcpo +unlet s:keepcpo