Skip to content

Commit b3c8462

Browse files
authored
Merge pull request #2446 from h-east/update-usr_05
Update usr_05.{txt,jax}
2 parents 31e4c74 + ef39ec1 commit b3c8462

2 files changed

Lines changed: 75 additions & 22 deletions

File tree

doc/usr_05.jax

Lines changed: 46 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*usr_05.txt* For Vim バージョン 9.1. Last change: 2025 Nov 09
1+
*usr_05.txt* For Vim バージョン 9.1. Last change: 2025 Dec 15
22

33

44
VIM ユーザーマニュアル by Bram Moolenaar
@@ -88,7 +88,7 @@ vimrc ファイルには、コロン (:) を押してから入力するコマン
8888
" ほとんどのユーザーが望むデフォルトを取得する
8989
source $VIMRUNTIME/defaults.vim
9090
91-
これは、$VIMRUNTIME ディレクトリにある "defaults.vim" ファイルをロードします
91+
これは、$VIMRUNTIME ディレクトリにある "defaults.vim" ファイルを読み込みます
9292
これは、ほとんどのユーザーが好むようにVimを設定します。あなたがそうでない少数
9393
のうちの1人であるならば、この行をコメントアウトしてください。以下にコマンドに
9494
ついて説明します:
@@ -147,17 +147,17 @@ vimrc ファイルには、コロン (:) を押してから入力するコマン
147147
packadd! matchit
148148
endif
149149
150-
必要な機能が利用できる場合、"matchit" プラグインをロードします
150+
必要な機能が利用できる場合、"matchit" プラグインを読み込みます
151151
それは |%| コマンドをより強力にします。これは |matchit-install| で説明されてい
152152
ます。
153153

154154

155155
==============================================================================
156156
*05.3* The defaults.vim ファイルの解説 *defaults.vim-explained*
157157

158-
|defaults.vim| ファイルは、ユーザーがvimrcファイルを持っていないときにロードさ
159-
れます。 新しいvimrcファイルを作成するときは、それを使い続けるためにこの行を先
160-
頭近くに追加します: >
158+
|defaults.vim| ファイルは、ユーザーが vimrc ファイルを持っていないときに読み込
159+
まれます。 新しい vimrc ファイルを作成するときは、それを使い続けるためにこの行
160+
を先頭近くに追加します: >
161161
162162
source $VIMRUNTIME/defaults.vim
163163
@@ -348,7 +348,7 @@ CTRL-U でアンドゥすることができます。":iunmap <C-U>" で元に戻
348348
command DiffOrig vert new | set bt=nofile | r ++edit # | 0d_
349349
\ | diffthis | wincmd p | diffthis
350350
351-
これは ":DiffOrig" コマンドを追加します。修正されたバッファでロードされたファ
351+
これは ":DiffOrig" コマンドを追加します。修正されたバッファで読み込まれたファ
352352
イルとの違いを見るためにこれを使ってください。|diff| および |:DiffOrig| を参照
353353
してください。
354354

@@ -407,15 +407,20 @@ langmapオプションがマッピングから生じる文字に適用される
407407
ださい。
408408

409409
==============================================================================
410-
*05.5* パッケージの追加 *add-package* *matchit-install* *package-matchit*
410+
*05.5* パッケージの追加 *add-package*
411411

412412
パッケージとはVimに追加するファイルの集合です。パッケージには、任意のタイミン
413413
グで読み込めるものと、起動時に自動的に読み込まれるものの2種類があります。
414414

415-
Vim は、数個の任意に読み込めるパッケージと一緒に配布されています。例えば
416-
matchit プラグインです。このプラグインは "%" コマンドを、HTMLタグやVim script
417-
の if/else/endif やその他のものにマッチするようにします。とても便利なのですが
418-
後方互換性はありません。それがデフォルトでは無効にされている理由です。
415+
Vim は、いくつかの任意に使用可能なパッケージと一緒に配布されています。
416+
417+
------------------------------------------------------------------------------
418+
matchit パッケージの追加 *matchit-install* *package-matchit*
419+
------------------------------------------------------------------------------
420+
例えば matchit パッケージです。このプラグインは "%" コマンドを、HTML タグや
421+
Vim script の if/else/endif やその他のものにマッチするようにします。とても便利
422+
なのですが後方互換性はありません。それがデフォルトでは無効にされている理由で
423+
す。
419424

420425
matchit プラグインを使い始めるには、以下の行をあなたの vimrc ファイルに追加し
421426
てください: >
@@ -446,7 +451,9 @@ matchit プラグインを使い始めるには、以下の行をあなたの vi
446451
ここの "fancytext" はパッケージ名なので、実際には別の名前になるで
447452
しょう。
448453

454+
------------------------------------------------------------------------------
449455
editorconfig パッケージの追加 *editorconfig-install* *package-editorconfig*
456+
------------------------------------------------------------------------------
450457

451458
matchit パッケージと同様に、Vim の起動時に配布されている editorconfig プラグイ
452459
ンを読み込むには、vimrc ファイルに以下の行を追加します: >
@@ -457,22 +464,26 @@ Vim を再起動するとプラグインがアクティブになり、以下で
457464
:h editorconfig.txt
458465
459466
467+
------------------------------------------------------------------------------
460468
コメントパッケージの追加 *comment-install* *package-comment*
469+
------------------------------------------------------------------------------
461470

462-
以下のコマンドを使用してプラグインをロードします: >
471+
以下のコマンドを使用してプラグインを読み込みます: >
463472
packadd comment
464473
<
465474
こうすることで、コメント用の `gc` および同じようなデフォルトキーバインディング
466475
(Vim コミュニティでは定評のあるマッピングです) でプラグインを使用できます。
467476

468477
この行を vimrc ファイルに追加した場合は、Vim を再起動してパッケージを読み込む
469-
必要があります。パッケージがロードされたら、以下を読んでください: >
478+
必要があります。パッケージが読み込まれたら、以下を読んでください: >
470479
:h comment.txt
471480
472481
482+
------------------------------------------------------------------------------
473483
nohlsearch パッケージの追加 *nohlsearch-install* *package-nohlsearch*
484+
------------------------------------------------------------------------------
474485

475-
以下のコマンドを使用してプラグインをロードします: >
486+
以下のコマンドを使用してプラグインを読み込みます: >
476487
packadd nohlsearch
477488
<
478489
'updatetime' の後、または |Insert| モードに入った後に、|:nohlsearch| を自動的
@@ -484,9 +495,11 @@ nohlsearch パッケージの追加 *nohlsearch-install* *package-nohlsearch*
484495
au! nohlsearch
485496
<
486497

498+
------------------------------------------------------------------------------
487499
highlight-yank パッケージの追加 *hlyank-install* *package-hlyank*
500+
------------------------------------------------------------------------------
488501

489-
以下のコマンドを使用してプラグインをロードします: >
502+
以下のコマンドを使用してプラグインを読み込みます: >
490503
packadd hlyank
491504
<
492505
このパッケージは、最後の |yank| コマンドの影響を受けた領域をしばらくの間ハイラ
@@ -509,6 +522,20 @@ highlight-yank パッケージの追加 *hlyank-install* *package-hlyank*
509522
プラグインの読み込み後にその効果を無効にするには: >
510523
au! hlyank
511524
525+
------------------------------------------------------------------------------
526+
osc52 パッケージの追加 *osc52-install* *package-osc52*
527+
------------------------------------------------------------------------------
528+
529+
以下のコマンドを使用してプラグインを読み込みます: >
530+
packadd osc52
531+
<
532+
osc52.vim パッケージは、OSC 52 ターミナル コマンドのサポートを提供します。これ
533+
により、アプリケーションはターミナルと直接通信してクリップボードにアクセスでき
534+
るようになります。
535+
536+
パッケージが読み込まれたら、以下の場所を参照してください: >
537+
:h osc52.txt
538+
512539
パッケージについてのより詳しい情報は次の項目を参照してください: |packages|
513540

514541
==============================================================================
@@ -530,7 +557,7 @@ highlight-yank パッケージの追加 *hlyank-install* *package-hlyank*
530557

531558
☆グローバルプラグイン *standard-plugin* *distributed-plugins*
532559

533-
Vim を起動すると、自動的にいくつものグローバルプラグインがロードされます。特に
560+
Vim を起動すると、自動的にいくつものグローバルプラグインが読み込まれます。特に
534561
何もしなくて大丈夫です。グローバルプラグインは、ほとんどの人が欲しいと思うだろ
535562
う機能を提供しています。それらの機能は Vim の中にコンパイルして組み込まれてい
536563
るのではなく、Vim script として実装されています。ヘルプの目次にプラグインの一
@@ -633,7 +660,7 @@ Vim の配布パッケージにはたくさんのファイルタイププラグ
633660
アンダースコアはファイルタイプの名前とそれ以外を区切るのに使います。アンダース
634661
コア以降はどんな文字列でも構いません。しかし、"otherstuff.vim" といった名前に
635662
した場合はうまく動きません。そのファイルは "otherstuff" というファイルタイプの
636-
ときにだけロードされます
663+
ときにだけ読み込まれます
637664

638665
MS-DOS ライクなファイルシステムでは長いファイル名が使えません。プラグインを追
639666
加するときに、ファイルタイプ名が 6 文字以上だと問題が生じます。そういうときは
@@ -664,7 +691,7 @@ Note: ファイルの拡張子は必ず ".vim" にしてください。
664691
詳しくは以下を参照してください:
665692
|filetype-plugins| ファイルタイププラグインについてのドキュメントと、マッ
666693
プで問題が発生した場合の対処方法。
667-
|load-plugins| 起動時にロードされるグローバルプラグイン
694+
|load-plugins| 起動時に読み込まれるグローバルプラグイン
668695
|ftplugin-overrule| 標準のファイルタイププラグインの設定を上書きする。
669696
|write-plugin| プラグインスクリプトの書き方。
670697
|plugin-details| プラグインの使い方やプラグインが動かない場合について

en/usr_05.txt

Lines changed: 29 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*usr_05.txt* For Vim version 9.1. Last change: 2025 Nov 09
1+
*usr_05.txt* For Vim version 9.1. Last change: 2025 Dec 15
22

33

44
VIM USER MANUAL by Bram Moolenaar
@@ -399,13 +399,17 @@ The ":map" command (with no arguments) lists your current mappings. At
399399
least the ones for Normal mode. More about mappings in section |40.1|.
400400

401401
==============================================================================
402-
*05.5* Adding a package *add-package* *matchit-install* *package-matchit*
402+
*05.5* Adding a package *add-package*
403403

404404
A package is a set of files that you can add to Vim. There are two kinds of
405405
packages: optional and automatically loaded on startup.
406406

407407
The Vim distribution comes with a few packages that you can optionally use.
408-
For example, the matchit plugin. This plugin makes the "%" command jump to
408+
409+
------------------------------------------------------------------------------
410+
Adding the matchit package *matchit-install* *package-matchit*
411+
------------------------------------------------------------------------------
412+
For example, the matchit package This plugin makes the "%" command jump to
409413
matching HTML tags, if/else/endif in Vim scripts, etc. Very useful, although
410414
it's not backwards compatible (that's why it is not enabled by default).
411415

@@ -434,7 +438,9 @@ an archive or as a repository. For an archive you can follow these steps:
434438
Here "fancytext" is the name of the package, it can be anything
435439
else.
436440

441+
------------------------------------------------------------------------------
437442
Adding the editorconfig package *editorconfig-install* *package-editorconfig*
443+
------------------------------------------------------------------------------
438444

439445
Similar to the matchit package, to load the distributed editorconfig plugin
440446
when Vim starts, add the following line to your vimrc file: >
@@ -444,7 +450,9 @@ After restarting your Vim, the plugin is active and you can read about it at: >
444450
:h editorconfig.txt
445451
446452
453+
------------------------------------------------------------------------------
447454
Adding the comment package *comment-install* *package-comment*
455+
------------------------------------------------------------------------------
448456

449457
Load the plugin with this command: >
450458
packadd comment
@@ -457,7 +465,9 @@ the package loaded. Once the package is loaded, read about it at: >
457465
:h comment.txt
458466
459467
468+
------------------------------------------------------------------------------
460469
Adding the nohlsearch package *nohlsearch-install* *package-nohlsearch*
470+
------------------------------------------------------------------------------
461471

462472
Load the plugin with this command: >
463473
packadd nohlsearch
@@ -471,7 +481,9 @@ To disable the effect of the plugin after it has been loaded: >
471481
au! nohlsearch
472482
<
473483

484+
------------------------------------------------------------------------------
474485
Adding the highlight-yank package *hlyank-install* *package-hlyank*
486+
------------------------------------------------------------------------------
475487

476488
Load the plugin with this command: >
477489
packadd hlyank
@@ -497,6 +509,20 @@ To highlight in visual mode, use: >
497509
To disable the effect of the plugin after it has been loaded: >
498510
au! hlyank
499511
512+
------------------------------------------------------------------------------
513+
Adding the osc52 package *osc52-install* *package-osc52*
514+
------------------------------------------------------------------------------
515+
516+
Load the plugin with this command: >
517+
packadd osc52
518+
<
519+
The osc52.vim package provides support for the OSC 52 terminal command, which
520+
allows an application to access the clipboard by communicating directly with
521+
your terminal.
522+
523+
Once the package is loaded, read about it at: >
524+
:h osc52.txt
525+
500526
More information about packages can be found here: |packages|.
501527

502528
==============================================================================

0 commit comments

Comments
 (0)