Mercurial > vim
diff runtime/doc/eval.txt @ 697:f08390485cd3 v7.0210
updated for version 7.0210
author | vimboss |
---|---|
date | Wed, 01 Mar 2006 00:01:28 +0000 |
parents | 07d199fe02ed |
children | 2fae45239fb3 |
line wrap: on
line diff
--- a/runtime/doc/eval.txt +++ b/runtime/doc/eval.txt @@ -1,4 +1,4 @@ -*eval.txt* For Vim version 7.0aa. Last change: 2006 Feb 27 +*eval.txt* For Vim version 7.0aa. Last change: 2006 Feb 28 VIM REFERENCE MANUAL by Bram Moolenaar @@ -3375,11 +3375,11 @@ match({expr}, {pat}[, {start}[, {count}] {start} bytes later, thus "^" will match there. For a String, if {start} < 0, it will be set to 0. For a list the index is counted from the end. - If {start} is out of range (> strlen({expr} for a String or - > len({expr} for a |List|) -1 is returned. + If {start} is out of range ({start} > strlen({expr}) for a + String or {start} > len({expr}) for a |List|) -1 is returned. When {count} is given use the {count}'th match. When a match - is found in a String the search for the next one starts on + is found in a String the search for the next one starts one character further. Thus this example results in 1: > echo match("testing", "..", 0, 2) < In a |List| the search continues in the next item.