The dot command is a very useful vi feature that enables repeated commands with or without repeat count.
| . | repeat the last operation of text change |
|---|---|
n. |
repeat the last operation n times |
The dot command can be used after delete, replace, change, yank/put or any other command that changes or deletes text.