comparison runtime/doc/pattern.txt @ 7384:aea5ebf352c4

commit https://github.com/vim/vim/commit/256972a9849b5d575b62a6a71be5b6934b5b0e8b Author: Bram Moolenaar <Bram@vim.org> Date: Tue Dec 29 19:10:25 2015 +0100 Updated runtime files.
author Christian Brabandt <cb@256bit.org>
date Tue, 29 Dec 2015 19:15:06 +0100
parents 12155a47f6c2
children 05cf4cc72a9f
comparison
equal deleted inserted replaced
7383:377a68b9fa06 7384:aea5ebf352c4
1 *pattern.txt* For Vim version 7.4. Last change: 2015 Mar 16 1 *pattern.txt* For Vim version 7.4. Last change: 2015 Dec 26
2 2
3 3
4 VIM REFERENCE MANUAL by Bram Moolenaar 4 VIM REFERENCE MANUAL by Bram Moolenaar
5 5
6 6
391 Use of "\M" makes the pattern after it be interpreted as if 'nomagic' is used. 391 Use of "\M" makes the pattern after it be interpreted as if 'nomagic' is used.
392 */\v* */\V* 392 */\v* */\V*
393 Use of "\v" means that in the pattern after it all ASCII characters except 393 Use of "\v" means that in the pattern after it all ASCII characters except
394 '0'-'9', 'a'-'z', 'A'-'Z' and '_' have a special meaning. "very magic" 394 '0'-'9', 'a'-'z', 'A'-'Z' and '_' have a special meaning. "very magic"
395 395
396 Use of "\V" means that in the pattern after it only the backslash has a 396 Use of "\V" means that in the pattern after it only the backslash and the
397 special meaning. "very nomagic" 397 terminating character (/ or ?) has a special meaning. "very nomagic"
398 398
399 Examples: 399 Examples:
400 after: \v \m \M \V matches ~ 400 after: \v \m \M \V matches ~
401 'magic' 'nomagic' 401 'magic' 'nomagic'
402 $ $ $ \$ matches end-of-line 402 $ $ $ \$ matches end-of-line
403 . . \. \. matches any character 403 . . \. \. matches any character
404 * * \* \* any number of the previous atom 404 * * \* \* any number of the previous atom
405 ~ ~ \~ \~ latest substitute string
405 () \(\) \(\) \(\) grouping into an atom 406 () \(\) \(\) \(\) grouping into an atom
406 | \| \| \| separating alternatives 407 | \| \| \| separating alternatives
407 \a \a \a \a alphabetic character 408 \a \a \a \a alphabetic character
408 \\ \\ \\ \\ literal backslash 409 \\ \\ \\ \\ literal backslash
409 \. \. . . literal dot 410 \. \. . . literal dot
478 |/\%l| \%23l \%23l in line 23 |/zero-width| 479 |/\%l| \%23l \%23l in line 23 |/zero-width|
479 |/\%c| \%23c \%23c in column 23 |/zero-width| 480 |/\%c| \%23c \%23c in column 23 |/zero-width|
480 |/\%v| \%23v \%23v in virtual column 23 |/zero-width| 481 |/\%v| \%23v \%23v in virtual column 23 |/zero-width|
481 482
482 Character classes {not in Vi}: */character-classes* 483 Character classes {not in Vi}: */character-classes*
484 magic nomagic matches ~
483 |/\i| \i \i identifier character (see 'isident' option) 485 |/\i| \i \i identifier character (see 'isident' option)
484 |/\I| \I \I like "\i", but excluding digits 486 |/\I| \I \I like "\i", but excluding digits
485 |/\k| \k \k keyword character (see 'iskeyword' option) 487 |/\k| \k \k keyword character (see 'iskeyword' option)
486 |/\K| \K \K like "\k", but excluding digits 488 |/\K| \K \K like "\k", but excluding digits
487 |/\f| \f \f file name character (see 'isfname' option) 489 |/\f| \f \f file name character (see 'isfname' option)
508 |/\U| \U \U non-uppercase character [^A-Z] 510 |/\U| \U \U non-uppercase character [^A-Z]
509 |/\_| \_x \_x where x is any of the characters above: character 511 |/\_| \_x \_x where x is any of the characters above: character
510 class with end-of-line included 512 class with end-of-line included
511 (end of character classes) 513 (end of character classes)
512 514
515 magic nomagic matches ~
513 |/\e| \e \e <Esc> 516 |/\e| \e \e <Esc>
514 |/\t| \t \t <Tab> 517 |/\t| \t \t <Tab>
515 |/\r| \r \r <CR> 518 |/\r| \r \r <CR>
516 |/\b| \b \b <BS> 519 |/\b| \b \b <BS>
517 |/\n| \n \n end-of-line 520 |/\n| \n \n end-of-line
533 |/\c| \c \c ignore case, do not use the 'ignorecase' option 536 |/\c| \c \c ignore case, do not use the 'ignorecase' option
534 |/\C| \C \C match case, do not use the 'ignorecase' option 537 |/\C| \C \C match case, do not use the 'ignorecase' option
535 |/\Z| \Z \Z ignore differences in Unicode "combining characters". 538 |/\Z| \Z \Z ignore differences in Unicode "combining characters".
536 Useful when searching voweled Hebrew or Arabic text. 539 Useful when searching voweled Hebrew or Arabic text.
537 540
541 magic nomagic matches ~
538 |/\m| \m \m 'magic' on for the following chars in the pattern 542 |/\m| \m \m 'magic' on for the following chars in the pattern
539 |/\M| \M \M 'magic' off for the following chars in the pattern 543 |/\M| \M \M 'magic' off for the following chars in the pattern
540 |/\v| \v \v the following chars in the pattern are "very magic" 544 |/\v| \v \v the following chars in the pattern are "very magic"
541 |/\V| \V \V the following chars in the pattern are "very nomagic" 545 |/\V| \V \V the following chars in the pattern are "very nomagic"
542 |/\%#=| \%#=1 \%#=1 select regexp engine |/zero-width| 546 |/\%#=| \%#=1 \%#=1 select regexp engine |/zero-width|