Links: Vim

You can repeat the last edit command by pressing .

For example is you execute ciwhello<ESC> this will replace the word you’re over with hello. If you then move to a different word and press . that last command will be repeated and the word would also be changed to “hello”.

You can do this as many times as you want as long as you don’t use any other command in between.

The dot command can also be used with the number modifier, that way 3. will be the same as .

When to use a macro instead

The dot command only repeat commands that modify the text, it wont repeat the movement commands, macros don’t have that limitation.