One thing I do all the time is making macros on the fly for repetitive edits with :map. E.g., switch the current and next line
:map * ddp
Then type * in command mode to execute the steps.
And if you mangle your file beyond hope with out of control macros, there's always u to undo and :q! to quit without saving.