diff options
author | Christian Brabandt <cb@256bit.org> | 2024-03-12 22:03:09 +0100 |
---|---|---|
committer | Christian Brabandt <cb@256bit.org> | 2024-03-12 22:03:45 +0100 |
commit | 9a660d2883f92b3a3761c964dc14363a8f70c8d8 (patch) | |
tree | 2006ae334c306aac469023681c90a38d73fdf126 /runtime/doc/builtin.txt | |
parent | 94b7c3233ef534acc669b3083ed1fe59cf3a090b (diff) |
runtime(doc): add reference to matchbufline() at :h search()
related: #14173
Signed-off-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'runtime/doc/builtin.txt')
-rw-r--r-- | runtime/doc/builtin.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/doc/builtin.txt b/runtime/doc/builtin.txt index 941c6a76ef..7f71115a18 100644 --- a/runtime/doc/builtin.txt +++ b/runtime/doc/builtin.txt @@ -7980,6 +7980,7 @@ search({pattern} [, {flags} [, {stopline} [, {timeout} [, {skip}]]]]) When a match has been found its line number is returned. If there is no match a 0 is returned and the cursor doesn't move. No error message is given. + To get the matched string, use |matchbufline()|. {flags} is a String, which can contain these character flags: 'b' search Backward instead of forward |