diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2016-04-25 04:17:45 -0400 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2016-04-25 04:17:45 -0400 |
commit | ef205c3851fda637af49b5517bee60e6a62275ed (patch) | |
tree | a413274a5d7de9e1553ea475659dbad62e5ec0b8 /runtime | |
parent | 6f980346864251d2ed86d85c63fd6ec375e21edc (diff) | |
parent | 9e3ebb67119438d46eaceac739aca88880177060 (diff) | |
download | rneovim-ef205c3851fda637af49b5517bee60e6a62275ed.tar.gz rneovim-ef205c3851fda637af49b5517bee60e6a62275ed.tar.bz2 rneovim-ef205c3851fda637af49b5517bee60e6a62275ed.zip |
Merge pull request #4325 from watiko/vim-7.4.984
vim-patch:7.4.{984,1093}
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/eval.txt | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt index f6bdde2d39..e341a2247a 100644 --- a/runtime/doc/eval.txt +++ b/runtime/doc/eval.txt @@ -5548,14 +5548,15 @@ search({pattern} [, {flags} [, {stopline} [, {timeout}]]]) *search()* move. No error message is given. {flags} is a String, which can contain these character flags: - 'b' search backward instead of forward - 'c' accept a match at the cursor position + 'b' search Backward instead of forward + 'c' accept a match at the Cursor position 'e' move to the End of the match 'n' do Not move the cursor - 'p' return number of matching sub-pattern (see below) - 's' set the ' mark at the previous location of the cursor - 'w' wrap around the end of the file - 'W' don't wrap around the end of the file + 'p' return number of matching sub-Pattern (see below) + 's' Set the ' mark at the previous location of the cursor + 'w' Wrap around the end of the file + 'W' don't Wrap around the end of the file + 'z' start searching at the cursor column instead of Zero If neither 'w' or 'W' is given, the 'wrapscan' option applies. If the 's' flag is supplied, the ' mark is set, only if the @@ -5563,6 +5564,12 @@ search({pattern} [, {flags} [, {stopline} [, {timeout}]]]) *search()* flag. 'ignorecase', 'smartcase' and 'magic' are used. + + When the 'z' flag is not given seaching always starts in + column zero and then matches before the cursor are skipped. + When the 'c' flag is present in 'cpo' the next search starts + after the match. Without the 'c' flag the next search starts + one column further. When the {stopline} argument is given then the search stops after searching this line. This is useful to restrict the |