diff options
author | Bram Moolenaar <Bram@vim.org> | 2007-07-26 20:58:42 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2007-07-26 20:58:42 +0000 |
commit | 6ee10162b24109d5b3a0558304c110ffc9dc25b7 (patch) | |
tree | 499b2caf889484c944c88eafc6a7c5f7c73838cb /runtime/doc/pattern.txt | |
parent | f621048b53fb2ac84608886102b1733d7a338708 (diff) | |
download | vim-git-6ee10162b24109d5b3a0558304c110ffc9dc25b7.tar.gz |
updated for version 7.1-040v7.1.040
Diffstat (limited to 'runtime/doc/pattern.txt')
-rw-r--r-- | runtime/doc/pattern.txt | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/runtime/doc/pattern.txt b/runtime/doc/pattern.txt index 22c5782a8..5331cfec4 100644 --- a/runtime/doc/pattern.txt +++ b/runtime/doc/pattern.txt @@ -1212,7 +1212,10 @@ Finally, these constructs are unique to Perl: {group} must exist at the moment this command is executed. The {group} highlighting still applies when a character is - to be highlighted for 'hlsearch'. + to be highlighted for 'hlsearch', as the highlighting for + matches is given higher priority than that of 'hlsearch'. + Syntax highlighting (see 'syntax') is also overruled by + matches. Note that highlighting the last used search pattern with 'hlsearch' is used in all windows, while the pattern defined @@ -1226,8 +1229,15 @@ Finally, these constructs are unique to Perl: display you may get unexpected results. That is because Vim looks for a match in the line where redrawing starts. - Also see |matcharg()|, it returns the highlight group and - pattern of a previous :match command. + Also see |matcharg()|and |getmatches()|. The former returns + the highlight group and pattern of a previous |:match| + command. The latter returns a list with highlight groups and + patterns defined by both |matchadd()| and |:match|. + + Highlighting matches using |:match| are limited to three + matches (aside from |:match|, |:2match| and |:3match|are + available). |matchadd()| does not have this limitation and in + addition makes it possible to prioritize matches. Another example, which highlights all characters in virtual column 72 and more: > |