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

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

157 active golfers, 481 entries

Solutions by @sammcentee:
24
#29 - Sam McEntee / @sammcentee

10/18/2026 at 07:41PM

24
#>29 - Sam McEntee / @sammcentee

10/18/2026 at 07:42PM

25
#>39 - Sam McEntee / @sammcentee

10/18/2026 at 07:40PM

26
#>47 - Sam McEntee / @sammcentee

10/18/2026 at 07:39PM

27
#>63 - Sam McEntee / @sammcentee

10/18/2026 at 07:37PM

29
#>83 - Sam McEntee / @sammcentee

10/18/2026 at 07:33PM

30
#>89 - Sam McEntee / @sammcentee

10/18/2026 at 07:32PM

32
#>114 - Sam McEntee / @sammcentee

10/18/2026 at 07:22PM

32
#>114 - Sam McEntee / @sammcentee

10/18/2026 at 07:26PM

34
#>132 - Sam McEntee / @sammcentee

10/18/2026 at 07:18PM