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 ^ ^ > /_\ /_\ /_\ /_\ /_\ /_\ /_\ /_\ > ^ ^ ^ ^ ^ ^ ^ ^ > /_\ /_\ /_\ /_\ /_\ /_\ /_\ /_\ > ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ > /_\ /_\ /_\ /_\ /_\ /_\ /_\ /_\ /_\ /_\ /_\ /_\ /_\ /_\ /_\ /_\
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 23 remaining solutions by signing in and submitting your own entry
#24 Tyler Breisacher / @tbreisacher - Score: 160 - 08/25/12 @ 19:08
qaG$:let x=col('.')<CR>{$:while col('.')<x<CR>s/$/ /<CR>normal $<CR>endwhile<CR><C-V>0GyGo<Esc>PPt^l:let y=col('.')<CR>qqb-:execute "normal ".y."i \<ESC>"<CR>q@b@a4@b@a8@b@a16@b:%s/ *$//<CR>ZZ
0 comments
Created by: @tbreisacher Tweet
24 active golfers, 82 entries
Leaderboard (lowest score wins):
#7 - πππππππ πππ’πππππ / @TitouanT_
02/20/2019 at 03:20PM