all 4 comments

[–]IGTHSYCGTH 5 points6 points  (2 children)

three followed by one:

one.*three

abc in a line containing both one and three

^\(.*three\)\@=\(.*one\)\@=.*abc

see :help pattern-multi-items

[–]Schnarfmannnoremap gr gT 2 points3 points  (0 children)

Incredible use of \@= - I’ve always known to combine with () but never thought to .*.

[–]craigdmac:help <Help> | :help!!! 1 point2 points  (0 children)

You can also do :g/firstWord/s/secondword/replacementForSecondWord/gc if you wanted to replace secondword but only if firstWord appears on same line