Updated runtime files.

This commit is contained in:
Bram Moolenaar
2011-04-28 19:02:44 +02:00
parent b453a53b59
commit 8e5af3e531
24 changed files with 501 additions and 133 deletions

View File

@ -1,4 +1,4 @@
*pattern.txt* For Vim version 7.3. Last change: 2011 Feb 25
*pattern.txt* For Vim version 7.3. Last change: 2011 Apr 28
VIM REFERENCE MANUAL by Bram Moolenaar
@ -651,6 +651,13 @@ overview.
"foobar" you could use "\(foo\)\@!...bar", but that doesn't match a
bar at the start of a line. Use "\(foo\)\@<!bar".
Useful example: to find "foo" in a line that does not contain "bar": >
/^\%(.*bar\)\@!.*\zsfoo
< This pattern first checks that there is not a single position in the
line where "bar" matches. If ".*bar" matches somewhere the \@! will
reject the pattern. When there is no match any "foo" will be found.
The "\zs" is to have the match start just before "foo".
*/\@<=*
\@<= Matches with zero width if the preceding atom matches just before what
follows. |/zero-width| {not in Vi}