In this screencast, I teach how to record a useful vim macro that does a simple RSpec "refactoring".
(You'll want to open it on Youtube and watch in high-resolution.)
7G - jump to line 7
"td - delete into the t register
"tp - put from the t register
qq - start recording a macro (just a series of keystrokes) into register q
@q - execute the keystrokes stored in register q
vmap - set up a mapping active only when in visual mode