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|.
1010This plugin is only available if 'compatible' is not set.
1111
1212You 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
3344change the value to highlight different matches. Note that not everything is
3445possible. For example, you can't highlight single or double quotes, because
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
5465If you would like the | % | command to work better, the matchit plugin can be
5566used, see | matchit-install | . This plugin also helps to skip matches in
0 commit comments