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):
41
#31 - Bill Ruddock / @biinari

08/31/2019 at 11:46PM

41
#32 - Roger Stoltz / @rogsto1

11/18/2019 at 08:14PM

41
#33 - Luoyb / @Luoyb

10/28/2023 at 03:19AM

43
#34 - Malcolm Sharpe / @blueblimpms

08/21/2019 at 04:24AM

43
#35 - J̻̕ͅo̠̻̘h̼̖n̙̩̝͕ D̹̗̗͝oe̶̱̥͙ / @JohnJDoe2

08/21/2019 at 06:01AM

43
#36 - Chester Yap / @Chest_ErYap

08/29/2019 at 03:45PM

47
#37 - Henrique Malheiro / @rike09

08/23/2019 at 05:57PM

55
#38 - serent / @serent

08/23/2019 at 09:57PM

58
#39 - countime / @countime1

03/13/2020 at 06:49AM

58
#40 - hepebexè / @hepebexe

01/15/2021 at 09:49PM

62
#41 - 𝚃𝚒𝚝𝚘𝚞𝚊𝚗 𝚃𝚎𝚢𝚜𝚜𝚒𝚎𝚛 / @TitouanT_

08/21/2019 at 07:55AM

62
#42 - Mauricio Ariza / @_hell_spawn

08/21/2019 at 02:11PM

62
#43 - vim_ninja / @NinjaVim

08/23/2019 at 03:35AM

66
#44 - Dax / @zacoxi

08/22/2019 at 02:46AM

72
#45 - Jay Solana / @JaySolana3

02/10/2023 at 04:12AM

76
#46 - pysnow530 / @pysnow530

11/23/2019 at 09:12AM

82
#47 - Paul Inc / @hiniol1982

08/24/2019 at 10:35AM

88
#48 - Floyd Gantt / @fgantt

10/16/2019 at 06:33PM

97
#49 - Cristian Cazacu / @kryshac

05/12/2020 at 09:45PM

103
#50 - mowglian / @mowglian

01/13/2020 at 09:36PM

109
#51 - cínicoycansino / @pgv958

12/05/2019 at 10:24AM

109
#52 - Oleg / @colega

01/02/2020 at 07:25PM

114
#53 - Jason Neylon / @jasonneylon

02/09/2020 at 09:38AM

116
#54 - Scott Smith / @Scottaino

01/24/2020 at 05:35PM

123
#55 - JimmyGymglish / @JGymglish

01/15/2020 at 02:14PM

128
#56 - Przemysław Michalak / @dambusio

11/24/2019 at 03:28PM

157
#57 - Thomas Jung / @ThomasAJung

01/27/2020 at 10:03AM