Skip to content

Commit

Permalink
Merge pull request #1605 from vim-jp/hh-update-usr_05
Browse files Browse the repository at this point in the history
Update usr_05.{txt,jax}
  • Loading branch information
h-east committed Jul 14, 2024
2 parents d0e2b02 + 60916f2 commit 9137f6a
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 4 deletions.
20 changes: 18 additions & 2 deletions 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: 2024 May 17
*usr_05.txt* For Vim バージョン 9.1. Last change: 2024 Jun 19

VIM USER MANUAL - by Bram Moolenaar

Expand Down Expand Up @@ -453,7 +453,7 @@ Vim を再起動するとプラグインがアクティブになり、以下で
コメントパッケージの追加 *comment-install*

以下のコマンドを使用してプラグインをロードします: >
packadd comment
packadd comment
<
こうすることで、コメント用の `gc` および同じようなデフォルトキーバインディング
(Vim コミュニティでは定評のあるマッピングです) でプラグインを使用できます。
Expand All @@ -462,6 +462,22 @@ Vim を再起動するとプラグインがアクティブになり、以下で
必要があります。パッケージがロードされたら、以下を読んでください: >
:h comment.txt
nohlsearch パッケージの追加 *nohlsearch-install*

以下のコマンドを使用してプラグインをロードします: >
packadd nohlsearch
<
'updatetime' の後、または |Insert| モードに入った後に、|:nohlsearch| を自動的
に実行します。
したがって、デフォルトの updatetime だと仮定すると、hlsearch はアイドル時間の
4 秒後に一時停止/オフになります。

プラグインが読み込まれた後にその効果を無効にするには: >
au! nohlsearch
<


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

==============================================================================
Expand Down
19 changes: 17 additions & 2 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: 2024 May 17
*usr_05.txt* For Vim version 9.1. Last change: 2024 Jun 19

VIM USER MANUAL - by Bram Moolenaar

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

Load the plugin with this command: >
packadd comment
packadd comment
<
This way you can use the plugin with the default key bindings `gc` and similar
for commenting (which is a well-established mapping in the Vim community).
Expand All @@ -449,6 +449,21 @@ If you add this line to your vimrc file, then you need to restart Vim to have
the package loaded. Once the package is loaded, read about it at: >
:h comment.txt
Adding nohlsearch package *nohlsearch-install*

Load the plugin with this command: >
packadd nohlsearch
<
Automatically execute |:nohlsearch| after 'updatetime' or getting into |Insert| mode.
Thus assuming default updatetime, hlsearch would be suspended/turned off after
4 seconds of idle time.

To disable the effect of the plugin after it has been loaded: >
au! nohlsearch
<


More information about packages can be found here: |packages|.

==============================================================================
Expand Down

0 comments on commit 9137f6a

Please sign in to comment.