Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

In Vim, with ., I can repeat the last normal mode command; for example:

dd.

deletes a line twice.
But, if I type

5j.

the cursor does't move 10 lines down. How do I repeat the last normal mode command, especially a move?

share|improve this question
add comment

2 Answers

vim doesn't do this unfortunately. The best you can do is install the repmo.vim plugin, which repeats movement commands that have a count.

share|improve this answer
add comment

Actually . repeats the last change, not the last normal mode command. As Paul said, you will need a plugin to allow you to repeat motions.

See ":help .".

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.