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 34 remaining solutions by signing in and submitting your own entry
#35 Przemysław Michalak / @dambusio - Score: 128 - 11/24/19 @ 15:28
O<C-O>11ia<Esc>O<C-O>10ia<Esc>Ob<C-O>7ia<Esc>lx0ib<Esc>$aba<Esc>Obab<C-O>5aa<Esc>Obbbaaaaa<Esc>Obbbabaaa<Esc>O<Esc><Esc>bbibbbbbaaa<Esc>O<Esc><Esc><Esc><Esc><Esc>ibbbbbaa<Esc>Obbbbbba<Esc>O<Esc>:%s/b/   /g<CR>:%s/a/[#]/g<CR>ZZ

0 comments


Created by: @aigledesalpes

35 active golfers, 199 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

34
#7 - XiaoXiaoLui / @XiaoXiaoLui1

08/25/2019 at 02:33PM

34
#8 - Martin Delille / @martinodelilo

08/27/2019 at 12:27PM

34
#9 - Baine Wedlock / @BaineWedlock

09/09/2019 at 12:30PM

34
#10 - Ivan Volosyuk / @IvanVolosyuk

10/22/2019 at 02:51PM

34
#11 - Lory / @Lory46845742

11/02/2019 at 10:51AM

34
#12 - Camillott Games / @camillottgames

11/28/2019 at 10:55PM

35
#13 - Stas Krul / @ironimus42

08/22/2019 at 10:24AM

35
#14 - Mario Olofo / @mario_olofo

08/22/2019 at 03:31PM

35
#15 - Tim Dean / @Tmdean

08/23/2019 at 11:05PM

35
#16 - sundeep routhu / @sundeep12005

08/29/2019 at 04:37PM

35
#17 - dpetrovic_vimgolf / @DpetrovicV

09/06/2019 at 12:20PM

35
#18 - Zach Ingbretsen / @ZIngbretsen

09/07/2019 at 05:48PM

41
#19 - Smylers / @Smylers2

08/21/2019 at 08:07AM

41
#20 - Bill Ruddock / @biinari

08/31/2019 at 11:46PM

41
#21 - Roger Stoltz / @rogsto1

11/18/2019 at 08:14PM

43
#22 - Malcolm Sharpe / @blueblimpms

08/21/2019 at 04:24AM

43
#23 - John / @JohnJDoe2

08/21/2019 at 06:01AM

43
#24 - Chester Yap / @Chest_ErYap

08/29/2019 at 03:45PM

47
#25 - Henrique Malheiro / @rike09

08/23/2019 at 05:57PM

55
#26 - serent / @serent

08/23/2019 at 09:57PM

62
#27 - Titouan Teyssier / @TitouanT_

08/21/2019 at 07:55AM

62
#28 - Mauricio Ariza / @_hell_spawn

08/21/2019 at 02:11PM

62
#29 - vim_ninja / @NinjaVim

08/23/2019 at 03:35AM

66
#30 - Dax / @zacoxi

08/22/2019 at 02:46AM