Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
512 views
in Technique[技术] by (71.8m points)

vim - How to jump down X amount of lines, over and over

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?

question from:https://stackoverflow.com/questions/6220836/how-to-jump-down-x-amount-of-lines-over-and-over

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Instead of 10j, you can run:

:+10

Then you can repeat the last ex-mode command with @:.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share
...