Mercurial > vim
diff runtime/doc/eval.txt @ 14695:b178e2039b2d
Update runtime files.
commit https://github.com/vim/vim/commit/93a1df2c205c8399d96c172d9483e0793d32892a
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Sep 10 11:51:50 2018 +0200
Update runtime files.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Mon, 10 Sep 2018 12:00:07 +0200 |
parents | f1b7d308de2f |
children | 0a3b9ecf7cb8 |
line wrap: on
line diff
--- a/runtime/doc/eval.txt +++ b/runtime/doc/eval.txt @@ -5978,11 +5978,14 @@ match({expr}, {pat} [, {start} [, {count When {expr} is a |List| then this returns the index of the first item where {pat} matches. Each item is used as a String, |Lists| and |Dictionaries| are used as echoed. + Otherwise, {expr} is used as a String. The result is a Number, which gives the index (byte offset) in {expr} where {pat} matches. + A match at the first character or |List| item returns zero. If there is no match -1 is returned. + For getting submatches see |matchlist()|. Example: > :echo match("testing", "ing") " results in 4 @@ -8386,7 +8389,9 @@ term_dumpwrite({buf}, {filename} [, {opt Dump the contents of the terminal screen of {buf} in the file {filename}. This uses a format that can be used with |term_dumpload()| and |term_dumpdiff()|. - If {filename} already exists an error is given. *E953* + If the job in the terminal already finished an error is given: + *E958* + If {filename} already exists an error is given: *E953* Also see |terminal-diff|. {options} is a dictionary with these optional entries: