Mercurial > vim
diff runtime/doc/pattern.txt @ 11062:1218c5353e2b
Runtime file updates.
commit https://github.com/vim/vim/commit/214641f77df6f318a4b3a0b09723c19859a103f4
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Mar 5 17:04:09 2017 +0100
Runtime file updates.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 05 Mar 2017 17:15:05 +0100 |
parents | 9f48eab77d62 |
children | d0a20101ecb2 |
line wrap: on
line diff
--- a/runtime/doc/pattern.txt +++ b/runtime/doc/pattern.txt @@ -1,4 +1,4 @@ -*pattern.txt* For Vim version 8.0. Last change: 2016 Sep 11 +*pattern.txt* For Vim version 8.0. Last change: 2017 Mar 05 VIM REFERENCE MANUAL by Bram Moolenaar @@ -869,10 +869,13 @@ An ordinary atom can be: \%V Match inside the Visual area. When Visual mode has already been stopped match in the area that |gv| would reselect. This is a |/zero-width| match. To make sure the whole pattern is - inside the Visual area put it at the start and end of the pattern, - e.g.: > - /\%Vfoo.*bar\%V -< Only works for the current buffer. + inside the Visual area put it at the start and just before the end of + the pattern, e.g.: > + /\%Vfoo.*ba\%Vr +< This works if "foo bar" (or more) was Visually selected. This: > + /\%Vfoo.*ba\%Vr +< would match "foo bar" if the Visual selection continues after the "r". + Only works for the current buffer. */\%#* *cursor-position* \%# Matches with the cursor position. Only works when matching in a