Skip to content

Commit 5f484c8

Browse files
committed
Update pi_getscript.{txt,jax}
1 parent 0d20960 commit 5f484c8

File tree

2 files changed

+41
-24
lines changed

2 files changed

+41
-24
lines changed

doc/pi_getscript.jax

Lines changed: 21 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*pi_getscript.txt* For Vim バージョン 9.1. Last change: 2017 Aug 01
1+
*pi_getscript.txt* For Vim バージョン 9.1. Last change: 2024 Sep 08
22
>
33
GETSCRIPT REFERENCE MANUAL by Charles E. Campbell
44
<
@@ -20,7 +20,7 @@ Copyright: (c) 2004-2012 by Charles E. Campbell *glvs-copyright*
2020
Getscript はあなたが使っている Vim script の最新バージョンを簡単に検索するため
2121
のプラグインです。|:GLVS| と入力すると getscript が実行されます。すると、
2222
<GetLatestVimScripts.dat> ファイル (|GetLatestVimScripts_dat|参照) に列挙され
23-
たスクリプトの最新バージョンが http://vim.sf.net/ から取得されます。
23+
たスクリプトの最新バージョンが https://www.vim.org/ から取得されます。
2424

2525
==============================================================================
2626
1. 目次 *glvs-contents* *glvs* *getscript*
@@ -57,9 +57,9 @@ GetLatestVimScripts.dist は自分の一覧を作成するためのサンプル
5757

5858
GetLatestVimScripts の動作には wget か curl が必要です。
5959

60-
1. ファイルが圧縮されている場合: gunzip getscript.vba.gz
60+
1. ファイルが圧縮されている場合: gunzip getscript.vmb.gz
6161
2. Unix:
62-
vim getscript.vba
62+
vim getscript.vmb
6363
:so %
6464
:q
6565
cd ~/.vim/GetLatest
@@ -68,7 +68,7 @@ GetLatestVimScripts の動作には wget か curl が必要です。
6868
インの一覧を書いてください。|GetLatestVimScripts_dat| 参照)
6969

7070
3. Windows:
71-
vim getscript.vba
71+
vim getscript.vmb
7272
:so %
7373
:q
7474
cd **path-to-vimfiles**/GetLatest
@@ -272,12 +272,15 @@ GetLatestVimScripts には自動インストール機能があります。スク
272272

273273
---.tar.bz2 : 伸長して .vim/ ディレクトリに展開
274274
---.vba.bz2 : 伸長して .vim/ ディレクトリにコピー、vimball で処理
275+
---.vmb.bz2 : 伸長して .vim/ ディレクトリにコピー、vimball で処理
275276
---.vim.bz2 : 伸長して .vim/plugin ディレクトリにコピー
276277
---.tar.gz : 伸長して .vim/ 展開
277278
---.vba.gz : 伸長して .vim/ ディレクトリにコピー、vimball で処理
279+
---.vmb.gz : 伸長して .vim/ ディレクトリにコピー、vimball で処理
278280
---.vim.gz : 伸長して .vim/plugin ディレクトリにコピー
279-
---.vba : .vim/ ディレクトリに展開
280-
---.vim : .vim/plugin にコピー
281+
---.vba : .vim/ ディレクトリにコピー、vimball で処理
282+
---.vmb : .vim/ ディレクトリにコピー、vimball で処理
283+
---.vim : .vim/plugin ディレクトリにコピー
281284
---.zip : .vim/ ディレクトリに展開
282285

283286
ただし、圧縮ファイルを展開するか、あるいはファイルをプラグインディレクトリにコ
@@ -291,7 +294,7 @@ GetLatestVimScripts には自動インストール機能があります。スク
291294
<blockhl.vim> は C/C++ のブロックを強調表示するスクリプトです。次の場所から入
292295
手できます:
293296

294-
http://vim.sourceforge.net/scripts/script.php?script_id=104
297+
https://www.vim.org/scripts/script.php?script_id=104
295298

296299
現在、Vim の after/syntax はファイルタイプと同じ名前のスクリプトしかサポートし
297300
てません (blockhl.vim の場合は、after/syntax/c.vim)。そのため、自動的にインス
@@ -300,7 +303,7 @@ GetLatestVimScripts には自動インストール機能があります。スク
300303
私は個人的に、<aftersyntax.vim> を after/syntax/c.vim にコピーして、
301304
after/syntax/c/ ディレクトリを使えるようにしています:
302305

303-
http://vim.sourceforge.net/scripts/script.php?script_id=1023
306+
https://www.vim.org/scripts/script.php?script_id=1023
304307

305308
このスクリプトを使うと、after/syntax/c ディレクトリにある複数のファイルをシン
306309
タックスファイルとして使えます。ユーザーの after/syntax/c.vim を上書きしてしま
@@ -334,16 +337,22 @@ after/syntax/c/ ディレクトリを使えるようにしています:
334337
vimball のインストールには適用されません。
335338
>
336339
g:GetLatestVimScripts_scriptaddr
337-
< 初期設定='http://vim.sourceforge.net/script.php?script_id='
340+
< 初期設定='https://www.vim.org/scripts/script.php?script_id='
338341
あなたのシステムで設定が必要な場合に上書きしてください。
339-
... ='http://vim.sourceforge.net/script/script.php?script_id='
342+
... ='http://vim.sourceforge.net/script.php?script_id='
343+
>
344+
g:GetLatestVimScripts_downloadaddr
345+
< 初期設定='https://www.vim.org/scripts/download_script.php?src_id='
346+
あなたのシステムで設定が必要な場合に上書きしてください。
347+
... ='http://vim.sourceforge.net/scripts/download_script.php?src_id='
348+
>
340349
341350
==============================================================================
342351
8. GetLatestVimScripts アルゴリズム *glvs-algorithm* *glvs-alg*
343352

344353
Vim の Web サイトでは、スクリプトID を利用してページを動的に生成しています。
345354

346-
http://vim.sourceforge.net/scripts/script.php?script_id=40
355+
https://www.vim.org/scripts/script.php?script_id=40
347356

348357
ページ内には最新の ソースID が書かれています。ソースID の番号は再利用されない
349358
ので、その番号が、GetLatestVimScripts.dat に記録された番号より大きい場合は、新

en/pi_getscript.txt

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*pi_getscript.txt* For Vim version 9.1. Last change: 2017 Aug 01
1+
*pi_getscript.txt* For Vim version 9.1. Last change: 2024 Sep 08
22
>
33
GETSCRIPT REFERENCE MANUAL by Charles E. Campbell
44
<
@@ -20,7 +20,7 @@ Copyright: (c) 2004-2012 by Charles E. Campbell *glvs-copyright*
2020
Getscript is a plugin that simplifies retrieval of the latest versions of the
2121
scripts that you yourself use! Typing |:GLVS| will invoke getscript; it will
2222
then use the <GetLatestVimScripts.dat> (see |GetLatestVimScripts_dat|) file to
23-
get the latest versions of scripts listed therein from http://vim.sf.net/.
23+
get the latest versions of scripts listed therein from https://www.vim.org/.
2424

2525
==============================================================================
2626
1. Contents *glvs-contents* *glvs* *getscript*
@@ -59,9 +59,9 @@ the "important" part of it is the first two lines.
5959

6060
Your computer needs to have wget or curl for GetLatestVimScripts to do its work.
6161

62-
1. if compressed: gunzip getscript.vba.gz
62+
1. if compressed: gunzip getscript.vmb.gz
6363
2. Unix:
64-
vim getscript.vba
64+
vim getscript.vmb
6565
:so %
6666
:q
6767
cd ~/.vim/GetLatest
@@ -70,7 +70,7 @@ Your computer needs to have wget or curl for GetLatestVimScripts to do its work.
7070
list of desired plugins -- see |GetLatestVimScripts_dat|)
7171

7272
3. Windows:
73-
vim getscript.vba
73+
vim getscript.vmb
7474
:so %
7575
:q
7676
cd **path-to-vimfiles**/GetLatest
@@ -281,11 +281,14 @@ With :AutoInstall: enabled, as it is by default, files which end with
281281

282282
---.tar.bz2 : decompressed & untarred in .vim/ directory
283283
---.vba.bz2 : decompressed in .vim/ directory, then vimball handles it
284+
---.vmb.bz2 : decompressed in .vim/ directory, then vimball handles it
284285
---.vim.bz2 : decompressed & moved into .vim/plugin directory
285286
---.tar.gz : decompressed & untarred in .vim/ directory
286287
---.vba.gz : decompressed in .vim/ directory, then vimball handles it
288+
---.vmb.gz : decompressed in .vim/ directory, then vimball handles it
287289
---.vim.gz : decompressed & moved into .vim/plugin directory
288-
---.vba : unzipped in .vim/ directory
290+
---.vba : moved to .vim/ directory, then vimball handles it
291+
---.vmb : moved to .vim/ directory, then vimball handles it
289292
---.vim : moved to .vim/plugin directory
290293
---.zip : unzipped in .vim/ directory
291294

@@ -300,7 +303,7 @@ When is a script not auto-installable? Let me give an example:
300303
The <blockhl.vim> script provides block highlighting for C/C++ programs; it is
301304
available at:
302305

303-
http://vim.sourceforge.net/scripts/script.php?script_id=104
306+
https://www.vim.org/scripts/script.php?script_id=104
304307

305308
Currently, vim's after/syntax only supports by-filetype scripts (in
306309
blockhl.vim's case, that's after/syntax/c.vim). Hence, auto-install would
@@ -309,7 +312,7 @@ possibly overwrite the current user's after/syntax/c.vim file.
309312
In my own case, I use <aftersyntax.vim> (renamed to after/syntax/c.vim) to
310313
allow a after/syntax/c/ directory:
311314

312-
http://vim.sourceforge.net/scripts/script.php?script_id=1023
315+
https://www.vim.org/scripts/script.php?script_id=1023
313316

314317
The script allows multiple syntax files to exist separately in the
315318
after/syntax/c subdirectory. I can't bundle aftersyntax.vim in and build an
@@ -345,17 +348,22 @@ after/syntax/c.vim contained in it to overwrite a user's c.vim.
345348
Doesn't override vimball installation.
346349
>
347350
g:GetLatestVimScripts_scriptaddr
348-
< default='http://vim.sourceforge.net/script.php?script_id='
351+
< default='https://www.vim.org/scripts/script.php?script_id='
349352
Override this if your system needs
350-
... ='http://vim.sourceforge.net/script/script.php?script_id='
351-
353+
... ='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+
>
352360
==============================================================================
353361
8. GetLatestVimScripts Algorithm *glvs-algorithm* *glvs-alg*
354362

355363
The Vim sourceforge page dynamically creates a page by keying off of the
356364
so-called script-id. Within the webpage of
357365

358-
http://vim.sourceforge.net/scripts/script.php?script_id=40
366+
https://www.vim.org/scripts/script.php?script_id=40
359367

360368
is a line specifying the latest source-id (src_id). The source identifier
361369
numbers are always increasing, hence if the src_id is greater than the one

0 commit comments

Comments
 (0)