summaryrefslogtreecommitdiff
path: root/runtime/plugin/tarPlugin.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2008-06-24 22:58:06 +0000
committerBram Moolenaar <Bram@vim.org>2008-06-24 22:58:06 +0000
commit8c8de839325eda0bed68917d18179d2003b344d1 (patch)
treec65b80f0a627f2e77385a07a62ee4206465cbc22 /runtime/plugin/tarPlugin.vim
parent864207de089119377a1e1e5d411307d8eb57399e (diff)
downloadvim-git-8c8de839325eda0bed68917d18179d2003b344d1.tar.gz
updated for version 7.2av7.2a
Diffstat (limited to 'runtime/plugin/tarPlugin.vim')
-rw-r--r--runtime/plugin/tarPlugin.vim21
1 files changed, 11 insertions, 10 deletions
diff --git a/runtime/plugin/tarPlugin.vim b/runtime/plugin/tarPlugin.vim
index e1b87fee8..42fd96a31 100644
--- a/runtime/plugin/tarPlugin.vim
+++ b/runtime/plugin/tarPlugin.vim
@@ -14,7 +14,7 @@
if &cp || exists("g:loaded_tarPlugin")
finish
endif
-let g:loaded_tarPlugin = 1
+let g:loaded_tarPlugin = "v16"
let s:keepcpo = &cpo
set cpo&vim
@@ -22,20 +22,21 @@ set cpo&vim
" Public Interface: {{{1
augroup tar
au!
- au BufReadCmd tarfile:* call tar#Read(expand("<amatch>"), 1)
- au FileReadCmd tarfile:* call tar#Read(expand("<amatch>"), 0)
- au BufWriteCmd tarfile:* call tar#Write(expand("<amatch>"))
- au FileWriteCmd tarfile:* call tar#Write(expand("<amatch>"))
+ au BufReadCmd tarfile::* call tar#Read(expand("<amatch>"), 1)
+ au FileReadCmd tarfile::* call tar#Read(expand("<amatch>"), 0)
+ au BufWriteCmd tarfile::* call tar#Write(expand("<amatch>"))
+ au FileWriteCmd tarfile::* call tar#Write(expand("<amatch>"))
if has("unix")
- au BufReadCmd tarfile:*/* call tar#Read(expand("<amatch>"), 1)
- au FileReadCmd tarfile:*/* call tar#Read(expand("<amatch>"), 0)
- au BufWriteCmd tarfile:*/* call tar#Write(expand("<amatch>"))
- au FileWriteCmd tarfile:*/* call tar#Write(expand("<amatch>"))
+ au BufReadCmd tarfile::*/* call tar#Read(expand("<amatch>"), 1)
+ au FileReadCmd tarfile::*/* call tar#Read(expand("<amatch>"), 0)
+ au BufWriteCmd tarfile::*/* call tar#Write(expand("<amatch>"))
+ au FileWriteCmd tarfile::*/* call tar#Write(expand("<amatch>"))
endif
- au BufReadCmd *.tar call tar#Browse(expand("<amatch>"))
au BufReadCmd *.tar.gz call tar#Browse(expand("<amatch>"))
+ au BufReadCmd *.tar call tar#Browse(expand("<amatch>"))
+ au BufReadCmd *.lrp call tar#Browse(expand("<amatch>"))
au BufReadCmd *.tar.bz2 call tar#Browse(expand("<amatch>"))
au BufReadCmd *.tar.Z call tar#Browse(expand("<amatch>"))
au BufReadCmd *.tgz call tar#Browse(expand("<amatch>"))