As I said in a previous post (“Repeat command” in TextMate), one of the things I use a lot in jed editor, my favorite terminal editor, is the “repeat command”: pressing ESC, typing a number and then something will repeat something number times. This also works in emacs and bash.
It can also be used with other commands like delete, yank (paste) and such. I don’t do that often, but I do use this for lines of '-' or '=' quite often.
The previous solution I posted was a “snippet”. It implied typing a number, “:”, what to repeat, select that text and then hit some hotkey.
Slow, and annoying because we have to toy with the shift + arrow keys to select the text.
Here’s a new version as a “command”.