annotate runtime/plugin/gzip.vim @ 271:8d34af900bae v7.0072

updated for version 7.0072
author vimboss
date Wed, 18 May 2005 22:24:46 +0000
parents 8eec9649b7a2
children 7472c565592a
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 " Vim plugin for editing compressed files.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 " Maintainer: Bram Moolenaar <Bram@vim.org>
271
8d34af900bae updated for version 7.0072
vimboss
parents: 231
diff changeset
3 " Last Change: 2005 May 18
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 " Exit quickly when:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 " - this plugin was already loaded
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 " - when 'compatible' is set
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 " - some autocommands are already taking care of compressed files
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 if exists("loaded_gzip") || &cp || exists("#BufReadPre#*.gz")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 let loaded_gzip = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 augroup gzip
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 " Remove all gzip autocommands
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 au!
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 " Enable editing of gzipped files
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 " set binary mode before reading the file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 " use "gzip -d", gunzip isn't always available
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 autocmd BufReadPre,FileReadPre *.gz,*.bz2,*.Z setlocal bin
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 autocmd BufReadPost,FileReadPost *.gz call s:read("gzip -dn")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 autocmd BufReadPost,FileReadPost *.bz2 call s:read("bzip2 -d")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 autocmd BufReadPost,FileReadPost *.Z call s:read("uncompress")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 autocmd BufWritePost,FileWritePost *.gz call s:write("gzip")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 autocmd BufWritePost,FileWritePost *.bz2 call s:write("bzip2")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 autocmd BufWritePost,FileWritePost *.Z call s:write("compress -f")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 autocmd FileAppendPre *.gz call s:appre("gzip -dn")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 autocmd FileAppendPre *.bz2 call s:appre("bzip2 -d")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 autocmd FileAppendPre *.Z call s:appre("uncompress")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 autocmd FileAppendPost *.gz call s:write("gzip")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 autocmd FileAppendPost *.bz2 call s:write("bzip2")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 autocmd FileAppendPost *.Z call s:write("compress -f")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 augroup END
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 " Function to check that executing "cmd [-f]" works.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 " The result is cached in s:have_"cmd" for speed.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 fun s:check(cmd)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 let name = substitute(a:cmd, '\(\S*\).*', '\1', '')
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 if !exists("s:have_" . name)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 let e = executable(name)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 if e < 0
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 let r = system(name . " --version")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 let e = (r !~ "not found" && r != "")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 exe "let s:have_" . name . "=" . e
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 exe "return s:have_" . name
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 endfun
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50
271
8d34af900bae updated for version 7.0072
vimboss
parents: 231
diff changeset
51 " Set b:gzip_comp_arg to the gzip argument to be used for compression, based on
8d34af900bae updated for version 7.0072
vimboss
parents: 231
diff changeset
52 " the flags in the compressed file.
8d34af900bae updated for version 7.0072
vimboss
parents: 231
diff changeset
53 " The only compression methods that can be detected are max speed (-1) and max
8d34af900bae updated for version 7.0072
vimboss
parents: 231
diff changeset
54 " compression (-9).
8d34af900bae updated for version 7.0072
vimboss
parents: 231
diff changeset
55 fun s:set_compression(line)
8d34af900bae updated for version 7.0072
vimboss
parents: 231
diff changeset
56 " get the Compression Method
8d34af900bae updated for version 7.0072
vimboss
parents: 231
diff changeset
57 let l:cm = char2nr(a:line[2])
8d34af900bae updated for version 7.0072
vimboss
parents: 231
diff changeset
58 " if it's 8 (DEFLATE), we can check for the compression level
8d34af900bae updated for version 7.0072
vimboss
parents: 231
diff changeset
59 if l:cm == 8
8d34af900bae updated for version 7.0072
vimboss
parents: 231
diff changeset
60 " get the eXtra FLags
8d34af900bae updated for version 7.0072
vimboss
parents: 231
diff changeset
61 let l:xfl = char2nr(a:line[8])
8d34af900bae updated for version 7.0072
vimboss
parents: 231
diff changeset
62 " max compression
8d34af900bae updated for version 7.0072
vimboss
parents: 231
diff changeset
63 if l:xfl == 2
8d34af900bae updated for version 7.0072
vimboss
parents: 231
diff changeset
64 let b:gzip_comp_arg = "-9"
8d34af900bae updated for version 7.0072
vimboss
parents: 231
diff changeset
65 " min compression
8d34af900bae updated for version 7.0072
vimboss
parents: 231
diff changeset
66 elseif l:xfl == 4
8d34af900bae updated for version 7.0072
vimboss
parents: 231
diff changeset
67 let b:gzip_comp_arg = "-1"
8d34af900bae updated for version 7.0072
vimboss
parents: 231
diff changeset
68 endif
8d34af900bae updated for version 7.0072
vimboss
parents: 231
diff changeset
69 endif
8d34af900bae updated for version 7.0072
vimboss
parents: 231
diff changeset
70 endfun
8d34af900bae updated for version 7.0072
vimboss
parents: 231
diff changeset
71
8d34af900bae updated for version 7.0072
vimboss
parents: 231
diff changeset
72
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73 " After reading compressed file: Uncompress text in buffer with "cmd"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74 fun s:read(cmd)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75 " don't do anything if the cmd is not supported
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76 if !s:check(a:cmd)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77 return
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78 endif
271
8d34af900bae updated for version 7.0072
vimboss
parents: 231
diff changeset
79
8d34af900bae updated for version 7.0072
vimboss
parents: 231
diff changeset
80 " for gzip check current compression level and set b:gzip_comp_arg.
8d34af900bae updated for version 7.0072
vimboss
parents: 231
diff changeset
81 silent! unlet b:gzip_comp_arg
8d34af900bae updated for version 7.0072
vimboss
parents: 231
diff changeset
82 if a:cmd[0] == 'g'
8d34af900bae updated for version 7.0072
vimboss
parents: 231
diff changeset
83 call s:set_compression(getline(1))
8d34af900bae updated for version 7.0072
vimboss
parents: 231
diff changeset
84 endif
8d34af900bae updated for version 7.0072
vimboss
parents: 231
diff changeset
85
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
86 " make 'patchmode' empty, we don't want a copy of the written file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
87 let pm_save = &pm
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
88 set pm=
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
89 " remove 'a' and 'A' from 'cpo' to avoid the alternate file changes
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
90 let cpo_save = &cpo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
91 set cpo-=a cpo-=A
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
92 " set 'modifiable'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
93 let ma_save = &ma
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
94 setlocal ma
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
95 " when filtering the whole buffer, it will become empty
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
96 let empty = line("'[") == 1 && line("']") == line("$")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
97 let tmp = tempname()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
98 let tmpe = tmp . "." . expand("<afile>:e")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
99 " write the just read lines to a temp file "'[,']w tmp.gz"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
100 execute "silent '[,']w " . tmpe
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
101 " uncompress the temp file: call system("gzip -dn tmp.gz")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
102 call system(a:cmd . " " . tmpe)
22
cc049b00ee70 updated for version 7.0014
vimboss
parents: 7
diff changeset
103 if !filereadable(tmp)
cc049b00ee70 updated for version 7.0014
vimboss
parents: 7
diff changeset
104 " uncompress didn't work! Keep the compressed file then.
cc049b00ee70 updated for version 7.0014
vimboss
parents: 7
diff changeset
105 echoerr "Error: Could not read uncompressed file"
cc049b00ee70 updated for version 7.0014
vimboss
parents: 7
diff changeset
106 return
cc049b00ee70 updated for version 7.0014
vimboss
parents: 7
diff changeset
107 endif
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
108 " delete the compressed lines; remember the line number
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
109 let l = line("'[") - 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
110 if exists(":lockmarks")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
111 lockmarks '[,']d _
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
112 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
113 '[,']d _
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
114 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
115 " read in the uncompressed lines "'[-1r tmp"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
116 setlocal nobin
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
117 if exists(":lockmarks")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
118 execute "silent lockmarks " . l . "r " . tmp
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
119 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
120 execute "silent " . l . "r " . tmp
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
121 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
122
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
123 " if buffer became empty, delete trailing blank line
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
124 if empty
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
125 silent $delete _
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
126 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
127 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
128 " delete the temp file and the used buffers
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
129 call delete(tmp)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
130 silent! exe "bwipe " . tmp
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
131 silent! exe "bwipe " . tmpe
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
132 let &pm = pm_save
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
133 let &cpo = cpo_save
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
134 let &l:ma = ma_save
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
135 " When uncompressed the whole buffer, do autocommands
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
136 if empty
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
137 if &verbose >= 8
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
138 execute "doau BufReadPost " . expand("%:r")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
139 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
140 execute "silent! doau BufReadPost " . expand("%:r")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
141 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
142 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
143 endfun
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
144
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
145 " After writing compressed file: Compress written file with "cmd"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
146 fun s:write(cmd)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
147 " don't do anything if the cmd is not supported
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
148 if s:check(a:cmd)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
149 " Rename the file before compressing it.
231
8eec9649b7a2 updated for version 7.0064
vimboss
parents: 22
diff changeset
150 let nm = resolve(expand("<afile>"))
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
151 let nmt = s:tempname(nm)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
152 if rename(nm, nmt) == 0
271
8d34af900bae updated for version 7.0072
vimboss
parents: 231
diff changeset
153 if exists("b:gzip_comp_arg")
8d34af900bae updated for version 7.0072
vimboss
parents: 231
diff changeset
154 call system(a:cmd . " " . b:gzip_comp_arg . " " . nmt)
8d34af900bae updated for version 7.0072
vimboss
parents: 231
diff changeset
155 else
8d34af900bae updated for version 7.0072
vimboss
parents: 231
diff changeset
156 call system(a:cmd . " " . nmt)
8d34af900bae updated for version 7.0072
vimboss
parents: 231
diff changeset
157 endif
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
158 call rename(nmt . "." . expand("<afile>:e"), nm)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
159 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
160 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
161 endfun
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
162
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
163 " Before appending to compressed file: Uncompress file with "cmd"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
164 fun s:appre(cmd)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
165 " don't do anything if the cmd is not supported
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
166 if s:check(a:cmd)
271
8d34af900bae updated for version 7.0072
vimboss
parents: 231
diff changeset
167 let nm = expand("<afile>")
8d34af900bae updated for version 7.0072
vimboss
parents: 231
diff changeset
168
8d34af900bae updated for version 7.0072
vimboss
parents: 231
diff changeset
169 " for gzip check current compression level and set b:gzip_comp_arg.
8d34af900bae updated for version 7.0072
vimboss
parents: 231
diff changeset
170 silent! unlet b:gzip_comp_arg
8d34af900bae updated for version 7.0072
vimboss
parents: 231
diff changeset
171 if a:cmd[0] == 'g'
8d34af900bae updated for version 7.0072
vimboss
parents: 231
diff changeset
172 call s:set_compression(readfile(nm, "b", 1)[0])
8d34af900bae updated for version 7.0072
vimboss
parents: 231
diff changeset
173 endif
8d34af900bae updated for version 7.0072
vimboss
parents: 231
diff changeset
174
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
175 " Rename to a weird name to avoid the risk of overwriting another file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
176 let nmt = expand("<afile>:p:h") . "/X~=@l9q5"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
177 let nmte = nmt . "." . expand("<afile>:e")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
178 if rename(nm, nmte) == 0
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
179 if &patchmode != "" && getfsize(nm . &patchmode) == -1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
180 " Create patchmode file by creating the decompressed file new
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
181 call system(a:cmd . " -c " . nmte . " > " . nmt)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
182 call rename(nmte, nm . &patchmode)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
183 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
184 call system(a:cmd . " " . nmte)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
185 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
186 call rename(nmt, nm)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
187 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
188 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
189 endfun
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
190
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
191 " find a file name for the file to be compressed. Use "name" without an
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
192 " extension if possible. Otherwise use a weird name to avoid overwriting an
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
193 " existing file.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
194 fun s:tempname(name)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
195 let fn = fnamemodify(a:name, ":r")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
196 if !filereadable(fn) && !isdirectory(fn)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
197 return fn
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
198 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
199 return fnamemodify(a:name, ":p:h") . "/X~=@l9q5"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
200 endfun
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
201
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
202 " vim: set sw=2 :