Vim: when matching a string across multiple lines using \_. in regex, the :yank command only works for the first line
Try this:
:let @a=''
:g/first\_.*second.*$/normal! v/second^M$"Ay
Enter the ^M
with CTRL-V then Enter.
Try this:
:let @a=''
:g/first\_.*second.*$/normal! v/second^M$"Ay
Enter the ^M
with CTRL-V then Enter.