File tree 2 files changed +12
-12
lines changed
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
2
2
3
3
VIM USER MANUAL - by Bram Moolenaar
4
4
@@ -351,11 +351,8 @@ $VIMRUNTIME/pack/dist/opt/comment/ にあるパッケージを確認してくだ
351
351
352
352
☆highlight-yank プラグイン
353
353
354
- ヤンクされた領域をハイライトする例を以下に示します。これは、Vim 9.1.0446 以降
355
- で使用可能な | getregionpos() | 関数を使用します。
356
-
357
- 以下の例を新しいファイルにコピーしてプラグインディレクトリに配置すると、次回
358
- Vim を起動したときにアクティブになります。| add-plugin | : >
354
+ Vim には、Vim9 script で記述された highlight-yank プラグインが付属しています。
355
+ | hlyank-install | 。以下は簡略化された実装です: >vim
359
356
360
357
vim9script
361
358
@@ -380,6 +377,9 @@ Vim を起動したときにアクティブになります。|add-plugin|: >
380
377
381
378
autocmd TextYankPost * HighlightedYank()
382
379
<
380
+ 完全な例については、`$VIMRUNTIME /pack/ dist/opt/ hlyank/` にあるパッケージを参照
381
+ してください。
382
+
383
383
==============================================================================
384
384
385
385
次章: | 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
2
2
3
3
VIM USER MANUAL - by Bram Moolenaar
4
4
@@ -346,11 +346,8 @@ Have a look at the package located at $VIMRUNTIME/pack/dist/opt/comment/
346
346
347
347
HIGHLIGHT YANK PLUGIN
348
348
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
354
351
355
352
vim9script
356
353
@@ -375,6 +372,9 @@ and it will be active next time you start Vim. |add-plugin|: >
375
372
376
373
autocmd TextYankPost * HighlightedYank()
377
374
<
375
+ For the complete example, have a look into the package located at
376
+ `$VIMRUNTIME /pack/ dist/opt/ hlyank/`
377
+
378
378
==============================================================================
379
379
380
380
Next chapter: | usr_90.txt | Installing Vim
You can’t perform that action at this time.
0 commit comments