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

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

157 active golfers, 481 entries

Solutions by @kse8425:
24
#20 - Kim SungEun / @kse8425

10/08/2026 at 07:38AM

26
#>47 - Kim SungEun / @kse8425

10/08/2026 at 07:46AM

27
#>59 - Kim SungEun / @kse8425

10/08/2026 at 07:35AM

29
#>81 - Kim SungEun / @kse8425

10/08/2026 at 07:32AM

32
#>114 - Kim SungEun / @kse8425

10/08/2026 at 07:24AM

33
#>126 - Kim SungEun / @kse8425

10/08/2026 at 07:21AM

34
#>130 - Kim SungEun / @kse8425

10/08/2026 at 07:19AM

34
#>130 - Kim SungEun / @kse8425

10/08/2026 at 07:31AM

38
#>146 - Kim SungEun / @kse8425

10/08/2026 at 07:18AM