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 by @GavinKoeng:

Unlock 13 remaining solutions by signing in and submitting your own entry
Created by: @aigledesalpes

58 active golfers, 333 entries

Solutions by @GavinKoeng:
33
#12 - Gavin / @GavinKoeng

02/02/2026 at 06:04AM

34
#>20 - Gavin / @GavinKoeng

02/02/2026 at 06:04AM

35
#>30 - Gavin / @GavinKoeng

02/02/2026 at 06:03AM

41
#>34 - Gavin / @GavinKoeng

02/02/2026 at 06:00AM

41
#>34 - Gavin / @GavinKoeng

02/02/2026 at 06:01AM

58
#>41 - Gavin / @GavinKoeng

02/02/2026 at 05:57AM

62
#>44 - Gavin / @GavinKoeng

02/02/2026 at 05:56AM

65
#>44 - Gavin / @GavinKoeng

02/02/2026 at 05:54AM

72
#>46 - Gavin / @GavinKoeng

02/02/2026 at 05:52AM

76
#>47 - Gavin / @GavinKoeng

02/02/2026 at 05:46AM

81
#>47 - Gavin / @GavinKoeng

02/02/2026 at 05:43AM

97
#>50 - Gavin / @GavinKoeng

02/02/2026 at 05:35AM

98
#>50 - Gavin / @GavinKoeng

02/02/2026 at 05:32AM