aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc/pattern.txt
diff options
context:
space:
mode:
authorJustin Gassner <justin.gassner@web.de>2016-01-19 21:58:36 +0100
committerFlorian Walch <florian@fwalch.com>2016-01-23 12:05:15 +0100
commit0ccd1ef725ce4fbe0f86929efad25b24b17c2485 (patch)
tree38c73ec4628b645b8788e1228e17e5b3be53097e /runtime/doc/pattern.txt
parentfeb70192a85d04343ecc383ea9a42aa8cd15e98d (diff)
downloadrneovim-0ccd1ef725ce4fbe0f86929efad25b24b17c2485.tar.gz
rneovim-0ccd1ef725ce4fbe0f86929efad25b24b17c2485.tar.bz2
rneovim-0ccd1ef725ce4fbe0f86929efad25b24b17c2485.zip
vim-patch:5837f1f #4066
Update runtime files. https://github.com/vim/vim/commit/5837f1f447c34628268aab52476a79d57b6a7eaf
Diffstat (limited to 'runtime/doc/pattern.txt')
-rw-r--r--runtime/doc/pattern.txt7
1 files changed, 5 insertions, 2 deletions
diff --git a/runtime/doc/pattern.txt b/runtime/doc/pattern.txt
index 21eeb9bc41..84dce82176 100644
--- a/runtime/doc/pattern.txt
+++ b/runtime/doc/pattern.txt
@@ -1,4 +1,4 @@
-*pattern.txt* For Vim version 7.4. Last change: 2015 Feb 17
+*pattern.txt* For Vim version 7.4. Last change: 2015 Mar 16
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -1052,7 +1052,10 @@ x A single character, with no special meaning, matches itself
*E769*
When the ']' is not there Vim will not give an error message but
assume no collection is used. Useful to search for '['. However, you
- do get E769 for internal searching.
+ do get E769 for internal searching. And be aware that in a
+ `:substitute` command the whole command becomes the pattern. E.g.
+ ":s/[/x/" searches for "[/x" and replaces it with nothing. It does
+ not search for "[" and replaces it with "x"!
If the sequence begins with "^", it matches any single character NOT
in the collection: "[^xyz]" matches anything but 'x', 'y' and 'z'.