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

51 active golfers, 285 entries

Leaderboard (lowest score wins):
43
#31 - Chester Yap / @Chest_ErYap

08/29/2019 at 03:45PM

47
#32 - Henrique Malheiro / @rike09

08/23/2019 at 05:57PM

55
#33 - serent / @serent

08/23/2019 at 09:57PM

58
#34 - countime / @countime1

03/13/2020 at 06:49AM

58
#35 - hepebexรจ / @hepebexe

01/15/2021 at 09:49PM

62
#36 - ๐šƒ๐š’๐š๐š˜๐šž๐šŠ๐š— ๐šƒ๐šŽ๐šข๐šœ๐šœ๐š’๐šŽ๐š› / @TitouanT_

08/21/2019 at 07:55AM

62
#37 - Mauricio Ariza / @_hell_spawn

08/21/2019 at 02:11PM

62
#38 - vim_ninja / @NinjaVim

08/23/2019 at 03:35AM

66
#39 - Dax / @zacoxi

08/22/2019 at 02:46AM

76
#40 - pysnow530 / @pysnow530

11/23/2019 at 09:12AM

82
#41 - Paul Inc / @hiniol1982

08/24/2019 at 10:35AM

88
#42 - Floyd Gantt / @fgantt

10/16/2019 at 06:33PM

97
#43 - Cristian Cazacu / @kryshac

05/12/2020 at 09:45PM

103
#44 - mowglian / @mowglian

01/13/2020 at 09:36PM

109
#45 - cรญnicoycansino / @pgv958

12/05/2019 at 10:24AM

109
#46 - Oleg / @colega

01/02/2020 at 07:25PM

114
#47 - Jason Neylon / @jasonneylon

02/09/2020 at 09:38AM

116
#48 - Scott Smith / @Scottaino

01/24/2020 at 05:35PM

123
#49 - JimmyGymglish / @JGymglish

01/15/2020 at 02:14PM

128
#50 - Przemysล‚aw Michalak / @dambusio

11/24/2019 at 03:28PM

157
#51 - Thomas Jung / @ThomasAJung

01/27/2020 at 10:03AM