Todo: Delete the second 'o'.
foobar
foobar
foobar
foobar
foobar
In vim with macro:
-
position your cursor on (1/1)
-
record macro: qallxhhjq
q = start/stop macro recording
a = name of macro for invocation
llxhhj = macro body, commands to execute (very lame solution: right, right, delete character, left, left, one line down
the "one line down" is important if you do want execute the macro multiple times! -
position your cursor on (1/1)
-
invoke macro a: 5@a
Result:
fobar
fobar
fobar
fobar
fobar