summaryrefslogtreecommitdiffstats
path: root/runtime/doc/pattern.txt
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-03-05 17:04:09 +0100
committerBram Moolenaar <Bram@vim.org>2017-03-05 17:04:09 +0100
commit214641f77df6f318a4b3a0b09723c19859a103f4 (patch)
tree9422434318c17140266d397e16fd359e81bc75e7 /runtime/doc/pattern.txt
parent066029ef92b45dc4bd21a353b1fac25841062c26 (diff)
Runtime file updates.
Diffstat (limited to 'runtime/doc/pattern.txt')
-rw-r--r--runtime/doc/pattern.txt13
1 files changed, 8 insertions, 5 deletions
diff --git a/runtime/doc/pattern.txt b/runtime/doc/pattern.txt
index 7c834b3cb9..027f47bf51 100644
--- 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 @@ $ At end of pattern or in front of "\|", "\)" or "\n" ('magic' on):
\%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