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

Filling braces

Inspired by a question on CoDidact (https://software.codidact.com/posts/296501), I wondered if Vim could offer a satisfactory ‘solution’ to this problem.

Start file
.ocean {}
.land {}
.sky {}
End file
.ocean {blue}
.land {green}
.sky {lightblue}

View Diff

1,3c1,3
< .ocean {}
< .land {}
< .sky {}
---
> .ocean {blue}
> .land {green}
> .sky {lightblue}

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 150 remaining solutions by signing in and submitting your own entry
#151 Jonathan Buss / @Jboss-10 - Score: 53 - 11/06/26 @ 18:51
<Right><Right><Right><Right><Right><Right><Right><Right>blue<Esc><Up><Right><Right><Right><Right><Right><Right><Right><Right>a<Left>blue<Down><Left>green<Down>l<BS><Left>lightblue<Esc>:wq<CR>

0 comments


Created by: @bemmesr

151 active golfers, 460 entries

Leaderboard (lowest score wins):
33
#121 - Oleksandr Kos / @oleksnkos

10/07/2026 at 04:41PM

34
#122 - Martin Mikeštík / @martin-mikestik

09/06/2026 at 11:11AM

34
#123 - Simo / @lamraoui

09/09/2026 at 06:58AM

34
#124 - Moha / @mohaMgT

09/13/2026 at 06:27AM

34
#125 - zain rizwan / @iamzainrizwan

10/08/2026 at 01:48PM

34
#126 - Gleb Tregubov / @gleb_tregubov

10/10/2026 at 10:36PM

34
#127 - El-Mehdi-MOUMEN / @El-Mehdi-MOUMEN

10/19/2026 at 06:04PM

34
#128 - Kesemory / @kesemory

11/05/2026 at 01:36PM

35
#129 - adirohayonk / @adirohayonk

09/11/2026 at 08:05PM

35
#130 - gliglo7219-gif / @gliglo7219-gif

10/06/2026 at 01:44AM

35
#131 - Juan Sebastian Aragon / @jaragon81

10/09/2026 at 01:36PM

35
#132 - Dambibimbus / @AbdulKralDzungle

11/08/2026 at 12:03PM

36
#133 - Philippe Ung / @PhilippeUng

10/19/2026 at 09:46AM

36
#134 - zjuyzwang / @zjuyzwang

11/05/2026 at 04:38AM

37
#135 - Jungho Choi / @junghochoi

09/23/2026 at 08:06PM

37
#136 - Giacomo Mellone / @giacomomellone_

10/05/2026 at 02:39PM

37
#137 - Vechyaslav Zalupenko / @iouwoiiqw

10/07/2026 at 09:11AM

37
#138 - kajikaji5678 / @kajikaji5678

10/08/2026 at 09:57PM

37
#139 - KIM Hyeok / @infinitekh

11/05/2026 at 06:25AM

38
#140 - Priyanshu Katuwal / @priyanshulxiv

09/25/2026 at 11:51PM

39
#141 - Vladimir / @Vlanhinga

10/17/2026 at 04:25AM

44
#142 - notzeussz / @notzeussz

09/30/2026 at 08:09AM

44
#143 - ajkaco / @ajkaco

10/07/2026 at 09:25PM

45
#144 - Aaron Jensen / @ajensen3point14

10/07/2026 at 06:15PM

46
#145 - naoki / @elmoterate

09/11/2026 at 08:22AM

46
#146 - Filip Redina / @SecretiveBnana

10/04/2026 at 11:21AM

46
#147 - 2slgbtqia / @2slgbtqia

10/13/2026 at 10:17PM

47
#148 - 아빠는 육아중 / @YugAjung

10/08/2026 at 07:13AM

49
#149 - khankann / @khankann

09/18/2026 at 09:28PM

50
#150 - Hyunwoo Jo / @hwoojo

09/02/2026 at 08:09AM