Mercurial > vim
diff runtime/doc/eval.txt @ 14407:631344964949 v8.1.0218
patch 8.1.0218: cannot add matches to another window
commit https://github.com/vim/vim/commit/95e51470f10e1ddcc4b2ce53e4f7ff7aa2e58417
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jul 28 16:55:56 2018 +0200
patch 8.1.0218: cannot add matches to another window
Problem: Cannot add matches to another window. (Qiming Zhao)
Solution: Add the "window" argument to matchadd() and matchaddpos().
(closes #3260)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 28 Jul 2018 17:00:05 +0200 |
parents | 723487cd7876 |
children | 2f7e67dd088c |
line wrap: on
line diff
--- a/runtime/doc/eval.txt +++ b/runtime/doc/eval.txt @@ -6016,7 +6016,7 @@ match({expr}, {pat} [, {start} [, {count the pattern. 'smartcase' is NOT used. The matching is always done like 'magic' is set and 'cpoptions' is empty. - *matchadd()* *E798* *E799* *E801* + *matchadd()* *E798* *E799* *E801* *E957* matchadd({group}, {pattern} [, {priority} [, {id} [, {dict}]]]) Defines a pattern to be highlighted in the current window (a "match"). It will be highlighted with {group}. Returns an @@ -6055,6 +6055,8 @@ matchadd({group}, {pattern} [, {priority conceal Special character to show instead of the match (only for |hl-Conceal| highlighted matches, see |:syn-cchar|) + window Instead of the current window use the + window with this number or window ID. The number of matches is not limited, as it is the case with the |:match| commands.