comparison runtime/doc/usr_27.txt @ 17433:ca8e754bdd53

Update runtime files commit https://github.com/vim/vim/commit/85850f3a5ef9f5a9d22e908ef263de8faa265a95 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Jul 19 22:05:51 2019 +0200 Update runtime files
author Bram Moolenaar <Bram@vim.org>
date Fri, 19 Jul 2019 22:15:08 +0200
parents 5c5908e81e93
children af69c9335223
comparison
equal deleted inserted replaced
17432:d13620591637 17433:ca8e754bdd53
1 *usr_27.txt* For Vim version 8.1. Last change: 2018 Jan 26 1 *usr_27.txt* For Vim version 8.1. Last change: 2019 Jul 14
2 2
3 VIM USER MANUAL - by Bram Moolenaar 3 VIM USER MANUAL - by Bram Moolenaar
4 4
5 Search commands and patterns 5 Search commands and patterns
6 6
472 Vim can find a pattern that includes a line break. You need to specify where 472 Vim can find a pattern that includes a line break. You need to specify where
473 the line break happens, because all items mentioned so far don't match a line 473 the line break happens, because all items mentioned so far don't match a line
474 break. 474 break.
475 To check for a line break in a specific place, use the "\n" item: > 475 To check for a line break in a specific place, use the "\n" item: >
476 476
477 /the\nword 477 /one\ntwo
478 478
479 This will match at a line that ends in "the" and the next line starts with 479 This will match at a line that ends in "one" and the next line starts with
480 "word". To match "the word" as well, you need to match a space or a line 480 "two". To match "one two" as well, you need to match a space or a line
481 break. The item to use for it is "\_s": > 481 break. The item to use for it is "\_s": >
482 482
483 /the\_sword 483 /one\_stwo
484 484
485 To allow any amount of white space: > 485 To allow any amount of white space: >
486 486
487 /the\_s\+word 487 /one\_s\+two
488 488
489 This also matches when "the " is at the end of a line and " word" at the 489 This also matches when "one " is at the end of a line and " two" at the
490 start of the next one. 490 start of the next one.
491 491
492 "\s" matches white space, "\_s" matches white space or a line break. 492 "\s" matches white space, "\_s" matches white space or a line break.
493 Similarly, "\a" matches an alphabetic character, and "\_a" matches an 493 Similarly, "\a" matches an alphabetic character, and "\_a" matches an
494 alphabetic character or a line break. The other character classes and ranges 494 alphabetic character or a line break. The other character classes and ranges