summaryrefslogtreecommitdiffstats
path: root/runtime/doc/pattern.txt
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2005-01-25 22:12:55 +0000
committerBram Moolenaar <Bram@vim.org>2005-01-25 22:12:55 +0000
commit8f999f1999cc6f4ccaafab36df25b6d6b1d70117 (patch)
treea5f5ed9ea42204f8c229101ced7e3758032871fb /runtime/doc/pattern.txt
parentdf3267e4e1872b2964c8882d9231bafff430f956 (diff)
updated for version 7.0044
Diffstat (limited to 'runtime/doc/pattern.txt')
-rw-r--r--runtime/doc/pattern.txt8
1 files changed, 6 insertions, 2 deletions
diff --git a/runtime/doc/pattern.txt b/runtime/doc/pattern.txt
index 16e8890110..21c9f57c09 100644
--- a/runtime/doc/pattern.txt
+++ b/runtime/doc/pattern.txt
@@ -1,4 +1,4 @@
-*pattern.txt* For Vim version 7.0aa. Last change: 2004 Dec 18
+*pattern.txt* For Vim version 7.0aa. Last change: 2005 Jan 24
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -217,7 +217,7 @@ To clear the last used search pattern: >
This will not set the pattern to an empty string, because that would match
everywhere. The pattern is really cleared, like when starting Vim.
-The search usual skips matches that don't move the cursor. Whether the next
+The search usually skips matches that don't move the cursor. Whether the next
match is found at the next character or after the skipped match depends on the
'c' flag in 'cpoptions'. See |cpo-c|.
with 'c' flag: "/..." advances 1 to 3 characters
@@ -225,6 +225,10 @@ match is found at the next character or after the skipped match depends on the
The unpredictability with the 'c' flag is caused by starting the search in the
first column, skipping matches until one is found past the cursor position.
+When searching backwards, searching starts at the start of the line, using the
+'c' flag in 'cpoptions' as described above. Then the last match before the
+cursor position is used.
+
In Vi the ":tag" command sets the last search pattern when the tag is searched
for. In Vim this is not done, the previous search pattern is still remembered,
unless the 't' flag is present in 'cpoptions'. The search pattern is always