Skip to content
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

Update usr_52.{txt,jax} #1999

Merged
merged 1 commit 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
12 changes: 6 additions & 6 deletions doc/usr_52.jax
Original file line number Diff line number Diff line change
@@ -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

Expand Down Expand Up @@ -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

Expand All @@ -380,6 +377,9 @@ Vim を起動したときにアクティブになります。|add-plugin|: >

autocmd TextYankPost * HighlightedYank()
<
完全な例については、`$VIMRUNTIME/pack/dist/opt/hlyank/` にあるパッケージを参照
してください。

==============================================================================

次章: |usr_90.txt| Vim のインストール
Expand Down
12 changes: 6 additions & 6 deletions en/usr_52.txt
Original file line number Diff line number Diff line change
@@ -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

Expand Down Expand Up @@ -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

Expand All @@ -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
Expand Down