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):
31
#91 - Dennis Hübner / @hueby

09/16/2026 at 06:08AM

31
#92 - ocboogie / @ocboogie

09/23/2026 at 07:40PM

31
#93 - Omoigui Alpheaus / @THAT-RANDOM-DUD3

09/24/2026 at 03:34PM

31
#94 - JessicaArigbabu / @JessicaArigbabu

10/05/2026 at 08:37AM

31
#95 - Dmytro Oliinyk / @oliinykdima

10/07/2026 at 07:45PM

31
#96 - triple6gxd / @triple6gxd

10/14/2026 at 04:48AM

31
#97 - Emaan Heidari / @emaanh

10/15/2026 at 03:47AM

31
#98 - Victor Ukaegbu Ikwuonwu / @victor-uk

10/16/2026 at 01:02PM

31
#99 - Lau Enoch / @enoch-lau_ACC

10/21/2026 at 04:56AM

31
#100 - hugotai0 / @hugotai0

10/26/2026 at 08:32AM

31
#101 - Maksim / @maxonkart0n

10/30/2026 at 01:09PM

32
#102 - pelli18 / @pelli18

09/02/2026 at 02:28AM

32
#103 - Munoxegen / @Munoxegen

09/05/2026 at 11:03AM

32
#104 - StefanStanisor / @StefanStanisor

09/05/2026 at 02:57PM

32
#105 - ryawa / @ryawa

09/11/2026 at 11:02PM

32
#106 - FunOne72 / @FunOne72

09/23/2026 at 01:38AM

32
#107 - Nur Muhammad Joy / @nurmuhammedjoy

09/23/2026 at 09:34AM

32
#108 - Sujatro / @iamsurjog

09/24/2026 at 05:56AM

32
#109 - sea plantain / @Geordanny1

09/27/2026 at 08:19PM

32
#110 - Simona Barnášová / @simabar

10/06/2026 at 10:12AM

32
#111 - Giovanni De Vito / @g-devito

11/06/2026 at 05:21PM

33
#112 - aminbelfkira / @aminbelfkira

08/29/2026 at 02:00PM

33
#113 - Nikhil Ivaturi / @Nick0915

09/02/2026 at 03:18AM

33
#114 - Dimchenko Andrey / @Slashr2020

09/04/2026 at 09:53PM

33
#115 - slawkor / @slawkor

09/13/2026 at 06:13PM

33
#116 - James Yeap / @jamesyeap

09/20/2026 at 03:50PM

33
#117 - carbonilucas / @carbonilucas

09/25/2026 at 04:32PM

33
#118 - ThreadDesolated / @ThreadDesolated

09/26/2026 at 09:29AM

33
#119 - Joe / @Joe-Lannan

09/26/2026 at 09:36PM

33
#120 - Stephen Knieriem / @Yourhammc

10/05/2026 at 07:43PM