]> git.pld-linux.org Git - packages/vim.git/blame - 7.2.394
- new
[packages/vim.git] / 7.2.394
CommitLineData
8587d00a
AM
1To: vim-dev@vim.org
2Subject: Patch 7.2.394
3Fcc: outbox
4From: Bram Moolenaar <Bram@moolenaar.net>
5Mime-Version: 1.0
6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit
8------------
9
10Patch 7.2.394
11Problem: .lzma and .xz files are not supported.
12Solution: Recognize .lzma and .xz files so that they can be edited.
13Files: runtime/plugin/gzip.vim
14
15
16*** ../vim-7.2.393/runtime/plugin/gzip.vim 2005-07-27 23:12:49.000000000 +0200
17--- runtime/plugin/gzip.vim 2010-03-10 17:07:22.000000000 +0100
18***************
19*** 1,6 ****
20 " Vim plugin for editing compressed files.
21 " Maintainer: Bram Moolenaar <Bram@vim.org>
22! " Last Change: 2005 Jul 26
23
24 " Exit quickly when:
25 " - this plugin was already loaded
26--- 1,6 ----
27 " Vim plugin for editing compressed files.
28 " Maintainer: Bram Moolenaar <Bram@vim.org>
29! " Last Change: 2010 Mar 10
30
31 " Exit quickly when:
32 " - this plugin was already loaded
33***************
34*** 20,36 ****
35 "
36 " Set binary mode before reading the file.
37 " Use "gzip -d", gunzip isn't always available.
38! autocmd BufReadPre,FileReadPre *.gz,*.bz2,*.Z setlocal bin
39 autocmd BufReadPost,FileReadPost *.gz call gzip#read("gzip -dn")
40 autocmd BufReadPost,FileReadPost *.bz2 call gzip#read("bzip2 -d")
41 autocmd BufReadPost,FileReadPost *.Z call gzip#read("uncompress")
42 autocmd BufWritePost,FileWritePost *.gz call gzip#write("gzip")
43 autocmd BufWritePost,FileWritePost *.bz2 call gzip#write("bzip2")
44 autocmd BufWritePost,FileWritePost *.Z call gzip#write("compress -f")
45 autocmd FileAppendPre *.gz call gzip#appre("gzip -dn")
46 autocmd FileAppendPre *.bz2 call gzip#appre("bzip2 -d")
47 autocmd FileAppendPre *.Z call gzip#appre("uncompress")
48 autocmd FileAppendPost *.gz call gzip#write("gzip")
49 autocmd FileAppendPost *.bz2 call gzip#write("bzip2")
50 autocmd FileAppendPost *.Z call gzip#write("compress -f")
51 augroup END
52--- 20,44 ----
53 "
54 " Set binary mode before reading the file.
55 " Use "gzip -d", gunzip isn't always available.
56! autocmd BufReadPre,FileReadPre *.gz,*.bz2,*.Z,*.lzma,*.xz setlocal bin
57 autocmd BufReadPost,FileReadPost *.gz call gzip#read("gzip -dn")
58 autocmd BufReadPost,FileReadPost *.bz2 call gzip#read("bzip2 -d")
59 autocmd BufReadPost,FileReadPost *.Z call gzip#read("uncompress")
60+ autocmd BufReadPost,FileReadPost *.lzma call gzip#read("lzma -d")
61+ autocmd BufReadPost,FileReadPost *.xz call gzip#read("xz -d")
62 autocmd BufWritePost,FileWritePost *.gz call gzip#write("gzip")
63 autocmd BufWritePost,FileWritePost *.bz2 call gzip#write("bzip2")
64 autocmd BufWritePost,FileWritePost *.Z call gzip#write("compress -f")
65+ autocmd BufWritePost,FileWritePost *.lzma call gzip#write("lzma -z")
66+ autocmd BufWritePost,FileWritePost *.xz call gzip#write("xz -z")
67 autocmd FileAppendPre *.gz call gzip#appre("gzip -dn")
68 autocmd FileAppendPre *.bz2 call gzip#appre("bzip2 -d")
69 autocmd FileAppendPre *.Z call gzip#appre("uncompress")
70+ autocmd FileAppendPre *.lzma call gzip#appre("lzma -d")
71+ autocmd FileAppendPre *.xz call gzip#appre("xz -d")
72 autocmd FileAppendPost *.gz call gzip#write("gzip")
73 autocmd FileAppendPost *.bz2 call gzip#write("bzip2")
74 autocmd FileAppendPost *.Z call gzip#write("compress -f")
75+ autocmd FileAppendPost *.lzma call gzip#write("lzma -z")
76+ autocmd FileAppendPost *.xz call gzip#write("xz -z")
77 augroup END
78*** ../vim-7.2.393/src/version.c 2010-03-10 16:27:27.000000000 +0100
79--- src/version.c 2010-03-10 17:12:43.000000000 +0100
80***************
81*** 683,684 ****
82--- 683,686 ----
83 { /* Add new patch number below this line */
84+ /**/
85+ 394,
86 /**/
87
88--
89ARTHUR: Be quiet!
90DENNIS: --but by a two-thirds majority in the case of more--
91ARTHUR: Be quiet! I order you to be quiet!
92WOMAN: Order, eh -- who does he think he is?
93ARTHUR: I am your king!
94 The Quest for the Holy Grail (Monty Python)
95
96 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
97/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
98\\\ download, build and distribute -- http://www.A-A-P.org ///
99 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///
This page took 0.045326 seconds and 4 git commands to generate.