I'm trying to select specific lines without too much cursor movement - ranages to the rescue! But, let's assume I'm working on line 15370 (legacy codebase :() and want to delete lines 15355 and the tree following lines. I could :15355,15358d
or to save some typing :15355;+3d
but both will move the cursor. Actually, the ;
will even move the cursor if I'm only yanking instead of deleting those now.
How could I specify a relative line number as the second argument of a range without moving the cursor? Is there something like a back reference in regular expressions for ranges?
vim
is computer software and therefore absolutely on-topic here. Can you please point me to the thread that claims they're off topic here and should be asked on Stack Overflow? That's simply not correct. Of course, they are acceptable there as well, so if you really want, let me know and I'll move it. Cheers