annotate runtime/doc/pi_paren.txt @ 1300:bacdeee78827 v7.1.014

updated for version 7.1-014
author vimboss
date Thu, 28 Jun 2007 10:49:22 +0000
parents 8fe7832b1e10
children 048f26eb43a3
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1261
8fe7832b1e10 updated for version 7.1
vimboss
parents: 1213
diff changeset
1 *pi_paren.txt* For Vim version 7.1. Last change: 2006 Jun 14
694
07d199fe02ed updated for version 7.0209
vimboss
parents:
diff changeset
2
07d199fe02ed updated for version 7.0209
vimboss
parents:
diff changeset
3
07d199fe02ed updated for version 7.0209
vimboss
parents:
diff changeset
4 VIM REFERENCE MANUAL by Bram Moolenaar
07d199fe02ed updated for version 7.0209
vimboss
parents:
diff changeset
5
07d199fe02ed updated for version 7.0209
vimboss
parents:
diff changeset
6
07d199fe02ed updated for version 7.0209
vimboss
parents:
diff changeset
7 Highlighting matching parens *matchparen*
07d199fe02ed updated for version 7.0209
vimboss
parents:
diff changeset
8
07d199fe02ed updated for version 7.0209
vimboss
parents:
diff changeset
9 The functionality mentioned here is a |standard-plugin|.
07d199fe02ed updated for version 7.0209
vimboss
parents:
diff changeset
10 This plugin is only available if 'compatible' is not set.
07d199fe02ed updated for version 7.0209
vimboss
parents:
diff changeset
11
07d199fe02ed updated for version 7.0209
vimboss
parents:
diff changeset
12 You can avoid loading this plugin by setting the "loaded_matchparen" variable: >
07d199fe02ed updated for version 7.0209
vimboss
parents:
diff changeset
13 :let loaded_matchparen = 1
07d199fe02ed updated for version 7.0209
vimboss
parents:
diff changeset
14
07d199fe02ed updated for version 7.0209
vimboss
parents:
diff changeset
15 The plugin installs CursorMoved autocommands to redefine the match
07d199fe02ed updated for version 7.0209
vimboss
parents:
diff changeset
16 highlighting.
07d199fe02ed updated for version 7.0209
vimboss
parents:
diff changeset
17
07d199fe02ed updated for version 7.0209
vimboss
parents:
diff changeset
18 To disable the plugin after it was loaded use this command: >
07d199fe02ed updated for version 7.0209
vimboss
parents:
diff changeset
19
07d199fe02ed updated for version 7.0209
vimboss
parents:
diff changeset
20 :NoMatchParen
07d199fe02ed updated for version 7.0209
vimboss
parents:
diff changeset
21
07d199fe02ed updated for version 7.0209
vimboss
parents:
diff changeset
22 And to enable it again: >
07d199fe02ed updated for version 7.0209
vimboss
parents:
diff changeset
23
07d199fe02ed updated for version 7.0209
vimboss
parents:
diff changeset
24 :DoMatchParen
07d199fe02ed updated for version 7.0209
vimboss
parents:
diff changeset
25
699
2af8de31a3a8 updated for version 7.0211
vimboss
parents: 694
diff changeset
26 The highlighting used is MatchParen. You can specify different colors with
694
07d199fe02ed updated for version 7.0209
vimboss
parents:
diff changeset
27 the ":highlight" command. Example: >
07d199fe02ed updated for version 7.0209
vimboss
parents:
diff changeset
28
699
2af8de31a3a8 updated for version 7.0211
vimboss
parents: 694
diff changeset
29 :hi MatchParen ctermbg=blue guibg=lightblue
694
07d199fe02ed updated for version 7.0209
vimboss
parents:
diff changeset
30
07d199fe02ed updated for version 7.0209
vimboss
parents:
diff changeset
31 The characters to be matched come from the 'matchpairs' option. You can
07d199fe02ed updated for version 7.0209
vimboss
parents:
diff changeset
32 change the value to highlight different matches. Note that not everything is
07d199fe02ed updated for version 7.0209
vimboss
parents:
diff changeset
33 possible. For example, you can't highlight single or double quotes, because
07d199fe02ed updated for version 7.0209
vimboss
parents:
diff changeset
34 the start and end are equal.
07d199fe02ed updated for version 7.0209
vimboss
parents:
diff changeset
35
07d199fe02ed updated for version 7.0209
vimboss
parents:
diff changeset
36 The syntax highlighting attributes are used. When the cursor currently is not
07d199fe02ed updated for version 7.0209
vimboss
parents:
diff changeset
37 in a string or comment syntax item, then matches inside string and comment
07d199fe02ed updated for version 7.0209
vimboss
parents:
diff changeset
38 syntax items are ignored. Any syntax items with "string" or "comment"
07d199fe02ed updated for version 7.0209
vimboss
parents:
diff changeset
39 somewhere in their name are considered string or comment items.
07d199fe02ed updated for version 7.0209
vimboss
parents:
diff changeset
40
819
23f82b5d2814 updated for version 7.0c10
vimboss
parents: 818
diff changeset
41 The search is limited to avoid a delay when moving the cursor. The limits
23f82b5d2814 updated for version 7.0c10
vimboss
parents: 818
diff changeset
42 are:
23f82b5d2814 updated for version 7.0c10
vimboss
parents: 818
diff changeset
43 - What is visible in the window.
23f82b5d2814 updated for version 7.0c10
vimboss
parents: 818
diff changeset
44 - 100 lines above or below the cursor to avoid a long delay when there are
23f82b5d2814 updated for version 7.0c10
vimboss
parents: 818
diff changeset
45 closed folds.
1121
e63691e7c504 updated for version 7.1a
vimboss
parents: 874
diff changeset
46 - 'synmaxcol' times 2 bytes before or after the cursor to avoid a delay
819
23f82b5d2814 updated for version 7.0c10
vimboss
parents: 818
diff changeset
47 in a long line with syntax highlighting.
818
1f929f3ca806 updated for version 7.0c03
vimboss
parents: 810
diff changeset
48
694
07d199fe02ed updated for version 7.0209
vimboss
parents:
diff changeset
49 ==============================================================================
07d199fe02ed updated for version 7.0209
vimboss
parents:
diff changeset
50 vim:tw=78:ts=8:ft=help:norl: