comparison runtime/doc/pattern.txt @ 11518:63b0b7b79b25

Update runtime files. commit https://github.com/vim/vim/commit/3ec574f2b549f456f664f689d6da36dc5719aeb9 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Jun 13 18:12:01 2017 +0200 Update runtime files. Includes changing &sw to shiftwidth() for all indent scripts.
author Christian Brabandt <cb@256bit.org>
date Tue, 13 Jun 2017 18:15:04 +0200
parents 4aae8146c21f
children 167a030448fa
comparison
equal deleted inserted replaced
11517:01330ca5f7f8 11518:63b0b7b79b25
1 *pattern.txt* For Vim version 8.0. Last change: 2017 Mar 29 1 *pattern.txt* For Vim version 8.0. Last change: 2017 Jun 05
2 2
3 3
4 VIM REFERENCE MANUAL by Bram Moolenaar 4 VIM REFERENCE MANUAL by Bram Moolenaar
5 5
6 6
1074 do get E769 for internal searching. And be aware that in a 1074 do get E769 for internal searching. And be aware that in a
1075 `:substitute` command the whole command becomes the pattern. E.g. 1075 `:substitute` command the whole command becomes the pattern. E.g.
1076 ":s/[/x/" searches for "[/x" and replaces it with nothing. It does 1076 ":s/[/x/" searches for "[/x" and replaces it with nothing. It does
1077 not search for "[" and replaces it with "x"! 1077 not search for "[" and replaces it with "x"!
1078 1078
1079 *E944* *E945*
1079 If the sequence begins with "^", it matches any single character NOT 1080 If the sequence begins with "^", it matches any single character NOT
1080 in the collection: "[^xyz]" matches anything but 'x', 'y' and 'z'. 1081 in the collection: "[^xyz]" matches anything but 'x', 'y' and 'z'.
1081 - If two characters in the sequence are separated by '-', this is 1082 - If two characters in the sequence are separated by '-', this is
1082 shorthand for the full list of ASCII characters between them. E.g., 1083 shorthand for the full list of ASCII characters between them. E.g.,
1083 "[0-9]" matches any decimal digit. Non-ASCII characters can be 1084 "[0-9]" matches any decimal digit. If the starting character exceeds
1084 used, but the character values must not be more than 256 apart. 1085 the ending character, e.g. [c-a], E944 occurs. Non-ASCII characters
1086 can be used, but the character values must not be more than 256 apart
1087 in the old regexp engine. For example, searching by [\u3000-\u4000]
1088 after setting re=1 emits a E945 error. Prepending \%#=2 will fix it.
1085 - A character class expression is evaluated to the set of characters 1089 - A character class expression is evaluated to the set of characters
1086 belonging to that character class. The following character classes 1090 belonging to that character class. The following character classes
1087 are supported: 1091 are supported:
1088 Name Func Contents ~ 1092 Name Func Contents ~
1089 *[:alnum:]* [:alnum:] isalnum ASCII letters and digits 1093 *[:alnum:]* [:alnum:] isalnum ASCII letters and digits