4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: When editing a compressed file xxx.gz which is a symbolic link to
12 the actual file a ":write" renames the link.
13 Solution: Resolve the link, so that the actual file is renamed and
15 Files: runtime/plugin/gzip.vim
18 *** ../vim-6.3.025/runtime/plugin/gzip.vim Wed Jun 9 14:56:33 2004
19 --- runtime/plugin/gzip.vim Thu Mar 24 10:56:30 2005
22 " Vim plugin for editing compressed files.
23 " Maintainer: Bram Moolenaar <Bram@vim.org>
24 ! " Last Change: 2004 Jan 12
27 " - this plugin was already loaded
29 " Vim plugin for editing compressed files.
30 " Maintainer: Bram Moolenaar <Bram@vim.org>
31 ! " Last Change: 2005 Mar 24
34 " - this plugin was already loaded
37 " don't do anything if the cmd is not supported
39 " Rename the file before compressing it.
40 ! let nm = expand("<afile>")
41 let nmt = s:tempname(nm)
42 if rename(nm, nmt) == 0
43 call system(a:cmd . " " . nmt)
45 " don't do anything if the cmd is not supported
47 " Rename the file before compressing it.
48 ! let nm = resolve(expand("<afile>"))
49 let nmt = s:tempname(nm)
50 if rename(nm, nmt) == 0
51 call system(a:cmd . " " . nmt)
52 *** ../vim-6.3.025/src/version.c Fri Mar 18 19:21:29 2005
53 --- src/version.c Thu Mar 24 10:59:13 2005
57 { /* Add new patch number below this line */
63 Are leaders born or made? And if they're made, can we return them under
65 (Scott Adams - The Dilbert principle)
67 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
68 /// Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
69 \\\ Project leader for A-A-P -- http://www.A-A-P.org ///
70 \\\ Buy LOTR 3 and help AIDS victims -- http://ICCF.nl/lotr.html ///