ASCII-art Histogram
Create an ASCCI-art histogram for the given numbers. Make sure not to leave trailing whitespaces. Thanks to VimGolf I recently discovered a feature of Vim thAT blew my mind. I'm curious to see what real ninjas make of it ;-)
Start file
2 4 3 6 5 8 9 7 2 3 1
End file
[#] [#][#] [#][#][#] [#] [#][#][#] [#][#][#][#][#] [#] [#][#][#][#][#] [#][#][#][#][#][#][#] [#] [#][#][#][#][#][#][#][#][#][#] [#][#][#][#][#][#][#][#][#][#][#] 2 4 3 6 5 8 9 7 2 3 1
View Diff
0a1,10 > > [#] > [#][#] > [#][#][#] > [#] [#][#][#] > [#][#][#][#][#] > [#] [#][#][#][#][#] > [#][#][#][#][#][#][#] [#] > [#][#][#][#][#][#][#][#][#][#] > [#][#][#][#][#][#][#][#][#][#][#]
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 56 remaining solutions by signing in and submitting your own entry
#57 Thomas Jung / @ThomasAJung - Score: 157 - 01/27/20 @ 10:03
O<Esc>i[#p<BS>]<Esc>vhhyP<Esc>hh9P<Esc>yy9<Esc><Esc>8P<Esc>O<Esc>jjk<C-V>jjjjjjllr lll<C-V>jjjjllr lll<C-V>jjjjjjkllr lll<C-V>jjllr lll<C-V>jjjllr lll<C-V>llr llllll<C-V>jjll<Esc>kkhhDjlDjllllDjlDjlDjlDjl<C-V>llr llllllDjlD<Esc><Esc>:x<CR>
0 comments