Paragraph breaks
Swap the blank lines and the aaa lines.
Start file
aa
a
aaa
aa
a
aaa
aa
a
aaa
aa
a
End file
aa
a
aaa
aa
a
aaa
aa
a
aaa
aa
a
View Diff
Looking for a hint? I'm not giving one!
Looking for a diff? Not giving that either.
Solutions
The best way to learn is to practice. Below, you will find some of the solutions other golfers have entered. To unlock higher ranked solutions, submit your own entry which does as well or better than the solutions you can currently see - climb the ladder!
Check out these helpful resources to improve your Vim skills... Game on.
Unlock 166 remaining solutions by signing in and submitting your own entry
#167 Matt Walsh / @wattmalsh - Score: 52 - 02/08/17 @ 08:07
:%s/aaa\|^$/\=submatch(0) == "aaa" ? "" : "aaa"/g<CR>ZZ
0 comments