runtime(glvs): update GetLatestVimScripts plugin Commit: https://github.com/vim/vim/commit/609599cc45f871dfda6e75bbacd53cd0ed79d5f1 Author: GuyBrush <miguel.ba...@live.com> Date: Sun Sep 8 19:54:43 2024 +0200
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.ba...@live.com> Signed-off-by: Christian Brabandt <c...@256bit.org> diff --git a/runtime/autoload/getscript.vim b/runtime/autoload/getscript.vim index 1fd4e6302..d61e6992d 100644 --- a/runtime/autoload/getscript.vim +++ b/runtime/autoload/getscript.vim @@ -6,6 +6,9 @@ " Version: 36 " Installing: :help glvs-install " Usage: :help glvs +" Last Change: {{{1 +" 2024 Sep 08 by Vim Project: several small fixes +" }}} " " GetLatestVimScripts: 642 1 :AutoInstall: getscript.vim "redraw!|call inputsave()|call input("Press <cr> to continue")|call inputrestore() @@ -64,7 +67,7 @@ if !exists("g:GetLatestVimScripts_options") if g:GetLatestVimScripts_wget == "wget" let g:GetLatestVimScripts_options= "-q -O" elseif g:GetLatestVimScripts_wget == "curl" - let g:GetLatestVimScripts_options= "-s -O" + let g:GetLatestVimScripts_options= "-s -o" else let g:GetLatestVimScripts_options= "" endif @@ -77,7 +80,11 @@ endif " set up default scriptaddr address if !exists("g:GetLatestVimScripts_scriptaddr") - let g:GetLatestVimScripts_scriptaddr = 'http://vim.sourceforge.net/script.php?script_id=' + let g:GetLatestVimScripts_scriptaddr = 'https://www.vim.org/scripts/script.php?script_id=' +endif + +if !exists("g:GetLatestVimScripts_downloadaddr") + let g:GetLatestVimScripts_downloadaddr = 'https://www.vim.org/scripts/download_script.php?src_id=' endif "" For debugging: @@ -89,11 +96,11 @@ endif let s:autoinstall= "" if g:GetLatestVimScripts_allowautoinstall - if (has("win32") || has("gui_win32") || has("gui_win32s") || has("win16") || has("win64") || has("win32unix") || has("win95")) && &shell != "bash" + if (has("win32") || has("gui_win32") || has("gui_win32s") || has("win16") || has("win64") || has("win32unix") || has("win95")) && &shell !~ ' -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_dev/E1snMCh-0031m9-IQ%40256bit.org.