Mercurial > vim
comparison runtime/doc/eval.txt @ 3312:b7811ab264bf v7.3.423
updated for version 7.3.423
Problem: Small mistakes in comments, proto and indent.
Solution: Fix the mistakes.
Also update runtime files
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Sat, 04 Feb 2012 21:59:01 +0100 |
parents | ba708ee8d69d |
children | d1096a4e96bd |
comparison
equal
deleted
inserted
replaced
3311:54d1536a1c8b | 3312:b7811ab264bf |
---|---|
1 *eval.txt* For Vim version 7.3. Last change: 2012 Jan 04 | 1 *eval.txt* For Vim version 7.3. Last change: 2012 Jan 28 |
2 | 2 |
3 | 3 |
4 VIM REFERENCE MANUAL by Bram Moolenaar | 4 VIM REFERENCE MANUAL by Bram Moolenaar |
5 | 5 |
6 | 6 |
4812 | 4812 |
4813 search({pattern} [, {flags} [, {stopline} [, {timeout}]]]) *search()* | 4813 search({pattern} [, {flags} [, {stopline} [, {timeout}]]]) *search()* |
4814 Search for regexp pattern {pattern}. The search starts at the | 4814 Search for regexp pattern {pattern}. The search starts at the |
4815 cursor position (you can use |cursor()| to set it). | 4815 cursor position (you can use |cursor()| to set it). |
4816 | 4816 |
4817 If there is no match a 0 is returned and the cursor doesn't | |
4818 move. No error message is given. | |
4819 When a match has been found its line number is returned. | |
4820 | |
4817 {flags} is a String, which can contain these character flags: | 4821 {flags} is a String, which can contain these character flags: |
4818 'b' search backward instead of forward | 4822 'b' search backward instead of forward |
4819 'c' accept a match at the cursor position | 4823 'c' accept a match at the cursor position |
4820 'e' move to the End of the match | 4824 'e' move to the End of the match |
4821 'n' do Not move the cursor | 4825 'n' do Not move the cursor |
4845 {timeout} is 500 the search stops after half a second. | 4849 {timeout} is 500 the search stops after half a second. |
4846 The value must not be negative. A zero value is like not | 4850 The value must not be negative. A zero value is like not |
4847 giving the argument. | 4851 giving the argument. |
4848 {only available when compiled with the |+reltime| feature} | 4852 {only available when compiled with the |+reltime| feature} |
4849 | 4853 |
4850 If there is no match a 0 is returned and the cursor doesn't | |
4851 move. No error message is given. | |
4852 When a match has been found its line number is returned. | |
4853 *search()-sub-match* | 4854 *search()-sub-match* |
4854 With the 'p' flag the returned value is one more than the | 4855 With the 'p' flag the returned value is one more than the |
4855 first sub-match in \(\). One if none of them matched but the | 4856 first sub-match in \(\). One if none of them matched but the |
4856 whole pattern did match. | 4857 whole pattern did match. |
4857 To get the column number too use |searchpos()|. | 4858 To get the column number too use |searchpos()|. |
5066 line. A number smaller than one has undefined results. | 5067 line. A number smaller than one has undefined results. |
5067 Returns 0 when successful, 1 when not editing the command | 5068 Returns 0 when successful, 1 when not editing the command |
5068 line. | 5069 line. |
5069 | 5070 |
5070 setline({lnum}, {text}) *setline()* | 5071 setline({lnum}, {text}) *setline()* |
5071 Set line {lnum} of the current buffer to {text}. | 5072 Set line {lnum} of the current buffer to {text}. To insert |
5073 lines use |append()|. | |
5072 {lnum} is used like with |getline()|. | 5074 {lnum} is used like with |getline()|. |
5073 When {lnum} is just below the last line the {text} will be | 5075 When {lnum} is just below the last line the {text} will be |
5074 added as a new line. | 5076 added as a new line. |
5075 If this succeeds, 0 is returned. If this fails (most likely | 5077 If this succeeds, 0 is returned. If this fails (most likely |
5076 because {lnum} is invalid) 1 is returned. Example: > | 5078 because {lnum} is invalid) 1 is returned. Example: > |