How do you use a macro to reverse the order of words on a line?
Answer
qa$bywdw0Pa <Esc>q
Explanation
Record a macro that yanks the last word, deletes it, pastes it at the beginning of the line. Repeat to reverse all word order.
qa$bywdw0Pa <Esc>q
Record a macro that yanks the last word, deletes it, pastes it at the beginning of the line. Repeat to reverse all word order.