File tree Expand file tree Collapse file tree 2 files changed +12
-12
lines changed Expand file tree Collapse file tree 2 files changed +12
-12
lines changed Original file line number Diff line number Diff line change 1- *usr_52.txt* For Vim バージョン 9.1. Last change: 2025 Mar 12
1+ *usr_52.txt* For Vim バージョン 9.1. Last change: 2025 Mar 17
22
33 VIM USER MANUAL - by Bram Moolenaar
44
@@ -351,11 +351,8 @@ $VIMRUNTIME/pack/dist/opt/comment/ にあるパッケージを確認してくだ
351351
352352☆highlight-yank プラグイン
353353
354- ヤンクされた領域をハイライトする例を以下に示します。これは、Vim 9.1.0446 以降
355- で使用可能な | getregionpos() | 関数を使用します。
356-
357- 以下の例を新しいファイルにコピーしてプラグインディレクトリに配置すると、次回
358- Vim を起動したときにアクティブになります。| add-plugin | : >
354+ Vim には、Vim9 script で記述された highlight-yank プラグインが付属しています。
355+ | hlyank-install | 。以下は簡略化された実装です: >vim
359356
360357 vim9script
361358
@@ -380,6 +377,9 @@ Vim を起動したときにアクティブになります。|add-plugin|: >
380377
381378 autocmd TextYankPost * HighlightedYank()
382379<
380+ 完全な例については、`$VIMRUNTIME /pack/ dist/opt/ hlyank/` にあるパッケージを参照
381+ してください。
382+
383383==============================================================================
384384
385385次章: | usr_90.txt | Vim のインストール
Original file line number Diff line number Diff line change 1- *usr_52.txt* For Vim version 9.1. Last change: 2025 Mar 12
1+ *usr_52.txt* For Vim version 9.1. Last change: 2025 Mar 17
22
33 VIM USER MANUAL - by Bram Moolenaar
44
@@ -346,11 +346,8 @@ Have a look at the package located at $VIMRUNTIME/pack/dist/opt/comment/
346346
347347HIGHLIGHT YANK PLUGIN
348348
349- Here is an example for highlighting the yanked region. It makes use of the
350- | getregionpos() | function, available since Vim 9.1.0446.
351-
352- Copy the following example into a new file and place it into your plugin directory
353- and it will be active next time you start Vim. | add-plugin | : >
349+ Vim comes with the highlight-yank plugin, written in Vim9 script
350+ | hlyank-install | , here is a simplified implementation: >vim
354351
355352 vim9script
356353
@@ -375,6 +372,9 @@ and it will be active next time you start Vim. |add-plugin|: >
375372
376373 autocmd TextYankPost * HighlightedYank()
377374<
375+ For the complete example, have a look into the package located at
376+ `$VIMRUNTIME /pack/ dist/opt/ hlyank/`
377+
378378==============================================================================
379379
380380Next chapter: | usr_90.txt | Installing Vim
You can’t perform that action at this time.
0 commit comments