I'm using 10j
to jump down 10 lines, but I want to easily jump 10 lines over and over. I don't want to have to perform the jump with a macro qv10jq@v@@
..
I wish there was a method for repeating down keys like motion has f then ; to continually jump (, to go back) to the next character(s).
is there anything shorter than my macro?
If we are in the vim editor, then simply do this, “Press the ENTER key, write the Line number, and press Shift+ g”: Again the output is the same.
Just add # at the beginning of all the lines you want to skip.
j and k move down and up one line, so 10j and 10k move down and up ten lines. You can repeat any motion by putting a number before it.
Instead of 10j
, you can run:
:+10
Then you can repeat the last ex-mode command with @:
.
Here's a plugin to do what you want. It maps ; to repeat the last motion command given with a count.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With