"What", "shall", "we", "do", "with", "the", "drunken", "sailor", "early", "in", "the", "morning",
%s/\w\+/"&",/g
:vnew
is more effcient than :vsplit
followed by :enew
.yit
is more efficient than vit
followed by y
.:help complex-repeats
) can playback commands that move the cursor to other windows, so you can use them for this sort of task. You might need to tweak this to work with the contents of your file, but the basic steps are:/tspan<cr>
: Search for the first tag.f>l
: Jump into the element contents.qq
: Start recording into the q
register.yit
: Yank the text.ctrl-w w
: Move cursor to your other window.p
: Paste the yanked text.ctrl-w p
: Move cursor back into the first window.n
: Jump to start of next tag.q
: Stop recording and save the macro.31@q
.:global
command.You can open the LibreOffice window completely by pressing the CTRL+Shift+J keys together.