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 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


Created by: @aigledesalpes

57 active golfers, 320 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

33
#8 - Roman Privalov / @RomanPrivalov

09/24/2021 at 07:43PM

33
#9 - moh ayaya / @AyayaMoh

09/03/2023 at 05:10PM

33
#10 - Peppa Pig / @PeppaPi95550250

05/26/2024 at 06:27AM

33
#11 - Aly Thobani / @alythobani

05/30/2024 at 11:00PM

34
#12 - XiaoXiaoLui / @XiaoXiaoLui1

08/25/2019 at 02:33PM

34
#13 - Martin Delille / @martinodelilo

08/27/2019 at 12:27PM

34
#14 - Baine Wedlock / @BaineWedlock

09/09/2019 at 12:30PM

34
#15 - Ivan Volosyuk / @IvanVolosyuk

10/22/2019 at 02:51PM

34
#16 - Lory / @Lory46845742

11/02/2019 at 10:51AM

34
#17 - Camillott Games / @camillottgames

11/28/2019 at 10:55PM

34
#18 - chocolate / @chocola81394123

11/28/2020 at 01:20PM

34
#19 - z00master / @z00master

08/26/2022 at 06:39AM

35
#20 - Stas Krul / @ironimus42

08/22/2019 at 10:24AM

35
#21 - Mario Olofo / @mario_olofo

08/22/2019 at 03:31PM

35
#22 - Tim Dean / @Tmdean

08/23/2019 at 11:05PM

35
#23 - sundeep routhu / @sundeep12005

08/29/2019 at 04:37PM

35
#24 - dpetrovic_vimgolf / @DpetrovicV

09/06/2019 at 12:20PM

35
#25 - Zach Ingbretsen / @ZIngbretsen

09/07/2019 at 05:48PM

35
#26 - floyd / @floyd10086

03/27/2020 at 06:36AM

35
#27 - RockerZZY / @rocker_zzy

06/10/2020 at 02:54PM

35
#28 - treb / @treb03683130

03/10/2021 at 03:40AM

35
#29 - Sammit / @somemeatjain

02/06/2022 at 02:51PM

41
#30 - Smylers / @Smylers2

08/21/2019 at 08:07AM