:vnew
is more effcient than:vsplit
followed by:enew
.yit
is more efficient thanvit
followed byy
.- Okay I'm being facetious. Sorry. To actually answer your question, macros (
: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 theq
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.
You can then play the macro back 31 times with the command:31@q
. - You could probably also do it with a
:global
command.https://vi.stackexchange.com/questions/12619/more-efficient-way-of-yanking-text-out-of-tags
dinsdag 13 juni 2017
Selecting text from SVG files
Enlarging Libreoffice window completely with command
You can open the LibreOffice window completely by pressing the CTRL+Shift+J keys together.
-
There is a way to delete empty lines in LibreOffice with regex. It is this command: ^$ But sometimes this doesn't work. Because the a...
-
Als je een goede pdf wilt maken van een Volkskrant artikel, moet je als volgt te werken gaan. Open de Volkskrant pagina, waar je een pdf van...
-
Changing language of keyboard with the command: setxkbmap fr.