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

Unlock 9 remaining solutions by signing in and submitting your own entry
Created by: @bemmesr

157 active golfers, 481 entries

Solutions by @mtgd:
24
#26 - mtgd / @mtgd

10/15/2026 at 08:09AM

24
#>33 - mtgd / @mtgd

10/31/2026 at 01:41PM

24
#>33 - mtgd / @mtgd

11/01/2026 at 10:13AM

26
#>47 - mtgd / @mtgd

10/15/2026 at 08:08AM

27
#>62 - mtgd / @mtgd

10/15/2026 at 08:02AM

28
#>65 - mtgd / @mtgd

10/15/2026 at 07:35AM

30
#>89 - mtgd / @mtgd

10/15/2026 at 07:28AM

31
#>105 - mtgd / @mtgd

10/31/2026 at 12:32PM

35
#>137 - mtgd / @mtgd

10/15/2026 at 08:07AM