Voodoo programming is when we write code that we don’t really understand. We know we shouldn’t do it. But how do we stop?
Don’t start over. Edit the register visually.
Write a recursive Vim macro with qqq
to clear the q
register,
qq
to start recording the macro,
doing your work,
invoking the macro recursively with @q
,
stop recording the macro with q
,
and then invoking the macro with @q
.