Skip to content

Commit d5b0596

Browse files
authored
Merge pull request #1783 from h-east/update-pi_paren
Update pi_paren.{txt,jax}
2 parents e65412f + 73a2868 commit d5b0596

File tree

2 files changed

+30
-9
lines changed

2 files changed

+30
-9
lines changed

doc/pi_paren.jax

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*pi_paren.txt* For Vim バージョン 9.1. Last change: 2013 May 08
1+
*pi_paren.txt* For Vim バージョン 9.1. Last change: 2024 Nov 04
22

33

44
VIMリファレンスマニュアル by Bram Moolenaar
@@ -11,6 +11,7 @@
1111

1212
このプラグインが読み込まれないようにするには変数 "loaded_matchparen" を設定し
1313
てください: >
14+
1415
:let loaded_matchparen = 1
1516
1617
このプラグインは自動コマンドイベントの CursorMoved、CursorMovedI、WinEnter を
@@ -30,6 +31,15 @@
3031
3132
:hi MatchParen ctermbg=blue guibg=lightblue
3233
34+
デフォルトでは、プラグインはカーソルの下の括弧とマッチする括弧の両方を、
35+
|hl-MatchParen| ハイライトグループを使用してハイライトします。これにより、カー
36+
ソルのハイライトが MatchParen の色に置き換えられるため、カーソルが一時的に画面
37+
から消える場合があります。これを防ぎ、プラグインがマッチする括弧のみをハイライ
38+
トし、(実質的にカーソルのスタイルを変更せずに) カーソルの下の括弧をハイライト
39+
しないようにするには、"matchparen_disable_cursor_hl" 変数を設定します: >
40+
41+
:let matchparen_disable_cursor_hl = 1
42+
3343
オプション 'matchpairs' に設定されている文字が強調表示されます。このオプション
3444
を設定することで好きな文字を強調表示できます。Note: 設定しても機能しない文字も
3545
あります。例えば、シングルクォートやダブルクォートのペアなどは、始点と終点が同
@@ -48,9 +58,9 @@
4858
- 長い行が構文強調表示されていると処理に時間がかかるので、カーソル位置から
4959
'synmaxcol' の二倍の範囲の文字だけ検索する。
5060
- 300 ミリ秒でタイムアウト (挿入モードでは 60 ミリ秒)。これは変数の
51-
g:matchparen_timeout と g:matchparen_insert_timeout を設定することで変更でき
52-
。バッファ毎に設定する場合は b:matchparen_timeout と
53-
b:matchparen_insert_timeout を設定する。
61+
"g:matchparen_timeout""g:matchparen_insert_timeout" を設定することで変更
62+
できる。バッファ毎に設定する場合は "b:matchparen_timeout"
63+
"b:matchparen_insert_timeout" を設定する。
5464

5565
|%| コマンドの動作を改善したい場合は matchit プラグインを使ってください。
5666
|matchit-install| 参照。このプラグインを使うとコメント内のカッコをスキップする

en/pi_paren.txt

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*pi_paren.txt* For Vim version 9.1. Last change: 2013 May 08
1+
*pi_paren.txt* For Vim version 9.1. Last change: 2024 Nov 04
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -10,6 +10,7 @@ The functionality mentioned here is a |standard-plugin|.
1010
This plugin is only available if 'compatible' is not set.
1111

1212
You can avoid loading this plugin by setting the "loaded_matchparen" variable: >
13+
1314
:let loaded_matchparen = 1
1415
1516
The plugin installs CursorMoved, CursorMovedI and WinEnter autocommands to
@@ -29,6 +30,16 @@ the ":highlight" command. Example: >
2930
3031
:hi MatchParen ctermbg=blue guibg=lightblue
3132
33+
By default the plugin will highlight both the paren under the cursor and the
34+
matching one using the |hl-MatchParen| highlighting group. This may result in
35+
the cursor briefly disappearing from the screen as the MatchParen colors take
36+
over the cursor highlight. To prevent this from happening and have the plugin
37+
only highlight the matching paren and not the one under the cursor
38+
(effectively leaving the cursor style unchanged), you can set the
39+
"matchparen_disable_cursor_hl" variable: >
40+
41+
:let matchparen_disable_cursor_hl = 1
42+
3243
The characters to be matched come from the 'matchpairs' option. You can
3344
change the value to highlight different matches. Note that not everything is
3445
possible. For example, you can't highlight single or double quotes, because
@@ -46,10 +57,10 @@ are:
4657
closed folds.
4758
- 'synmaxcol' times 2 bytes before or after the cursor to avoid a delay
4859
in a long line with syntax highlighting.
49-
- A timeout of 300 msec (60 msec in Insert mode). This can be changed with the
50-
g:matchparen_timeout and g:matchparen_insert_timeout variables and their
51-
buffer-local equivalents b:matchparen_timeout and
52-
b:matchparen_insert_timeout.
60+
- A timeout of 300 msec (60 msec in Insert mode). This can be changed with
61+
the "g:matchparen_timeout" and "g:matchparen_insert_timeout" variables and
62+
their buffer-local equivalents "b:matchparen_timeout" and
63+
"b:matchparen_insert_timeout".
5364

5465
If you would like the |%| command to work better, the matchit plugin can be
5566
used, see |matchit-install|. This plugin also helps to skip matches in

0 commit comments

Comments
 (0)