runtime(glvs): update GetLatestVimScripts plugin
GetLatestVimScripts builtin plugin required several fixes:
* Support for the new vimbal `.vmb` extension introduced in
[patch 9.0.1797](https://github.com/vim/vim/commit/f97f6bbf56408c0c97b4ddbe81fba858d7455b0d):
Vimball/Visual Basic filetype detection conflict
* Update the urls from the old `sourceforge.net` to `vim.org`.
The download url was hardcoded and a new variable is introduced.
* Fix `curl` command line option to set a filename (`-O` uses the remote
filename and `-o` specifies a filename).
* Replace windows' command to move files. `REN` can only rename files and
the script actually moves them. My educated guess was that originally
only renaming was necessary. When the script was modified to move
files no change was required on linux because `mv` does both.
* Fix Autoinstall support to check `ftplugins` and `pack-plugins` too
(`pack-plugins` did not exist when the plugin was created).
closes: #15640
Signed-off-by: GuyBrush <miguel.barro@live.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
diff --git a/runtime/doc/pi_getscript.txt b/runtime/doc/pi_getscript.txt
index e86932c..7d17811 100644
--- a/runtime/doc/pi_getscript.txt
+++ b/runtime/doc/pi_getscript.txt
@@ -1,4 +1,4 @@
-*pi_getscript.txt* For Vim version 9.1. Last change: 2017 Aug 01
+*pi_getscript.txt* For Vim version 9.1. Last change: 2024 Sep 08
>
GETSCRIPT REFERENCE MANUAL by Charles E. Campbell
<
@@ -20,7 +20,7 @@
Getscript is a plugin that simplifies retrieval of the latest versions of the
scripts that you yourself use! Typing |:GLVS| will invoke getscript; it will
then use the <GetLatestVimScripts.dat> (see |GetLatestVimScripts_dat|) file to
-get the latest versions of scripts listed therein from http://vim.sf.net/.
+get the latest versions of scripts listed therein from https://www.vim.org/.
==============================================================================
1. Contents *glvs-contents* *glvs* *getscript*
@@ -59,9 +59,9 @@
Your computer needs to have wget or curl for GetLatestVimScripts to do its work.
- 1. if compressed: gunzip getscript.vba.gz
+ 1. if compressed: gunzip getscript.vmb.gz
2. Unix:
- vim getscript.vba
+ vim getscript.vmb
:so %
:q
cd ~/.vim/GetLatest
@@ -70,7 +70,7 @@
list of desired plugins -- see |GetLatestVimScripts_dat|)
3. Windows:
- vim getscript.vba
+ vim getscript.vmb
:so %
:q
cd **path-to-vimfiles**/GetLatest
@@ -281,11 +281,14 @@
---.tar.bz2 : decompressed & untarred in .vim/ directory
---.vba.bz2 : decompressed in .vim/ directory, then vimball handles it
+ ---.vmb.bz2 : decompressed in .vim/ directory, then vimball handles it
---.vim.bz2 : decompressed & moved into .vim/plugin directory
---.tar.gz : decompressed & untarred in .vim/ directory
---.vba.gz : decompressed in .vim/ directory, then vimball handles it
+ ---.vmb.gz : decompressed in .vim/ directory, then vimball handles it
---.vim.gz : decompressed & moved into .vim/plugin directory
- ---.vba : unzipped in .vim/ directory
+ ---.vba : moved to .vim/ directory, then vimball handles it
+ ---.vmb : moved to .vim/ directory, then vimball handles it
---.vim : moved to .vim/plugin directory
---.zip : unzipped in .vim/ directory
@@ -300,7 +303,7 @@
The <blockhl.vim> script provides block highlighting for C/C++ programs; it is
available at:
- http://vim.sourceforge.net/scripts/script.php?script_id=104
+ https://www.vim.org/scripts/script.php?script_id=104
Currently, vim's after/syntax only supports by-filetype scripts (in
blockhl.vim's case, that's after/syntax/c.vim). Hence, auto-install would
@@ -309,7 +312,7 @@
In my own case, I use <aftersyntax.vim> (renamed to after/syntax/c.vim) to
allow a after/syntax/c/ directory:
- http://vim.sourceforge.net/scripts/script.php?script_id=1023
+ https://www.vim.org/scripts/script.php?script_id=1023
The script allows multiple syntax files to exist separately in the
after/syntax/c subdirectory. I can't bundle aftersyntax.vim in and build an
@@ -345,17 +348,22 @@
Doesn't override vimball installation.
>
g:GetLatestVimScripts_scriptaddr
-< default='http://vim.sourceforge.net/script.php?script_id='
+< default='https://www.vim.org/scripts/script.php?script_id='
Override this if your system needs
- ... ='http://vim.sourceforge.net/script/script.php?script_id='
-
+ ... ='http://vim.sourceforge.net/script.php?script_id='
+>
+ g:GetLatestVimScripts_downloadaddr
+< default='https://www.vim.org/scripts/download_script.php?src_id='
+ Override this if your system needs
+ ... ='http://vim.sourceforge.net/scripts/download_script.php?src_id='
+>
==============================================================================
8. GetLatestVimScripts Algorithm *glvs-algorithm* *glvs-alg*
The Vim sourceforge page dynamically creates a page by keying off of the
so-called script-id. Within the webpage of
- http://vim.sourceforge.net/scripts/script.php?script_id=40
+ https://www.vim.org/scripts/script.php?script_id=40
is a line specifying the latest source-id (src_id). The source identifier
numbers are always increasing, hence if the src_id is greater than the one