Lets say I have the following text file
name: John Doe
description: My name is John Doe and I'm really good at vim!
name: John Doe
description: My name is John Doe and I'm really good at vim!
name: John Doe
description: My name is John Doe and I'm really good at vim!
name: John Doe
description: My name is John Doe and I'm really good at vim!
Is there a way to record a macro that does the following:
Starting at the first John:
cwbut allow the user who runs the macro to give input herejs<is>wsneak the word after is.replace John with the given input- Repeat
Ideally I would like to enter the following keystrokes on the first line:
@qJane
and have:
name: Jane Doe
description: My name is Jane Doe and I'm really good at vim!
@qJim
name: Jim Doe
description: My name is Jim Doe and I'm really good at vim!