Real Vim ninjas count every keystroke - do you?

Pick a challenge, fire up Vim, and show us what you got.

Changelog, Rules & FAQ, updates: @vimgolf, RSS.

Your VimGolf key: please sign in

$ gem install vimgolf
$ vimgolf setup
$ vimgolf put 5d5c4f742eb5c3000624f668

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 48 remaining solutions by signing in and submitting your own entry
#49 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


Created by: @aigledesalpes

49 active golfers, 269 entries

Leaderboard (lowest score wins):
33
#1 - Saki Gw / @Sakigw

08/27/2019 at 12:52PM

33
#2 - John Braxler / @braxler

08/27/2019 at 01:44PM

33
#3 - james_bunch / @james_bunch

08/27/2019 at 05:19PM

33
#4 - sooqua / @sooqua

08/29/2019 at 12:30AM

33
#5 - vimgolfer / @vimgolfer7

09/21/2019 at 05:38PM

33
#6 - Viktor Styrud / @ViktorStyrud

09/27/2019 at 06:42AM

33
#7 - Jung Yeon Park / @park_jungy

02/01/2021 at 06:10PM

34
#8 - XiaoXiaoLui / @XiaoXiaoLui1

08/25/2019 at 02:33PM

34
#9 - Martin Delille / @martinodelilo

08/27/2019 at 12:27PM

34
#10 - Baine Wedlock / @BaineWedlock

09/09/2019 at 12:30PM

34
#11 - Ivan Volosyuk / @IvanVolosyuk

10/22/2019 at 02:51PM

34
#12 - Lory / @Lory46845742

11/02/2019 at 10:51AM

34
#13 - Camillott Games / @camillottgames

11/28/2019 at 10:55PM

34
#14 - chocolate / @chocola81394123

11/28/2020 at 01:20PM

35
#15 - Stas Krul / @ironimus42

08/22/2019 at 10:24AM

35
#16 - Mario Olofo / @mario_olofo

08/22/2019 at 03:31PM

35
#17 - Tim Dean / @Tmdean

08/23/2019 at 11:05PM

35
#18 - sundeep routhu / @sundeep12005

08/29/2019 at 04:37PM

35
#19 - dpetrovic_vimgolf / @DpetrovicV

09/06/2019 at 12:20PM

35
#20 - Zach Ingbretsen / @ZIngbretsen

09/07/2019 at 05:48PM

35
#21 - floyd / @floyd10086

03/27/2020 at 06:36AM

35
#22 - RockerZZY / @rocker_zzy

06/10/2020 at 02:54PM

35
#23 - treb / @treb03683130

03/10/2021 at 03:40AM

41
#24 - Smylers / @Smylers2

08/21/2019 at 08:07AM

41
#25 - Bill Ruddock / @biinari

08/31/2019 at 11:46PM

41
#26 - Roger Stoltz / @rogsto1

11/18/2019 at 08:14PM

43
#27 - Malcolm Sharpe / @blueblimpms

08/21/2019 at 04:24AM

43
#28 - John / @JohnJDoe2

08/21/2019 at 06:01AM

43
#29 - Chester Yap / @Chest_ErYap

08/29/2019 at 03:45PM

47
#30 - Henrique Malheiro / @rike09

08/23/2019 at 05:57PM