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 @thscuriousquest:

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

157 active golfers, 481 entries

Solutions by @thscuriousquest:
24
#33 - Michael / @thscuriousquest

10/25/2026 at 11:58PM

25
#>40 - Michael / @thscuriousquest

10/25/2026 at 11:56PM

26
#>47 - Michael / @thscuriousquest

10/25/2026 at 10:42PM

27
#>63 - Michael / @thscuriousquest

10/25/2026 at 09:18PM

28
#>67 - Michael / @thscuriousquest

10/25/2026 at 08:06PM

28
#>67 - Michael / @thscuriousquest

10/25/2026 at 08:11PM

29
#>83 - Michael / @thscuriousquest

10/25/2026 at 08:04PM

32
#>114 - Michael / @thscuriousquest

10/25/2026 at 04:35PM

35
#>137 - Michael / @thscuriousquest

10/25/2026 at 09:15PM

35
#>137 - Michael / @thscuriousquest

10/25/2026 at 10:41PM

37
#>144 - Michael / @thscuriousquest

10/24/2026 at 07:06PM

41
#>147 - Michael / @thscuriousquest

10/25/2026 at 04:32PM

43
#>147 - Michael / @thscuriousquest

10/25/2026 at 09:13PM