I frequently must correct the following rails code:
assert_equal value, expected
The two arguments to assert_equal are out of order, and should read:
assert_equal expected, value
In vim, what is the most efficient way of going from the first line to the second?
Via regex:
If you do it often you can make a map out of it, e.g.:
Put the cursor on the line you want to flip and hit
F5.