Search for more than one item in Guim

Is there an easy way in Gvim to search for multiple search items in a file at the same time? ie I want Gvim to highlight Word1 and Word2 in a given file, or RegExp1 and RegExp2 in a given file at the same time.

+3
source share
1 answer

Use the regex operator "or": /Word1\|Word2

+4
source

Source: https://habr.com/ru/post/1789606/


All Articles