~ubuntu-branches/ubuntu/maverick/vim/maverick

« back to all changes in this revision

Viewing changes to runtime/plugin/tarPlugin.vim

  • Committer: Bazaar Package Importer
  • Author(s): Colin Watson
  • Date: 2008-06-26 13:42:18 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20080626134218-703edeyb8k70qpbz
Tags: 1:7.1.314-3ubuntu1
* Resynchronise with Debian. Remaining changes:
  - Enable detection of GNU screen as a mouse-capable terminal.
  - Add NoDisplay=true to gvim.desktop.
  - Drop vim-lesstif package and lesstif2-dev build-dependency.
  - Build-depend on libxt-dev.
  - Enable Python interpreter on basic builds.
  - Create a .pot file for translations.
  - Disable autoindent, line-wrapping, and backup files by default.
* Fixes various vulnerabilities due to improper quoting of 'execute'
  arguments (LP: #240216).
* Drop fixes for upgrade problems from Ubuntu 6.06 LTS; direct upgrades
  from 6.06 to 8.10 will not be supported.

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
if &cp || exists("g:loaded_tarPlugin")
15
15
 finish
16
16
endif
17
 
let g:loaded_tarPlugin = 1
 
17
let g:loaded_tarPlugin = "v16"
18
18
let s:keepcpo          = &cpo
19
19
set cpo&vim
20
20
 
22
22
"  Public Interface: {{{1
23
23
augroup tar
24
24
  au!
25
 
  au BufReadCmd   tarfile:*     call tar#Read(expand("<amatch>"), 1)
26
 
  au FileReadCmd  tarfile:*     call tar#Read(expand("<amatch>"), 0)
27
 
  au BufWriteCmd  tarfile:*     call tar#Write(expand("<amatch>"))
28
 
  au FileWriteCmd tarfile:*     call tar#Write(expand("<amatch>"))
 
25
  au BufReadCmd   tarfile::*    call tar#Read(expand("<amatch>"), 1)
 
26
  au FileReadCmd  tarfile::*    call tar#Read(expand("<amatch>"), 0)
 
27
  au BufWriteCmd  tarfile::*    call tar#Write(expand("<amatch>"))
 
28
  au FileWriteCmd tarfile::*    call tar#Write(expand("<amatch>"))
29
29
 
30
30
  if has("unix")
31
 
   au BufReadCmd   tarfile:*/*  call tar#Read(expand("<amatch>"), 1)
32
 
   au FileReadCmd  tarfile:*/*  call tar#Read(expand("<amatch>"), 0)
33
 
   au BufWriteCmd  tarfile:*/*  call tar#Write(expand("<amatch>"))
34
 
   au FileWriteCmd tarfile:*/*  call tar#Write(expand("<amatch>"))
 
31
   au BufReadCmd   tarfile::*/* call tar#Read(expand("<amatch>"), 1)
 
32
   au FileReadCmd  tarfile::*/* call tar#Read(expand("<amatch>"), 0)
 
33
   au BufWriteCmd  tarfile::*/* call tar#Write(expand("<amatch>"))
 
34
   au FileWriteCmd tarfile::*/* call tar#Write(expand("<amatch>"))
35
35
  endif
36
36
 
 
37
  au BufReadCmd   *.tar.gz      call tar#Browse(expand("<amatch>"))
37
38
  au BufReadCmd   *.tar         call tar#Browse(expand("<amatch>"))
38
 
  au BufReadCmd   *.tar.gz      call tar#Browse(expand("<amatch>"))
 
39
  au BufReadCmd   *.lrp         call tar#Browse(expand("<amatch>"))
39
40
  au BufReadCmd   *.tar.bz2     call tar#Browse(expand("<amatch>"))
40
41
  au BufReadCmd   *.tar.Z       call tar#Browse(expand("<amatch>"))
41
42
  au BufReadCmd   *.tgz         call tar#Browse(expand("<amatch>"))