In Vim, I usually want to repeat some series of commands some times. Say, I want to comment 5 lines, I would use
I//<Esc>j
.j.j.j.j
Is there any way to repeat the last ".j" part several times?
One way to do this is to assign your key sequence to a macro, then run the macro once followed by the @@
run-last-macro command. For example:
qa.jq@a@@
If you know how many times you want to repeat the macro, you can use 4@@
or whatever.