Skip to content

Update usr_05.{txt,jax} #1998

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 21, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 23 additions & 1 deletion doc/usr_05.jax
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*usr_05.txt* For Vim バージョン 9.1. Last change: 2025 Jan 11
*usr_05.txt* For Vim バージョン 9.1. Last change: 2025 Mar 18

VIM USER MANUAL - by Bram Moolenaar

Expand Down Expand Up @@ -477,6 +477,28 @@ nohlsearch パッケージの追加 *nohlsearch-install* *package-nohlsearch*
au! nohlsearch
<

highlight-yank パッケージの追加 *hlyank-install* *package-hlyank*

以下のコマンドを使用してプラグインをロードします: >
packadd hlyank
<
このパッケージは、最後の |yank| コマンドの影響を受けた領域をしばらくの間ハイラ
イトします。|getregionpos()| 関数を使用した簡略化された実装については、|52.6|
を参照してください。

プラグインは以下の構成変数を理解します (設定はデフォルト値を示しています)。

別のハイライトグループを指定するには、以下を使用します: >
:let g:hlyank_hlgroup = 'IncSearch'
<
異なるハイライト期間を使用するには、以下を使用します: >
:let g:hlyank_duration = 300
<
ビジュアルモードでハイライトするには、以下を使用します: >
:let g:hlyank_invisual = v:true

プラグインの読み込み後にその効果を無効にするには: >
au! hlyank

パッケージについてのより詳しい情報は次の項目を参照してください: |packages|

Expand Down
29 changes: 26 additions & 3 deletions en/usr_05.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*usr_05.txt* For Vim version 9.1. Last change: 2025 Jan 11
*usr_05.txt* For Vim version 9.1. Last change: 2025 Mar 18

VIM USER MANUAL - by Bram Moolenaar

Expand Down Expand Up @@ -437,7 +437,7 @@ After restarting your Vim, the plugin is active and you can read about it at: >
:h editorconfig.txt
Adding comment package *comment-install* *package-comment*
Adding the comment package *comment-install* *package-comment*

Load the plugin with this command: >
packadd comment
Expand All @@ -450,7 +450,7 @@ the package loaded. Once the package is loaded, read about it at: >
:h comment.txt
Adding nohlsearch package *nohlsearch-install* *package-nohlsearch*
Adding the nohlsearch package *nohlsearch-install* *package-nohlsearch*

Load the plugin with this command: >
packadd nohlsearch
Expand All @@ -464,6 +464,29 @@ To disable the effect of the plugin after it has been loaded: >
au! nohlsearch
<

Adding the highlight-yank package *hlyank-install* *package-hlyank*

Load the plugin with this command: >
packadd hlyank
<
This package briefly highlights the affected region of the last |yank|
command. See |52.6| for a simplified implementation using the |getregionpos()|
function.

The plugin understands the following configuration variables (the settings
show the default values).

To specify a different highlighting group, use: >
:let g:hlyank_hlgroup = 'IncSearch'
<
To use a different highlighting duration, use: >
:let g:hlyank_duration = 300
<
To highlight in visual mode, use: >
:let g:hlyank_invisual = v:true
To disable the effect of the plugin after it has been loaded: >
au! hlyank
More information about packages can be found here: |packages|.

Expand Down