How do I match only part of a search pattern in Vim using \zs and \ze?
/\(function\s\+\)\zs\w\+
Vim's \zs and \ze atoms let you control which part of a matched pattern gets highlighted and operated on.
/\(function\s\+\)\zs\w\+
Vim's \zs and \ze atoms let you control which part of a matched pattern gets highlighted and operated on.
/pattern1\_.*pattern2
Vim's \ modifier makes any character class match newlines too.