|
Karsten Hopp |
1aef5f |
To: vim-dev@vim.org
|
|
Karsten Hopp |
1aef5f |
Subject: Patch 7.2.394
|
|
Karsten Hopp |
1aef5f |
Fcc: outbox
|
|
Karsten Hopp |
1aef5f |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
1aef5f |
Mime-Version: 1.0
|
|
Karsten Hopp |
1aef5f |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
1aef5f |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
1aef5f |
------------
|
|
Karsten Hopp |
1aef5f |
|
|
Karsten Hopp |
1aef5f |
Patch 7.2.394
|
|
Karsten Hopp |
1aef5f |
Problem: .lzma and .xz files are not supported.
|
|
Karsten Hopp |
1aef5f |
Solution: Recognize .lzma and .xz files so that they can be edited.
|
|
Karsten Hopp |
1aef5f |
Files: runtime/plugin/gzip.vim
|
|
Karsten Hopp |
1aef5f |
|
|
Karsten Hopp |
1aef5f |
|
|
Karsten Hopp |
1aef5f |
*** ../vim-7.2.393/runtime/plugin/gzip.vim 2005-07-27 23:12:49.000000000 +0200
|
|
Karsten Hopp |
1aef5f |
--- runtime/plugin/gzip.vim 2010-03-10 17:07:22.000000000 +0100
|
|
Karsten Hopp |
1aef5f |
***************
|
|
Karsten Hopp |
1aef5f |
*** 1,6 ****
|
|
Karsten Hopp |
1aef5f |
" Vim plugin for editing compressed files.
|
|
Karsten Hopp |
1aef5f |
" Maintainer: Bram Moolenaar <Bram@vim.org>
|
|
Karsten Hopp |
1aef5f |
! " Last Change: 2005 Jul 26
|
|
Karsten Hopp |
1aef5f |
|
|
Karsten Hopp |
1aef5f |
" Exit quickly when:
|
|
Karsten Hopp |
1aef5f |
" - this plugin was already loaded
|
|
Karsten Hopp |
1aef5f |
--- 1,6 ----
|
|
Karsten Hopp |
1aef5f |
" Vim plugin for editing compressed files.
|
|
Karsten Hopp |
1aef5f |
" Maintainer: Bram Moolenaar <Bram@vim.org>
|
|
Karsten Hopp |
1aef5f |
! " Last Change: 2010 Mar 10
|
|
Karsten Hopp |
1aef5f |
|
|
Karsten Hopp |
1aef5f |
" Exit quickly when:
|
|
Karsten Hopp |
1aef5f |
" - this plugin was already loaded
|
|
Karsten Hopp |
1aef5f |
***************
|
|
Karsten Hopp |
1aef5f |
*** 20,36 ****
|
|
Karsten Hopp |
1aef5f |
"
|
|
Karsten Hopp |
1aef5f |
" Set binary mode before reading the file.
|
|
Karsten Hopp |
1aef5f |
" Use "gzip -d", gunzip isn't always available.
|
|
Karsten Hopp |
1aef5f |
! autocmd BufReadPre,FileReadPre *.gz,*.bz2,*.Z setlocal bin
|
|
Karsten Hopp |
1aef5f |
autocmd BufReadPost,FileReadPost *.gz call gzip#read("gzip -dn")
|
|
Karsten Hopp |
1aef5f |
autocmd BufReadPost,FileReadPost *.bz2 call gzip#read("bzip2 -d")
|
|
Karsten Hopp |
1aef5f |
autocmd BufReadPost,FileReadPost *.Z call gzip#read("uncompress")
|
|
Karsten Hopp |
1aef5f |
autocmd BufWritePost,FileWritePost *.gz call gzip#write("gzip")
|
|
Karsten Hopp |
1aef5f |
autocmd BufWritePost,FileWritePost *.bz2 call gzip#write("bzip2")
|
|
Karsten Hopp |
1aef5f |
autocmd BufWritePost,FileWritePost *.Z call gzip#write("compress -f")
|
|
Karsten Hopp |
1aef5f |
autocmd FileAppendPre *.gz call gzip#appre("gzip -dn")
|
|
Karsten Hopp |
1aef5f |
autocmd FileAppendPre *.bz2 call gzip#appre("bzip2 -d")
|
|
Karsten Hopp |
1aef5f |
autocmd FileAppendPre *.Z call gzip#appre("uncompress")
|
|
Karsten Hopp |
1aef5f |
autocmd FileAppendPost *.gz call gzip#write("gzip")
|
|
Karsten Hopp |
1aef5f |
autocmd FileAppendPost *.bz2 call gzip#write("bzip2")
|
|
Karsten Hopp |
1aef5f |
autocmd FileAppendPost *.Z call gzip#write("compress -f")
|
|
Karsten Hopp |
1aef5f |
augroup END
|
|
Karsten Hopp |
1aef5f |
--- 20,44 ----
|
|
Karsten Hopp |
1aef5f |
"
|
|
Karsten Hopp |
1aef5f |
" Set binary mode before reading the file.
|
|
Karsten Hopp |
1aef5f |
" Use "gzip -d", gunzip isn't always available.
|
|
Karsten Hopp |
1aef5f |
! autocmd BufReadPre,FileReadPre *.gz,*.bz2,*.Z,*.lzma,*.xz setlocal bin
|
|
Karsten Hopp |
1aef5f |
autocmd BufReadPost,FileReadPost *.gz call gzip#read("gzip -dn")
|
|
Karsten Hopp |
1aef5f |
autocmd BufReadPost,FileReadPost *.bz2 call gzip#read("bzip2 -d")
|
|
Karsten Hopp |
1aef5f |
autocmd BufReadPost,FileReadPost *.Z call gzip#read("uncompress")
|
|
Karsten Hopp |
1aef5f |
+ autocmd BufReadPost,FileReadPost *.lzma call gzip#read("lzma -d")
|
|
Karsten Hopp |
1aef5f |
+ autocmd BufReadPost,FileReadPost *.xz call gzip#read("xz -d")
|
|
Karsten Hopp |
1aef5f |
autocmd BufWritePost,FileWritePost *.gz call gzip#write("gzip")
|
|
Karsten Hopp |
1aef5f |
autocmd BufWritePost,FileWritePost *.bz2 call gzip#write("bzip2")
|
|
Karsten Hopp |
1aef5f |
autocmd BufWritePost,FileWritePost *.Z call gzip#write("compress -f")
|
|
Karsten Hopp |
1aef5f |
+ autocmd BufWritePost,FileWritePost *.lzma call gzip#write("lzma -z")
|
|
Karsten Hopp |
1aef5f |
+ autocmd BufWritePost,FileWritePost *.xz call gzip#write("xz -z")
|
|
Karsten Hopp |
1aef5f |
autocmd FileAppendPre *.gz call gzip#appre("gzip -dn")
|
|
Karsten Hopp |
1aef5f |
autocmd FileAppendPre *.bz2 call gzip#appre("bzip2 -d")
|
|
Karsten Hopp |
1aef5f |
autocmd FileAppendPre *.Z call gzip#appre("uncompress")
|
|
Karsten Hopp |
1aef5f |
+ autocmd FileAppendPre *.lzma call gzip#appre("lzma -d")
|
|
Karsten Hopp |
1aef5f |
+ autocmd FileAppendPre *.xz call gzip#appre("xz -d")
|
|
Karsten Hopp |
1aef5f |
autocmd FileAppendPost *.gz call gzip#write("gzip")
|
|
Karsten Hopp |
1aef5f |
autocmd FileAppendPost *.bz2 call gzip#write("bzip2")
|
|
Karsten Hopp |
1aef5f |
autocmd FileAppendPost *.Z call gzip#write("compress -f")
|
|
Karsten Hopp |
1aef5f |
+ autocmd FileAppendPost *.lzma call gzip#write("lzma -z")
|
|
Karsten Hopp |
1aef5f |
+ autocmd FileAppendPost *.xz call gzip#write("xz -z")
|
|
Karsten Hopp |
1aef5f |
augroup END
|
|
Karsten Hopp |
1aef5f |
*** ../vim-7.2.393/src/version.c 2010-03-10 16:27:27.000000000 +0100
|
|
Karsten Hopp |
1aef5f |
--- src/version.c 2010-03-10 17:12:43.000000000 +0100
|
|
Karsten Hopp |
1aef5f |
***************
|
|
Karsten Hopp |
1aef5f |
*** 683,684 ****
|
|
Karsten Hopp |
1aef5f |
--- 683,686 ----
|
|
Karsten Hopp |
1aef5f |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
1aef5f |
+ /**/
|
|
Karsten Hopp |
1aef5f |
+ 394,
|
|
Karsten Hopp |
1aef5f |
/**/
|
|
Karsten Hopp |
1aef5f |
|
|
Karsten Hopp |
1aef5f |
--
|
|
Karsten Hopp |
1aef5f |
ARTHUR: Be quiet!
|
|
Karsten Hopp |
1aef5f |
DENNIS: --but by a two-thirds majority in the case of more--
|
|
Karsten Hopp |
1aef5f |
ARTHUR: Be quiet! I order you to be quiet!
|
|
Karsten Hopp |
1aef5f |
WOMAN: Order, eh -- who does he think he is?
|
|
Karsten Hopp |
1aef5f |
ARTHUR: I am your king!
|
|
Karsten Hopp |
1aef5f |
The Quest for the Holy Grail (Monty Python)
|
|
Karsten Hopp |
1aef5f |
|
|
Karsten Hopp |
1aef5f |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
1aef5f |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
1aef5f |
\\\ download, build and distribute -- http://www.A-A-P.org ///
|
|
Karsten Hopp |
1aef5f |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|