Ó " Substitute...
. " Any character
/ " with
& " That character, followed by
GA*<C-v><esc> " "GA*<esc>"
D " Delete the line we just substituted on
8ï " Make 8 new empty lines
Î " On every line...
i " Insert...
Û " <current-line>
: " ':'
@ " Run the text we deleted as V code
@cairdcoinheringaahing This is a particularly hard to understand example because it half of it is building V code that does what we want, and the other half is running it
FWIW, <n>G moves the cursor to line #N, and A enters insert mode at the very end of the current line
@DrMcMoylex Give me a bit of time to get the basics of vim/V and I'll be able to use TIO rather than actual vim. I can try to teach myself the beginning.
Also, for the Motions subsection in the wiki, are they vim or V commands?
@cairdcoinheringaahing Basically, you need to get num1 into a certain register by deleting/yanking it. Then you do @<register> to run it as V code. Then, you'll do <C-a> which means (increment the next number after the cursor n times), which right after @<register> will be equivalent to num1<C-a>
@cairdcoinheringaahing Numbers
You can do it in two bytes if you take input in the right format: Try it online!
@cairdcoinheringaahing Then you need to delete it into a specific register, then do @<reg><command>
If it's just one digit, you can do x. If it's at the end of the line, I'd recommend D. Otherwise, diw is a safe bet, just less golfy
Oh yeah, BTW, to delete into register 'a' (for example) you want to do "ad<motion>, or "ax. If you don't specify a register, it'll always go to register " (double quote)
But two notes: 1) D is literally exactly the same as d$, so that can save one byte. 2) It doesn't delete an entire line. Note the differences here and here