In the text below, if I want to replace book1 and book2 with pen I could yark pen and go to the beginning of the 2 and 3 lines and hit . (dot) to replace the words.
pen;
book1;
book2;
book3;
but, how can I replace multiple words with yanked text? For example, I want to replace book 1 and book 2 with pen
Before:
pen;
book 1;
book 2;
book 3;
After:
pen;
pen;
pen;
book 3;
Is it possible to replace book 1 and book 2 without yanking the word pen twice? Maybe a keybind you think is good?