blob: d4f595f8e42988a82c269e7cecaba33daaa1960d [file] [log] [blame]
Jim Zhou56957ed2025-02-28 18:06:14 +01001*pi_getscript.txt* For Vim version 9.1. Last change: 2025 Feb 28
Bram Moolenaar9964e462007-05-05 17:54:07 +00002>
Bram Moolenaarff034192013-04-24 18:51:19 +02003 GETSCRIPT REFERENCE MANUAL by Charles E. Campbell
Bram Moolenaar9964e462007-05-05 17:54:07 +00004<
GuyBrushc854efc2024-09-26 16:14:08 +02005Original Author: Charles E. Campbell <NcampObell@SdrPchip.AorgM-NOSPAM>
Bram Moolenaar29634562020-01-09 21:46:04 +01006 (remove NOSPAM from the email address)
Bram Moolenaar9964e462007-05-05 17:54:07 +00007 *GetLatestVimScripts-copyright*
Bram Moolenaarff034192013-04-24 18:51:19 +02008Copyright: (c) 2004-2012 by Charles E. Campbell *glvs-copyright*
Bram Moolenaar6be7f872012-01-20 21:08:56 +01009 The VIM LICENSE (see |copyright|) applies to the files in this
10 package, including getscriptPlugin.vim, getscript.vim,
11 GetLatestVimScripts.dist, and pi_getscript.txt, except use "getscript"
Bram Moolenaar8024f932020-01-14 19:29:13 +010012 instead of "Vim". Like anything else that's free, getscript and its
Bram Moolenaar6be7f872012-01-20 21:08:56 +010013 associated files are provided *as is* and comes with no warranty of
14 any kind, either expressed or implied. No guarantees of
15 merchantability. No guarantees of suitability for any purpose. By
16 using this plugin, you agree that in no event will the copyright
17 holder be liable for any damages resulting from the use of this
18 software. Use at your own risk!
Bram Moolenaar9964e462007-05-05 17:54:07 +000019
20Getscript is a plugin that simplifies retrieval of the latest versions of the
21scripts that you yourself use! Typing |:GLVS| will invoke getscript; it will
22then use the <GetLatestVimScripts.dat> (see |GetLatestVimScripts_dat|) file to
GuyBrush609599c2024-09-08 19:54:43 +020023get the latest versions of scripts listed therein from https://www.vim.org/.
Bram Moolenaar9964e462007-05-05 17:54:07 +000024
25==============================================================================
261. Contents *glvs-contents* *glvs* *getscript*
Bram Moolenaar938ae282023-02-20 20:44:55 +000027 *GetLatestVimScripts*
Bram Moolenaar9964e462007-05-05 17:54:07 +000028
29 1. Contents........................................: |glvs-contents|
30 2. GetLatestVimScripts -- Getting Started..........: |glvs-install|
31 3. GetLatestVimScripts Usage.......................: |glvs-usage|
32 4. GetLatestVimScripts Data File...................: |glvs-data|
33 5. GetLatestVimScripts Friendly Plugins............: |glvs-plugins|
34 6. GetLatestVimScripts AutoInstall.................: |glvs-autoinstall|
35 7. GetLatestViMScripts Options.....................: |glvs-options|
36 8. GetLatestVimScripts Algorithm...................: |glvs-alg|
37 9. GetLatestVimScripts History.....................: |glvs-hist|
38
39
40==============================================================================
412. GetLatestVimScripts -- Getting Started *getscript-start*
42 *getlatestvimscripts-install*
43
44 VERSION FROM VIM DISTRIBUTION *glvs-dist-install*
45
46Vim 7.0 does not include the GetLatestVimScripts.dist file which
47serves as an example and a template. So, you'll need to create
48your own! See |GetLatestVimScripts_dat|.
49
50 VERSION FROM VIM SF NET *glvs-install*
51
52NOTE: The last step, that of renaming/moving the GetLatestVimScripts.dist
53file, is for those who have just downloaded GetLatestVimScripts.tar.bz2 for
54the first time.
55
56The GetLatestVimScripts.dist file serves as an example and a template for your
57own personal list. Feel free to remove all the scripts mentioned within it;
58the "important" part of it is the first two lines.
59
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +010060Your computer needs to have wget or curl for GetLatestVimScripts to do its work.
Bram Moolenaar9964e462007-05-05 17:54:07 +000061
GuyBrush609599c2024-09-08 19:54:43 +020062 1. if compressed: gunzip getscript.vmb.gz
Bram Moolenaar9964e462007-05-05 17:54:07 +000063 2. Unix:
GuyBrush609599c2024-09-08 19:54:43 +020064 vim getscript.vmb
Bram Moolenaar9964e462007-05-05 17:54:07 +000065 :so %
66 :q
67 cd ~/.vim/GetLatest
68 mv GetLatestVimScripts.dist GetLatestVimScripts.dat
69 (edit GetLatestVimScripts.dat to install your own personal
70 list of desired plugins -- see |GetLatestVimScripts_dat|)
Bram Moolenaar8024f932020-01-14 19:29:13 +010071
Bram Moolenaar9964e462007-05-05 17:54:07 +000072 3. Windows:
GuyBrush609599c2024-09-08 19:54:43 +020073 vim getscript.vmb
Bram Moolenaar9964e462007-05-05 17:54:07 +000074 :so %
75 :q
76 cd **path-to-vimfiles**/GetLatest
77 mv GetLatestVimScripts.dist GetLatestVimScripts.dat
78 (edit GetLatestVimScripts.dat to install your own personal
79 list of desired plugins -- see |GetLatestVimScripts_dat|)
80
81
82==============================================================================
833. GetLatestVimScripts Usage *glvs-usage* *:GLVS*
84
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +010085Unless it has been defined elsewhere, >
Bram Moolenaar251e1912011-06-19 05:09:16 +020086
Bram Moolenaar9964e462007-05-05 17:54:07 +000087 :GLVS
Bram Moolenaar251e1912011-06-19 05:09:16 +020088
Bram Moolenaar9964e462007-05-05 17:54:07 +000089will invoke GetLatestVimScripts(). If some other plugin has defined that
90command, then you may type
91>
92 :GetLatestVimScripts
93<
94The script will attempt to update and, if permitted, will automatically
95install scripts from http://vim.sourceforge.net/. To do so it will peruse a
96file,
97>
98 .vim/GetLatest/GetLatestVimScripts.dat (unix)
99<
100or >
101 ..wherever..\vimfiles\GetLatest\GetLatestVimScripts.dat (windows)
102(see |glvs-data|), and examine plugins in your [.vim|vimfiles]/plugin
103directory (see |glvs-plugins|).
104
105Scripts which have been downloaded will appear in the
106~/.vim/GetLatest (unix) or ..wherever..\vimfiles\GetLatest (windows)
107subdirectory. GetLatestVimScripts will attempt to automatically
108install them if you have the following line in your <.vimrc>: >
109
110 let g:GetLatestVimScripts_allowautoinstall=1
111
112The <GetLatestVimScripts.dat> file will be automatically be updated to
113reflect the latest version of script(s) so downloaded.
114(also see |glvs-options|)
115
116
117==============================================================================
1184. GetLatestVimScripts Data File *getscript-data* *glvs-data*
Bram Moolenaar938ae282023-02-20 20:44:55 +0000119 *:GetLatestVimScripts_dat*
Bram Moolenaar9964e462007-05-05 17:54:07 +0000120The data file <GetLatestVimScripts.dat> must have for its first two lines
121the following text:
122>
123 ScriptID SourceID Filename
124 --------------------------
125<
126Following those two lines are three columns; the first two are numeric
127followed by a text column. The GetLatest/GetLatestVimScripts.dist file
128contains an example of such a data file. Anything following a #... is
129ignored, so you may embed comments in the file.
130
131The first number on each line gives the script's ScriptID. When you're about
132to use a web browser to look at scripts on http://vim.sf.net/, just before you
133click on the script's link, you'll see a line resembling
134
135 http://vim.sourceforge.net/scripts/script.php?script_id=40
136
137The "40" happens to be a ScriptID that GetLatestVimScripts needs to
Bram Moolenaar251e1912011-06-19 05:09:16 +0200138download the associated page, and is assigned by vim.sf.net itself
139during initial uploading of the plugin.
Bram Moolenaar9964e462007-05-05 17:54:07 +0000140
141The second number on each line gives the script's SourceID. The SourceID
142records the count of uploaded scripts as determined by vim.sf.net; hence it
143serves to indicate "when" a script was uploaded. Setting the SourceID to 1
144insures that GetLatestVimScripts will assume that the script it has is
145out-of-date.
146
147The SourceID is extracted by GetLatestVimScripts from the script's page on
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +0100148vim.sf.net; whenever it is greater than the one stored in the
Bram Moolenaar9964e462007-05-05 17:54:07 +0000149GetLatestVimScripts.dat file, the script will be downloaded
150(see |GetLatestVimScripts_dat|).
151
152If your script's author has included a special comment line in his/her plugin,
153the plugin itself will be used by GetLatestVimScripts to build your
154<GetLatestVimScripts.dat> file, including any dependencies on other scripts it
155may have. As an example, consider: >
156
157 " GetLatestVimScripts: 884 1 :AutoInstall: AutoAlign.vim
158
159This comment line tells getscript.vim to check vimscript #884 and that the
160script is automatically installable. Getscript will also use this line to
161help build the GetLatestVimScripts.dat file, by including a line such as: >
162
Bram Moolenaar251e1912011-06-19 05:09:16 +0200163 884 1 :AutoInstall: AutoAlign.vim
Bram Moolenaar9964e462007-05-05 17:54:07 +0000164<
Bram Moolenaar251e1912011-06-19 05:09:16 +0200165assuming that such a line isn't already in GetLatestVimScripts.dat file.
Bram Moolenaar9964e462007-05-05 17:54:07 +0000166See |glvs-plugins| for more. Thus, GetLatestVimScripts thus provides a
167comprehensive ability to keep your plugins up-to-date!
168
Bram Moolenaar251e1912011-06-19 05:09:16 +0200169In summary:
170
171 * Optionally tell getscript that it is allowed to build/append a
172 GetLatestVimScripts.dat file based upon already installed plugins: >
173 let g:GetLatestVimScripts_allowautoinstall=1
174<
175 * A line such as >
176 " GetLatestVimScripts: 884 1 :AutoInstall: AutoAlign.vim
177< in an already-downloaded plugin constitutes the concurrence of the
178 plugin author that getscript may do AutoInstall. Not all plugins
179 may be AutoInstall-able, and the plugin's author is best situated
180 to know whether or not his/her plugin will AutoInstall properly.
181
182 * A line such as >
183 884 1 :AutoInstall: AutoAlign.vim
184< in your GetLatestVimScripts.dat file constitutes your permission
185 to getscript to do AutoInstall. AutoInstall requires both your
186 and the plugin author's permission. See |GetLatestVimScripts_dat|.
187
188
Bram Moolenaar9964e462007-05-05 17:54:07 +0000189 *GetLatestVimScripts_dat*
190As an example of a <GetLatestVimScripts.dat> file:
191>
192 ScriptID SourceID Filename
193 --------------------------
Bram Moolenaar251e1912011-06-19 05:09:16 +0200194 294 1 :AutoInstall: Align.vim
195 120 2 Decho.vim
Bram Moolenaar9964e462007-05-05 17:54:07 +0000196 40 3 DrawIt.tar.gz
197 451 4 EasyAccents.vim
198 195 5 engspchk.vim
199 642 6 GetLatestVimScripts.vim
200 489 7 Manpageview.vim
201<
202Note: the first two lines are required, but essentially act as comments.
203
204
205==============================================================================
2065. GetLatestVimScripts Friendly Plugins *getscript-plugins* *glvs-plugins*
207
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +0100208 (this section is for plugin authors)~
209
Bram Moolenaar9964e462007-05-05 17:54:07 +0000210If a plugin author includes the following comment anywhere in their plugin,
211GetLatestVimScripts will find it and use it to automatically build the user's
212GetLatestVimScripts.dat files:
213>
214 src_id
215 v
216 " GetLatestVimScripts: ### ### yourscriptname
217 ^
218 scriptid
219<
220As an author, you should include such a line in to refer to your own script
221plus any additional lines describing any plugin dependencies it may have.
222Same format, of course!
223
224If your command is auto-installable (see |glvs-autoinstall|), and most scripts
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +0100225are, then you may include :AutoInstall: just before "yourscriptname":
226>
227 src_id
228 v
229 " GetLatestVimScripts: ### ### :AutoInstall: yourscriptname
230 ^
231 scriptid
232<
Bram Moolenaar251e1912011-06-19 05:09:16 +0200233NOTE: The :AutoInstall: feature requires both the plugin author's and~
234 the user's permission to operate!~
Bram Moolenaar9964e462007-05-05 17:54:07 +0000235
236GetLatestVimScripts commands for those scripts are then appended, if not
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +0100237already present, to the user's GetLatest/GetLatestVimScripts.dat file. It is
238a relatively painless way to automate the acquisition of any scripts your
Bram Moolenaar9964e462007-05-05 17:54:07 +0000239plugins depend upon.
240
241Now, as an author, you probably don't want GetLatestVimScripts to download
Bram Moolenaar251e1912011-06-19 05:09:16 +0200242your own scripts atop your own copy, thereby overwriting your not-yet-released
Bram Moolenaar9964e462007-05-05 17:54:07 +0000243hard work. GetLatestVimScripts provides a solution for this: put
244>
245 0 0 yourscriptname
246<
247into your <GetLatestVimScripts.dat> file and GetLatestVimScripts will skip
248examining the "yourscriptname" scripts for those GetLatestVimScripts comment
249lines. As a result, those lines won't be inadvertently installed into your
250<GetLatestVimScripts.dat> file and subsequently used to download your own
251scripts. This is especially important to do if you've included the
252:AutoInstall: option.
253
254Be certain to use the same "yourscriptname" in the "0 0 yourscriptname" line
255as you've used in your GetLatestVimScripts comment!
256
257
258==============================================================================
2596. GetLatestVimScripts AutoInstall *getscript-autoinstall*
260 *glvs-autoinstall*
261
262GetLatestVimScripts now supports "AutoInstall". Not all scripts are
263supportive of auto-install, as they may have special things you need to do to
264install them (please refer to the script's "install" directions). On the
265other hand, most scripts will be auto-installable.
266
267To let GetLatestVimScripts do an autoinstall, the data file's comment field
268should begin with (surrounding blanks are ignored): >
269
270 :AutoInstall:
271<
272Both colons are needed, and it should begin the comment (yourscriptname)
273field.
274
275One may prevent any autoinstalling by putting the following line in your
276<.vimrc>: >
277
278 let g:GetLatestVimScripts_allowautoinstall= 0
279<
280With :AutoInstall: enabled, as it is by default, files which end with
281
282 ---.tar.bz2 : decompressed & untarred in .vim/ directory
283 ---.vba.bz2 : decompressed in .vim/ directory, then vimball handles it
h-east738ebfe2024-10-05 16:56:47 +0200284 ---.vmb.bz2 : idem
Bram Moolenaar9964e462007-05-05 17:54:07 +0000285 ---.vim.bz2 : decompressed & moved into .vim/plugin directory
286 ---.tar.gz : decompressed & untarred in .vim/ directory
287 ---.vba.gz : decompressed in .vim/ directory, then vimball handles it
h-east738ebfe2024-10-05 16:56:47 +0200288 ---.vmb.gz : idem
Bram Moolenaar9964e462007-05-05 17:54:07 +0000289 ---.vim.gz : decompressed & moved into .vim/plugin directory
GuyBrush609599c2024-09-08 19:54:43 +0200290 ---.vba : moved to .vim/ directory, then vimball handles it
h-east738ebfe2024-10-05 16:56:47 +0200291 ---.vmb : idem
Bram Moolenaar9964e462007-05-05 17:54:07 +0000292 ---.vim : moved to .vim/plugin directory
293 ---.zip : unzipped in .vim/ directory
294
295and which merely need to have their components placed by the untar/gunzip or
296move-to-plugin-directory process should be auto-installable. Vimballs, of
297course, should always be auto-installable.
298
299When is a script not auto-installable? Let me give an example:
300
301 .vim/after/syntax/blockhl.vim
302
303The <blockhl.vim> script provides block highlighting for C/C++ programs; it is
304available at:
305
GuyBrush609599c2024-09-08 19:54:43 +0200306 https://www.vim.org/scripts/script.php?script_id=104
Bram Moolenaar9964e462007-05-05 17:54:07 +0000307
308Currently, vim's after/syntax only supports by-filetype scripts (in
309blockhl.vim's case, that's after/syntax/c.vim). Hence, auto-install would
310possibly overwrite the current user's after/syntax/c.vim file.
311
312In my own case, I use <aftersyntax.vim> (renamed to after/syntax/c.vim) to
313allow a after/syntax/c/ directory:
314
GuyBrush609599c2024-09-08 19:54:43 +0200315 https://www.vim.org/scripts/script.php?script_id=1023
Bram Moolenaar9964e462007-05-05 17:54:07 +0000316
317The script allows multiple syntax files to exist separately in the
318after/syntax/c subdirectory. I can't bundle aftersyntax.vim in and build an
319appropriate tarball for auto-install because of the potential for the
320after/syntax/c.vim contained in it to overwrite a user's c.vim.
321
322
323==============================================================================
3247. GetLatestVimScripts Options *glvs-options*
325>
326 g:GetLatestVimScripts_wget
327< default= "wget"
328 This variable holds the name of the command for obtaining
329 scripts.
330>
331 g:GetLatestVimScripts_options
332< default= "-q -O"
333 This variable holds the options to be used with the
334 g:GetLatestVimScripts_wget command.
335>
Bram Moolenaar938ae282023-02-20 20:44:55 +0000336 g:GetLatestVimScripts_allowautoinstall
Bram Moolenaar9964e462007-05-05 17:54:07 +0000337< default= 1
338 This variable indicates whether GetLatestVimScripts is allowed
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +0100339 to attempt to automatically install scripts. Furthermore, the
340 plugin author has to have explicitly indicated that his/her
341 plugin is automatically installable (via the :AutoInstall:
342 keyword in the GetLatestVimScripts comment line).
343>
344 g:GetLatestVimScripts_autoinstalldir
345< default= $HOME/.vim (linux)
346 default= $HOME/vimfiles (windows)
347 Override where :AutoInstall: scripts will be installed.
348 Doesn't override vimball installation.
Bram Moolenaarff034192013-04-24 18:51:19 +0200349>
350 g:GetLatestVimScripts_scriptaddr
GuyBrush609599c2024-09-08 19:54:43 +0200351< default='https://www.vim.org/scripts/script.php?script_id='
Bram Moolenaarff034192013-04-24 18:51:19 +0200352 Override this if your system needs
GuyBrush609599c2024-09-08 19:54:43 +0200353 ... ='http://vim.sourceforge.net/script.php?script_id='
354>
355 g:GetLatestVimScripts_downloadaddr
356< default='https://www.vim.org/scripts/download_script.php?src_id='
357 Override this if your system needs
358 ... ='http://vim.sourceforge.net/scripts/download_script.php?src_id='
359>
GuyBrushc854efc2024-09-26 16:14:08 +0200360 g:GetLatestVimScripts_bunzip2
361< default= bunzip2
362 This variable holds the name of the command to decompress .bz2
363 files
364>
Jim Zhou56957ed2025-02-28 18:06:14 +0100365 g:GetLatestVimScripts_bunzip3
366< default= bunzip3
367 This variable holds the name of the command to decompress .bz3
368 files
369>
GuyBrushc854efc2024-09-26 16:14:08 +0200370 g:GetLatestVimScripts_gunzip
371< default= gunzip
372 This variable holds the name of the command to decompress .gz
373 files
374>
375 g:GetLatestVimScripts_unxz
376< default= unxz
377 This variable holds the name of the command to decompress .xz
378 files
379>
380 g:GetLatestVimScripts_unzip
381< default= unzip
382 This variable holds the name of the command to decompress .zip
383 files
384
385Note: The variables associated with decompression commands help workaround
386 crossplatform issues. For example, on Windows is possible to delegate this
387 calls into `wsl` by doing: >
388
389 let g:GetLatestVimScripts_bunzip2= "wsl -e bunzip2"
390 let g:GetLatestVimScripts_gunzip= "wsl -e gunzip"
391 let g:GetLatestVimScripts_unxz= "wsl -e unxz"
392 let g:GetLatestVimScripts_unzip= "wsl -e unzip"
393<
Bram Moolenaar9964e462007-05-05 17:54:07 +0000394==============================================================================
3958. GetLatestVimScripts Algorithm *glvs-algorithm* *glvs-alg*
396
397The Vim sourceforge page dynamically creates a page by keying off of the
398so-called script-id. Within the webpage of
399
GuyBrush609599c2024-09-08 19:54:43 +0200400 https://www.vim.org/scripts/script.php?script_id=40
Bram Moolenaar9964e462007-05-05 17:54:07 +0000401
402is a line specifying the latest source-id (src_id). The source identifier
403numbers are always increasing, hence if the src_id is greater than the one
Bram Moolenaar7263a772007-05-10 17:35:54 +0000404recorded for the script in GetLatestVimScripts then it's time to download a
Bram Moolenaar9964e462007-05-05 17:54:07 +0000405newer copy of that script.
406
407GetLatestVimScripts will then download the script and update its internal
408database of script ids, source ids, and scriptnames.
409
410The AutoInstall process will:
411
412 Move the file from GetLatest/ to the following directory
413 Unix : $HOME/.vim
414 Windows: $HOME\vimfiles
415 if the downloaded file ends with ".bz2"
416 bunzip2 it
Jim Zhou56957ed2025-02-28 18:06:14 +0100417 else if the downloaded file ends with ".bz3"
418 bunzip3 it
Bram Moolenaar9964e462007-05-05 17:54:07 +0000419 else if the downloaded file ends with ".gz"
420 gunzip it
421 if the resulting file ends with ".zip"
422 unzip it
423 else if the resulting file ends with ".tar"
424 tar -oxvf it
425 else if the resulting file ends with ".vim"
426 move it to the plugin subdirectory
427
428
429==============================================================================
4309. GetLatestVimScripts History *getscript-history* *glvs-hist* {{{1
431
Jim Zhou56957ed2025-02-28 18:06:14 +0100432v38 Feb 25, 2025 : * handles additional decompression option for .bzip3 files.
GuyBrushc854efc2024-09-26 16:14:08 +0200433v37 Sep 23, 2024 : * Support for the new vimball's .vmb extension (old .vba
434 extension conflicted with visual basic).
Aliaksei Budavei7cd6edf2024-09-29 09:50:52 +0200435 * Support for |glvs-autoinstall| in ftplugins and packages.
GuyBrushc854efc2024-09-26 16:14:08 +0200436 * Allow platform driven customization of decompressing
437 commands.
Bram Moolenaar8d043172014-01-23 14:24:41 +0100438v36 Apr 22, 2013 : * (glts) suggested use of plugin/**/*.vim instead of
439 plugin/*.vim in globpath() call.
440 * (Andy Wokula) got warning message when setting
441 g:loaded_getscriptPlugin
Bram Moolenaar8024f932020-01-14 19:29:13 +0100442v35 Apr 07, 2012 : * (MengHuan Yu) pointed out that the script URL has
Bram Moolenaarff034192013-04-24 18:51:19 +0200443 changed (somewhat). However, it doesn't work, and
444 the original one does (under Linux). I'll make it
445 yet-another-option.
446v34 Jun 23, 2011 : * handles additional decompression options for tarballs
Bram Moolenaar6be7f872012-01-20 21:08:56 +0100447 (tgz taz tbz txz)
Bram Moolenaar251e1912011-06-19 05:09:16 +0200448v33 May 31, 2011 : * using fnameescape() instead of escape()
449 * *.xz support
450v32 Jun 19, 2010 : * (Jan Steffens) added support for xz compression
Bram Moolenaarc236c162008-07-13 17:41:49 +0000451v31 Jun 29, 2008 : * (Bill McCarthy) fixed having hls enabled with getscript
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +0100452 * (David Schaefer) the acd option interferes with vimballs
453 Solution: bypass the acd option
Bram Moolenaarc236c162008-07-13 17:41:49 +0000454v30 Jun 13, 2008 : * GLVS now checks for existence of fnameescape() and will
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +0100455 issue an error message if it is not supported
Bram Moolenaar3577c6f2008-06-24 21:16:56 +0000456v29 Jan 07, 2008 : * Bram M pointed out that cpo is a global option and that
457 getscriptPlugin.vim was setting it but not restoring it.
458v28 Jan 02, 2008 : * improved shell quoting character handling, cygwin
459 interface, register-a bypass
460 Oct 29, 2007 * Bill McCarthy suggested a change to getscript that avoids
461 creating pop-up windows
Bram Moolenaar7263a772007-05-10 17:35:54 +0000462v24 Apr 16, 2007 : * removed save&restore of the fo option during script
463 loading
Bram Moolenaar9964e462007-05-05 17:54:07 +0000464v23 Nov 03, 2006 : * ignores comments (#...)
465 * handles vimballs
466v22 Oct 13, 2006 : * supports automatic use of curl if wget is not
467 available
468v21 May 01, 2006 : * now takes advantage of autoloading.
469v20 Dec 23, 2005 : * Eric Haarbauer found&fixed a bug with unzip use;
470 unzip needs the -o flag to overwrite.
471v19 Nov 28, 2005 : * v18's GetLatestVimScript line accessed the wrong
472 script! Fixed.
473v18 Mar 21, 2005 : * bugfix to automatic database construction
474 * bugfix - nowrapscan caused an error
475 (tnx to David Green for the fix)
476 Apr 01, 2005 * if shell is bash, "mv" instead of "ren" used in
477 :AutoInstall:s, even though its o/s is windows
478 Apr 01, 2005 * when downloading errors occurred, GLVS was
479 terminating early. It now just goes on to trying
480 the next script (after trying three times to
481 download a script description page)
482 Apr 20, 2005 * bugfix - when a failure to download occurred,
483 GetLatestVimScripts would stop early and claim that
484 everything was current. Fixed.
485v17 Aug 25, 2004 : * g:GetLatestVimScripts_allowautoinstall, which
486 defaults to 1, can be used to prevent all
487 :AutoInstall:
488v16 Aug 25, 2004 : * made execution of bunzip2/gunzip/tar/zip silent
489 * fixed bug with :AutoInstall: use of helptags
490v15 Aug 24, 2004 : * bugfix: the "0 0 comment" download prevention wasn't
491 always preventing downloads (just usually). Fixed.
492v14 Aug 24, 2004 : * bugfix -- helptags was using dotvim, rather than
493 s:dotvim. Fixed.
494v13 Aug 23, 2004 : * will skip downloading a file if its scriptid or srcid
495 is zero. Useful for script authors; that way their
496 own GetLatestVimScripts activity won't overwrite
497 their scripts.
498v12 Aug 23, 2004 : * bugfix - a "return" got left in the distribution that
499 was intended only for testing. Removed, now works.
500 * :AutoInstall: implemented
501v11 Aug 20, 2004 : * GetLatestVimScripts is now a plugin:
502 * :GetLatestVimScripts command
503 * (runtimepath)/GetLatest/GetLatestVimScripts.dat
504 now holds scripts that need updating
505v10 Apr 19, 2004 : * moved history from script to doc
506v9 Jan 23, 2004 : windows (win32/win16/win95) will use
507 double quotes ("") whereas other systems will use
508 single quotes ('') around the urls in calls via wget
509v8 Dec 01, 2003 : makes three tries at downloading
510v7 Sep 02, 2003 : added error messages if "Click on..." or "src_id="
511 not found in downloaded webpage
512 Uses t_ti, t_te, and rs to make progress visible
513v6 Aug 06, 2003 : final status messages now display summary of work
514 ( "Downloaded someqty scripts" or
515 "Everything was current")
516 Now GetLatestVimScripts is careful about downloading
517 GetLatestVimScripts.vim itself!
518 (goes to <NEW_GetLatestVimScripts.vim>)
519v5 Aug 04, 2003 : missing an endif near bottom
520v4 Jun 17, 2003 : redraw! just before each "considering" message
521v3 May 27, 2003 : Protects downloaded files from errant shell
522 expansions with single quotes: '...'
523v2 May 14, 2003 : extracts name of item to be obtained from the
524 script file. Uses it instead of comment field
525 for output filename; comment is used in the
526 "considering..." line and is now just a comment!
527 * Fixed a bug: a string-of-numbers is not the
528 same as a number, so I added zero to them
529 and they became numbers. Fixes comparison.
530
531==============================================================================
Bram Moolenaar8024f932020-01-14 19:29:13 +0100532vim:tw=78:ts=8:noet:ft=help:fdm=marker