Vim is a superb tool for repeating changes, and there is even a whole chapter in the user manual about repeating commands. Before we discuss macros, you should master the . dot command first. It repeats the previous change, and no matter how trivial that sounds, this is the command I use a zillion times a day. Your browser doesn't support HTML video. Here is a link to the video instead. I remove a class attribute from the HTML element using d2f" and repeat the same change on multiple elements...