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

hexagram binary tree

generate the binary tree that represents all possible hexagrams found in the book of changes (易经)

Start file


End file
                                ################################
                ################                ################
        ########        ########        ########        ########
    ####    ####    ####    ####    ####    ####    ####    ####
  ##  ##  ##  ##  ##  ##  ##  ##  ##  ##  ##  ##  ##  ##  ##  ##
 # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #

View Diff

1c1,6
< 
---
>                                 ################################
>                 ################                ################
>         ########        ########        ########        ########
>     ####    ####    ####    ####    ####    ####    ####    ####
>   ##  ##  ##  ##  ##  ##  ##  ##  ##  ##  ##  ##  ##  ##  ##  ##
>  # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #

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 13 remaining solutions by signing in and submitting your own entry
#14 manojkumar-spotmies / @manojkumar-spotmies - Score: 105 - 07/22/26 @ 05:49
32A <Esc>32A#<Esc>o<Esc>qq16A <Esc>16A#<Esc>q@qo<Esc>qq8A <Esc>8A#<Esc>q3@qo<Esc>qq4A <Esc>4A#<Esc>q8@qu7@qo<Esc>qq2A <Esc>2A#<Esc>q15@qo<Esc>qq1A <Esc>1A#<Esc>q23@q7@q@q:x<CR>

0 comments


Created by: @anakojm

14 active golfers, 41 entries

Leaderboard (lowest score wins):
24
#1 - Peppa Pig / @PeppaPigSg

06/27/2026 at 04:43AM

24
#2 - Gavin / @GavinKoeng

07/15/2026 at 03:56AM

28
#3 - wpr__ / @wpr____

06/28/2026 at 05:09AM

28
#4 - “Smylers” / @Smylers2

07/14/2026 at 07:52AM

30
#5 - bemmesr / @bemmesr

07/02/2026 at 07:31PM

30
#6 - Joshu Coats / @rhwlo

07/04/2026 at 10:49PM

30
#7 - Michael Shaffer / @Michael-Shaffer

07/05/2026 at 01:53AM

32
#8 - yit6 / @yit6

07/02/2026 at 04:14PM

52
#9 - Baptiste Nicolet / @bathal1

07/16/2026 at 10:15AM

65
#10 - Najeeb Al-Shabibi / @master-spike

06/27/2026 at 11:55PM

70
#11 - MartinDanesh / @MartinDanesh

07/12/2026 at 03:11PM

76
#12 - Anako Jeannin-Mallet / @anakojm

06/28/2026 at 11:55AM

88
#13 - Nıklas Rıeken / @ttnick

07/01/2026 at 01:25PM

105
#14 - manojkumar-spotmies / @manojkumar-spotmies

07/22/2026 at 05:49AM