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
2
2
3
3
4
4
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -10,6 +10,7 @@ The functionality mentioned here is a |standard-plugin|.
10
10
This plugin is only available if 'compatible' is not set.
11
11
12
12
You can avoid loading this plugin by setting the "loaded_matchparen" variable: >
13
+
13
14
:let loaded_matchparen = 1
14
15
15
16
The plugin installs CursorMoved, CursorMovedI and WinEnter autocommands to
@@ -29,6 +30,16 @@ the ":highlight" command. Example: >
29
30
30
31
:hi MatchParen ctermbg=blue guibg=lightblue
31
32
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
+
32
43
The characters to be matched come from the 'matchpairs' option. You can
33
44
change the value to highlight different matches. Note that not everything is
34
45
possible. For example, you can't highlight single or double quotes, because
46
57
closed folds.
47
58
- 'synmaxcol' times 2 bytes before or after the cursor to avoid a delay
48
59
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" .
53
64
54
65
If you would like the | % | command to work better, the matchit plugin can be
55
66
used, see | matchit-install | . This plugin also helps to skip matches in
0 commit comments