diff --git a/doc/usr_52.jax b/doc/usr_52.jax index 3ef717449..b322a0f58 100644 --- a/doc/usr_52.jax +++ b/doc/usr_52.jax @@ -1,4 +1,4 @@ -*usr_52.txt* For Vim バージョン 9.1. Last change: 2025 Mar 12 +*usr_52.txt* For Vim バージョン 9.1. Last change: 2025 Mar 17 VIM USER MANUAL - by Bram Moolenaar @@ -351,11 +351,8 @@ $VIMRUNTIME/pack/dist/opt/comment/ にあるパッケージを確認してくだ ☆highlight-yank プラグイン -ヤンクされた領域をハイライトする例を以下に示します。これは、Vim 9.1.0446 以降 -で使用可能な |getregionpos()| 関数を使用します。 - -以下の例を新しいファイルにコピーしてプラグインディレクトリに配置すると、次回 -Vim を起動したときにアクティブになります。|add-plugin|: > +Vim には、Vim9 script で記述された highlight-yank プラグインが付属しています。 +|hlyank-install|。以下は簡略化された実装です: >vim vim9script @@ -380,6 +377,9 @@ Vim を起動したときにアクティブになります。|add-plugin|: > autocmd TextYankPost * HighlightedYank() < +完全な例については、`$VIMRUNTIME/pack/dist/opt/hlyank/` にあるパッケージを参照 +してください。 + ============================================================================== 次章: |usr_90.txt| Vim のインストール diff --git a/en/usr_52.txt b/en/usr_52.txt index 6a8204d96..19a37dca5 100644 --- a/en/usr_52.txt +++ b/en/usr_52.txt @@ -1,4 +1,4 @@ -*usr_52.txt* For Vim version 9.1. Last change: 2025 Mar 12 +*usr_52.txt* For Vim version 9.1. Last change: 2025 Mar 17 VIM USER MANUAL - by Bram Moolenaar @@ -346,11 +346,8 @@ Have a look at the package located at $VIMRUNTIME/pack/dist/opt/comment/ HIGHLIGHT YANK PLUGIN -Here is an example for highlighting the yanked region. It makes use of the -|getregionpos()| function, available since Vim 9.1.0446. - -Copy the following example into a new file and place it into your plugin directory -and it will be active next time you start Vim. |add-plugin|: > +Vim comes with the highlight-yank plugin, written in Vim9 script +|hlyank-install|, here is a simplified implementation: >vim vim9script @@ -375,6 +372,9 @@ and it will be active next time you start Vim. |add-plugin|: > autocmd TextYankPost * HighlightedYank() < +For the complete example, have a look into the package located at +`$VIMRUNTIME/pack/dist/opt/hlyank/` + ============================================================================== Next chapter: |usr_90.txt| Installing Vim