I trying to search and copy the matches within a limited scope in vim. as mentioned in this answer. I am trying to copy the result into a new vim tab using
:'<,'>g/foo/y A
but when a open a new tab :tabnew
and try to paste p
nothing is showing.
1. so, my question is if i can redirect the gsearch output into a new tab?
2. or how do i properly copy the output into a register and paste from the register to a new tab?