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

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

133 active golfers, 408 entries

Solutions by @cjlangan:
24
#17 - Connor Langan / @cjlangan

10/04/2026 at 02:43AM

25
#>33 - Connor Langan / @cjlangan

10/04/2026 at 02:36AM

26
#>38 - Connor Langan / @cjlangan

09/27/2026 at 09:13PM

28
#>56 - Connor Langan / @cjlangan

09/27/2026 at 09:01PM

29
#>66 - Connor Langan / @cjlangan

09/25/2026 at 03:44AM

30
#>75 - Connor Langan / @cjlangan

09/25/2026 at 03:42AM

32
#>96 - Connor Langan / @cjlangan

09/25/2026 at 03:40AM

33
#>103 - Connor Langan / @cjlangan

09/25/2026 at 03:38AM