I can use the powerful
:g command to delete lines that contain a certain pattern like this:
I thought I should paste the deleted content to a new place but I cannot find all those lines that have been removed by checking the registers:
" register only remembered the one line of them which I thought would only be the last line deleted.
Can I gather all the deleted lines in one register and use them elsewhere?