redirect selected parts to a new file
1: :g/patten/y A Append to the
contents of the register if its name is given
uppercase {A-Z}
create a file in vim
"ap
2:delete unwanted lines
:g/^[^0-9]\+\n/d
3: :redir >> tmp
:g/^\d\+/p
:redir END
"send output of previous global command to a new window
:nmap <F5> :redir @a<CR>:g//<CR>:redir END<CR>:new<CR>:put! a<CR><CR>