diff options
author | Bram Moolenaar <Bram@vim.org> | 2015-07-21 15:48:27 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2015-07-21 15:48:27 +0200 |
commit | 6561d52ecbe6e24d1b90403078cc8b76c53c42fc (patch) | |
tree | f68a8d31545f7b89ae0e31a81f8e0ac0216a99ac /runtime | |
parent | d51cb706a4e3ae99555bc214a64c83603c701139 (diff) |
patch 7.4.792v7.4.792
Problem: Can only conceal text by defining syntax items.
Solution: Use matchadd() to define concealing. (Christian Brabandt)
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/eval.txt | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt index 1a9e4f395b..d68d4d805a 100644 --- a/runtime/doc/eval.txt +++ b/runtime/doc/eval.txt @@ -4430,9 +4430,18 @@ matchadd({group}, {pattern}[, {priority}[, {id}]]) message will appear and the match will not be added. An ID is specified as a positive integer (zero excluded). IDs 1, 2 and 3 are reserved for |:match|, |:2match| and |:3match|, - respectively. If the {id} argument is not specified, + respectively. If the {id} argument is not specified or -1, |matchadd()| automatically chooses a free ID. + The optional {dict} argmument allows for further custom + values. Currently this is used to specify a match specifc + conceal character that will be shown for |hl-Conceal| + highlighted matches. The dict can have the following members: + + conceal Special character to show instead of the + match (only for |hl-Conceal| highlighed + matches, see |:syn-cchar|) + The number of matches is not limited, as it is the case with the |:match| commands. @@ -4446,7 +4455,7 @@ matchadd({group}, {pattern}[, {priority}[, {id}]]) available from |getmatches()|. All matches can be deleted in one operation by |clearmatches()|. -matchaddpos({group}, {pos}[, {priority}[, {id}]]) *matchaddpos()* +matchaddpos({group}, {pos}[, {priority}[, {id}[, {dict}]]]) *matchaddpos()* Same as |matchadd()|, but requires a list of positions {pos} instead of a pattern. This command is faster than |matchadd()| because it does not require to handle regular expressions and |